Documentation
¶
Index ¶
- func FilesystemCreationOnMultipleDisks() types.Test
- func MountFilesystemWithOptions() types.Test
- func ReformatToBTRFS() types.Test
- func ReformatToEXT4() types.Test
- func ReformatToSWAP() types.Test
- func ReformatToVFAT() types.Test
- func ReformatToXFS() types.Test
- func ReuseAmbivalentFilesystem() types.Test
- func ReuseExistingFilesystem() types.Test
- func TestCannedZFSImage() types.Test
- func TestEXT4ClobberZFS() types.Test
- func TestVFATClobberZFS() types.Test
- func TestXFSClobberZFS() types.Test
- func WipeFilesystemWithSameType() types.Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountFilesystemWithOptions ¶ added in v2.1.0
func ReformatToBTRFS ¶
func ReformatToEXT4 ¶
func ReformatToSWAP ¶
func ReformatToVFAT ¶
func ReformatToXFS ¶
func ReuseAmbivalentFilesystem ¶ added in v2.4.0
Successfully reuse a filesystem which libblkid thinks has multiple type signatures.
func ReuseExistingFilesystem ¶
func TestCannedZFSImage ¶ added in v2.4.0
We don't support creating ZFS filesystems, and doing so with zfs-fuse requires the zfs-fuse daemon to be running. But ZFS also has an unusual property: it has multiple disk labels distributed throughout the disk, and none of mkfs.ext4, mkfs.xfs, or mkfs.vfat clobber them all. If blkid or lsblk discover labels of both ZFS and one of those other filesystems, they won't report a filesystem type at all (and blkid will ignore the entire partition), and mount(8) will refuse to mount the FS without an explicit -t argument. So we need to wipefs a partition before creating a new one. In order to test this, we start from a canned ZFS image fixture.
This test just copies in the ZFS fixture and confirms that it detects as ZFS.
func TestEXT4ClobberZFS ¶ added in v2.4.0
func TestVFATClobberZFS ¶ added in v2.4.0
func TestXFSClobberZFS ¶ added in v2.4.0
Types ¶
This section is empty.