Documentation
¶
Index ¶
- Constants
- func CreateSparseFile(imgPath string, sizeInMb int64) error
- func EmptyDataset(pool model.ZfsPool, branchName string) error
- func FindDevicePath(poolName string) (string, error)
- func FindLoopDeviceFromSys(targetFile string) ([]string, error)
- func MountAll(ctx context.Context) error
- func ReleaseLoopDevice(loopDevice string) error
- func SetupLoopDevice(imgFilePath string) (int, error)
- func Unmount(pool model.ZfsPool) error
- func UnmountAll() error
- func Version() (*string, bool)
- func VirtualPool(ctx context.Context, repoinit repo.Info) (model.ZfsPool, error)
Constants ¶
View Source
const (
FindLoopBackFromZpoolCmd = "zpool list -v %s | grep '^ loop' | awk '{print $1}'"
)
Variables ¶
This section is empty.
Functions ¶
func CreateSparseFile ¶
func FindDevicePath ¶
func FindLoopDeviceFromSys ¶
func ReleaseLoopDevice ¶
func SetupLoopDevice ¶
func UnmountAll ¶
func UnmountAll() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.