2023-05-17 11:36:01 -04:00
|
|
|
//go:build !linux || !cgo
|
|
|
|
|
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
package cryptmapper
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
2023-07-17 07:55:31 -04:00
|
|
|
ccryptsetup "github.com/edgelesssys/constellation/v2/internal/cryptsetup"
|
|
|
|
)
|
2023-05-17 11:36:01 -04:00
|
|
|
|
2023-07-17 07:55:31 -04:00
|
|
|
const (
|
|
|
|
resizeFlags = 0x800 | ccryptsetup.ReadWriteQueueBypass
|
|
|
|
)
|
2023-05-17 11:36:01 -04:00
|
|
|
|
2023-07-17 07:55:31 -04:00
|
|
|
func getDiskFormat(_ string) (string, error) {
|
|
|
|
return "", errors.New("getDiskFormat requires building with CGO enabled")
|
2023-05-17 11:36:01 -04:00
|
|
|
}
|