mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 16:09:45 -05:00
ac1128d07f
* Add common backend for interacting with cryptsetup * Use common cryptsetup backend in bootstrapper * Use common cryptsetup backend in disk-mapper * Use common cryptsetup backend in csi lib --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
24 lines
420 B
Go
24 lines
420 B
Go
//go:build !linux || !cgo
|
|
|
|
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package cryptmapper
|
|
|
|
import (
|
|
"errors"
|
|
|
|
ccryptsetup "github.com/edgelesssys/constellation/v2/internal/cryptsetup"
|
|
)
|
|
|
|
const (
|
|
resizeFlags = 0x800 | ccryptsetup.ReadWriteQueueBypass
|
|
)
|
|
|
|
func getDiskFormat(_ string) (string, error) {
|
|
return "", errors.New("getDiskFormat requires building with CGO enabled")
|
|
}
|