summaryrefslogtreecommitdiffstats
path: root/tests/ts/libmount
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/ts/libmount
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/ts/libmount')
-rwxr-xr-xtests/ts/libmount/loop-overlay2
1 files changed, 1 insertions, 1 deletions
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