summaryrefslogtreecommitdiff
path: root/tests/misc-tests
diff options
context:
space:
mode:
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>2017-11-24 14:21:15 +0900
committerDavid Sterba <dsterba@suse.com>2018-01-03 17:09:57 +0100
commite460ccd6d13bb2cc4939fb860b50964dfbd3c247 (patch)
treeaa77d4581e99d7e78cb7d01fd411a739cc34c390 /tests/misc-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 <misono.tomohiro@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/misc-tests')
0 files changed, 0 insertions, 0 deletions