diff options
author | Ruediger Meier | 2017-06-14 00:14:13 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-14 11:48:22 +0200 |
commit | bda267627e47081e7eed769e9cb437cefb54188b (patch) | |
tree | e08d87e9b01acf9cb5d61da2fddf45c932d54de8 | |
parent | tests: add more tests for line(1) (diff) | |
download | kernel-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>
-rw-r--r-- | sys-utils/losetup.8 | 2 | ||||
-rwxr-xr-x | tests/ts/fincore/count | 2 | ||||
-rwxr-xr-x | tests/ts/libmount/loop-overlay | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/losetup.8 b/sys-utils/losetup.8 index 60e9ff04f..9dab58037 100644 --- a/sys-utils/losetup.8 +++ b/sys-utils/losetup.8 @@ -179,7 +179,7 @@ loop control device The following commands can be used as an example of using the loop device. .nf .IP -# dd if=/dev/zero of=~/file.img bs=1MiB count=10 +# dd if=/dev/zero of=~/file.img bs=1024k count=10 # losetup --find --show ~/file.img /dev/loop0 # mkfs -t ext2 /dev/loop0 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 |