Documentation
¶
Overview ¶
Package removablemedia implements the testing sceanrio of arc.RemovableMedia test and its utilities.
Index ¶
- func AttachLoopDevice(ctx context.Context, path string) (string, error)
- func CreateZeroFile(size int64, name string) (string, error)
- func DetachLoopDevice(ctx context.Context, devLoop string) error
- func FormatVFAT(ctx context.Context, devLoop string) error
- func Mount(ctx context.Context, cd *crosdisks.CrosDisks, devLoop, name string) (mountPath string, retErr error)
- func RunTest(ctx context.Context, s *testing.State, a *arc.ARC, testFile string)
- func Unmount(ctx context.Context, cd *crosdisks.CrosDisks, devLoop string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachLoopDevice ¶
AttachLoopDevice attaches to loop device.
func CreateZeroFile ¶
CreateZeroFile creates a file filled with size bytes of 0.
func DetachLoopDevice ¶
DetachLoopDevice detaches from loop device.
func FormatVFAT ¶
FormatVFAT formats the vfat file system.
func Mount ¶
func Mount(ctx context.Context, cd *crosdisks.CrosDisks, devLoop, name string) (mountPath string, retErr error)
Mount adds device to allowlist and mounts it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.