mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-03 04:26:20 -04:00
cryptsetup: Provide implementation without cgo
This commit is contained in:
parent
524718d82c
commit
c1dbbf34c3
3 changed files with 21 additions and 1 deletions
15
internal/cryptsetup/crypsetup_cross.go
Normal file
15
internal/cryptsetup/crypsetup_cross.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
//go:build !linux || !cgo
|
||||
|
||||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
package cryptsetup
|
||||
|
||||
const (
|
||||
// ReadWriteQueueBypass is a flag to disable the write and read workqueues for a crypt device.
|
||||
ReadWriteQueueBypass = cryptActivateNoReadWorkqueue | cryptActivateNoWriteWorkqueue
|
||||
cryptActivateNoReadWorkqueue = 0x1000000
|
||||
cryptActivateNoWriteWorkqueue = 0x2000000
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue