constellation/csi/cryptmapper/cryptmapper_cross.go
Daniel Weiße ac1128d07f
cryptsetup: unify code (#2043)
* 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>
2023-07-17 13:55:31 +02:00

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")
}