summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRuediger Meier2017-06-14 00:14:13 +0200
committerKarel Zak2017-06-14 11:48:22 +0200
commitbda267627e47081e7eed769e9cb437cefb54188b (patch)
treee08d87e9b01acf9cb5d61da2fddf45c932d54de8 /tests
parenttests: add more tests for line(1) (diff)
downloadkernel-qcow2-util-linux-bda267627e47081e7eed769e9cb437cefb54188b.tar.gz
kernel-qcow2-util-linux-bda267627e47081e7eed769e9cb437cefb54188b.tar.xz
kernel-qcow2-util-linux-bda267627e47081e7eed769e9cb437cefb54188b.zip
misc: POSIX usage dd, regarding unit suffixes
In POSIX we have only 'b' and 'k' (case-sensitive). In the real work, OSX was the only system I've found which does not understand capital 'K'. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ts/fincore/count2
-rwxr-xr-xtests/ts/libmount/loop-overlay2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/fincore/count b/tests/ts/fincore/count
index 0151016ee..0b6f24dfe 100755
--- a/tests/ts/fincore/count
+++ b/tests/ts/fincore/count
@@ -46,7 +46,7 @@ function check_dd_fs_feat
touch "$testf"
# NFS seems to fail for direct AND append
- _dd if=/dev/zero of="$testf" bs=1K count=2 oflag=direct,append &>/dev/null \
+ _dd if=/dev/zero of="$testf" bs=1k count=2 oflag=direct,append &>/dev/null \
|| ts_skip "unsupported: dd oflag=direct,append"
# TODO: Should we check for sparse file support?
diff --git a/tests/ts/libmount/loop-overlay b/tests/ts/libmount/loop-overlay
index dc9b73d6b..df096bf30 100755
--- a/tests/ts/libmount/loop-overlay
+++ b/tests/ts/libmount/loop-overlay
@@ -36,7 +36,7 @@ IMG=$(ts_image_init 5)
mkfs.ext2 -F "$IMG" &> /dev/null || ts_die "Cannot make extn on $IMG"
OFFSET=$(stat -c %s "$IMG")
-dd if="$IMG" of="$IMG" oflag=append bs=5MiB count=1 conv=notrunc &>/dev/null
+dd if="$IMG" of="$IMG" oflag=append bs=1024k count=5 conv=notrunc &>/dev/null
[ -d "$TS_MOUNTPOINT-1" ] || mkdir -p $TS_MOUNTPOINT-1
[ -d "$TS_MOUNTPOINT-2" ] || mkdir -p $TS_MOUNTPOINT-2