path: root/tests
diff options
authorMisono, Tomohiro <>2017-11-24 14:21:15 +0900
committerDavid Sterba <>2018-01-03 17:09:57 +0100
commite460ccd6d13bb2cc4939fb860b50964dfbd3c247 (patch)
treeaa77d4581e99d7e78cb7d01fd411a739cc34c390 /tests
parentdc06cda3d6afb4fad5ddfd1508a33f79c2e68efb (diff)
btrfs-progs: mkfs: check the status of file at mkfs
Currently, only the status of block devices is checked at mkfs, but we should also check for regular files whether they are already formatted or mounted to prevent overwrite accidentally. Device status is checked by test_dev_for_mkfs(). The part which is not related to block device is split from this and used for both block device and regular file. Signed-off-by: Tomohiro Misono <> Signed-off-by: David Sterba <>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions