diff options
author | Brian C. Lane <bcl@redhat.com> | 2014-04-14 15:04:17 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2014-04-16 13:55:52 -0700 |
commit | bb181a7ec46f2820368359b7aba0917be089e0c5 (patch) | |
tree | 7a9b041f0acb807fc0fe8e77175d2a272cf8a2df /tests/t1700-probe-fs.sh | |
parent | fcf8dc3741c27602c64e5c4164ac26eca17ed5f3 (diff) | |
download | parted-bb181a7ec46f2820368359b7aba0917be089e0c5.tar.gz |
tests: Use force for xfs in t1700 and a larger file
Also use sparse files that are (with 512B blocks) 128M so that they are
large enough for all the filesystems.
* tests/t1700-probe-fs.sh: Make changes.
Diffstat (limited to 'tests/t1700-probe-fs.sh')
-rwxr-xr-x | tests/t1700-probe-fs.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh index 0418e73..08ec7d9 100755 --- a/tests/t1700-probe-fs.sh +++ b/tests/t1700-probe-fs.sh @@ -21,17 +21,19 @@ require_512_byte_sector_size_ dev=loop-file ss=$sector_size_ +n_sectors=$((257*1024)) for type in ext2 ext3 ext4 btrfs xfs nilfs2; do ( mkfs.$type -V ) >/dev/null 2>&1 \ || { warn_ "$ME: no $type support"; continue; } - case $type in ext*) n_sectors=8000 force=-F;; - *) n_sectors=$((257*1024)) force=;; esac + case $type in ext*) force=-F;; + xfs) force=-f;; + *) force=;; esac # create an $type file system - dd if=/dev/zero of=$dev bs=$ss count=$n_sectors >/dev/null || fail=1 + dd if=/dev/null of=$dev bs=$ss count=$n_sectors >/dev/null || fail=1 mkfs.$type $force $dev || { warn_ $ME: mkfs.$type failed; fail=1; continue; } # probe the $type file system @@ -43,7 +45,7 @@ done # Some features should indicate ext4 by themselves. for feature in uninit_bg flex_bg; do # create an ext3 file system - dd if=/dev/zero of=$dev bs=1024 count=4096 >/dev/null || fail=1 + dd if=/dev/null of=$dev bs=1024 count=4096 >/dev/null || fail=1 mkfs.ext3 -F $dev >/dev/null || skip_ "mkfs.ext3 failed" # set the feature |