mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-08 21:57:06 +00:00
btrfs-progs: tests: verify that ext4 supports extra_isize
To properly check the 64bit timestamp conversion, the filesystem must support it. Check that a freshly created filesystem contains the feature. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1b49370973
commit
0c6e50dddd
@ -10,6 +10,12 @@ check_prereq btrfs-convert
|
|||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
|
||||||
convert_test_prep_fs ext4 mke2fs -t ext4 -b 4096
|
convert_test_prep_fs ext4 mke2fs -t ext4 -b 4096
|
||||||
|
|
||||||
|
features=$(run_check_stdout dumpe2fs "$TEST_DEV" | grep "Filesystem features")
|
||||||
|
if ! echo "$features" | grep -q "extra_isize"; then
|
||||||
|
_not_run "extended inode size not supported, no 64bit timestamp check possible"
|
||||||
|
fi
|
||||||
|
|
||||||
run_check $SUDO_HELPER touch "$TEST_MNT/file"
|
run_check $SUDO_HELPER touch "$TEST_MNT/file"
|
||||||
# Read time values
|
# Read time values
|
||||||
run_check stat "$TEST_MNT/file"
|
run_check stat "$TEST_MNT/file"
|
||||||
|
Loading…
Reference in New Issue
Block a user