filesystems

package
v2.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EraseBlockDeviceWithNoFileSystem added in v2.11.0

func EraseBlockDeviceWithNoFileSystem() types.Test

EraseBlockDeviceWithNoFileSystem verifies that the Ignition succeeds without any changes to the block device if `wipeFileSystem is set to `false` and the format is set to `none`.

func EraseBlockDeviceWithPreExistingFileSystem added in v2.11.0

func EraseBlockDeviceWithPreExistingFileSystem() types.Test

EraseBlockDeviceWithPreExistingFileSystem verifies that the Ignition erases the block device with pre-existing filesystem on it and doesn't create any filesystem on the given partition if `wipeFileSystem is set to `true` and the format is set to `none`.

func FilesystemCreationOnMultipleDisks

func FilesystemCreationOnMultipleDisks() types.Test

func MountFilesystemWithOptions added in v2.1.0

func MountFilesystemWithOptions() types.Test

func ReformatToBTRFS

func ReformatToBTRFS() types.Test

func ReformatToEXT4

func ReformatToEXT4() types.Test

func ReformatToSWAP

func ReformatToSWAP() types.Test

func ReformatToVFAT

func ReformatToVFAT() types.Test

func ReformatToXFS

func ReformatToXFS() types.Test

func ReuseAmbivalentFilesystem added in v2.4.0

func ReuseAmbivalentFilesystem() types.Test

Successfully reuse a filesystem which libblkid thinks has multiple type signatures.

func ReuseExistingFilesystem

func ReuseExistingFilesystem() types.Test

func TestCannedZFSImage added in v2.4.0

func TestCannedZFSImage() types.Test

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.fat 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 TestEXT4ClobberZFS() types.Test

func TestVFATClobberZFS added in v2.4.0

func TestVFATClobberZFS() types.Test

func TestXFSClobberZFS added in v2.4.0

func TestXFSClobberZFS() types.Test

func WipeFilesystemWithSameType

func WipeFilesystemWithSameType() types.Test

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL