parallel-fs-utils / fs-drift

mixed-workload filesystem aging test
Apache License 2.0
8 stars 4 forks source link

[Feature] Check device for structures (file systems/stacks) before going on with rawdevice testing #23

Open spetrovi opened 2 years ago

spetrovi commented 2 years ago

Despite the warnings I'm putting everywhere, someone might try to execute rawdevice testing on a used device, which would lead to corruption of data or file system present on the device. Let's research some way to examine the given device before going on with rawdevice testing

spetrovi commented 2 years ago

Hmm, didn't find any good solution yet. Any suggestions appreciated :)

bengland2 commented 3 months ago

There are Linux CLI utilities that tell you whether there is a partition (parted, blkid), filesystem or LVM device (pvs). It's a bit complicated and non-portable to other operating systems.