mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-14 01:20:43 -05:00
Enable cryptsetup read/write workqueue bypass (#1150)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
821f87b7be
commit
68ce23b909
3 changed files with 22 additions and 4 deletions
16
internal/cryptsetup/cryptsetup.go
Normal file
16
internal/cryptsetup/cryptsetup.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
// Package cryptsetup contains CGO bindings for cryptsetup.
|
||||
package cryptsetup
|
||||
|
||||
// #include <libcryptsetup.h>
|
||||
import "C"
|
||||
|
||||
const (
|
||||
// ReadWriteQueueBypass is a flag to disable the write and read workqueues for a crypt device.
|
||||
ReadWriteQueueBypass = C.CRYPT_ACTIVATE_NO_WRITE_WORKQUEUE | C.CRYPT_ACTIVATE_NO_READ_WORKQUEUE
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue