package
1.7.0
Repository: https://github.com/dell/csi-baremetal.git
Documentation: pkg.go.dev

# Functions

NewFSImpl is a constructor for WrapFSImpl struct.

# Constants

BindOption option for mount operation.
add mounted fs part.
CreateFileByDDCmdTmpl cmd for creating file with specified size by dd command.
DetachLoopBackDeviceCmdTmpl cmd for loopback device detach.
EXT3 file system.
EXT4 file system.
ExtUUIDOption option to set uuid for mkfs.ext3(4).
add target path.
GetFSTypeCmdTmpl cmd for detecting FS on device.
GetFsUUIDCmdTmpl cmd for detecting FS on device.
MkDirCmdTmpl mkdir template.
args: 1 - fs type, 2 - device/path, 3 - fs uuid option.
MountCmdTmpl mount cmd template, add "src" "dst" and "opts" (could be omitted).
MountInfoFile "/proc/mounts" path.
MountOptionsFlag flag to set mount options.
NoSuchDeviceErrMsg is the err msg in stderr of the cmd output when specified device cannot be found.
ReadLoopBackDeviceMappingCmd cmd for reading loopback device mapping.
RmDirCmdTmpl rm template.
SetupLoopBackDeviceCmdTmpl cmd for loopback device setup.
SpeedUpFsCreationOpts options that could be used for speeds up creation of ext3 and ext4 FS.
UnmountCmdTmpl unmount path template.
.
XFS file system.
XfsUUIDOption option to set uuid for mkfs.xfs.

# Structs

WrapFSImpl is a WrapFS implementer.

# Interfaces

WrapFS is an interface that encapsulates operation with file systems.

# Type aliases

FileSystem is type for storing FS string representation.