diff options
author | Sami Kerola | 2013-01-19 01:09:05 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-25 10:09:36 +0100 |
commit | 724454828f5ed05f2fcf63691b06d978bc46e790 (patch) | |
tree | 5d9b9b2448e9b29546c659d13b0ce3514c8132df /tests/ts/misc | |
parent | tests: add setarch(8) check (diff) | |
download | kernel-qcow2-util-linux-724454828f5ed05f2fcf63691b06d978bc46e790.tar.gz kernel-qcow2-util-linux-724454828f5ed05f2fcf63691b06d978bc46e790.tar.xz kernel-qcow2-util-linux-724454828f5ed05f2fcf63691b06d978bc46e790.zip |
tests: add fallocate(1) check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/misc')
-rwxr-xr-x | tests/ts/misc/fallocate | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/ts/misc/fallocate b/tests/ts/misc/fallocate new file mode 100755 index 000000000..4b9db706a --- /dev/null +++ b/tests/ts/misc/fallocate @@ -0,0 +1,25 @@ +#!/bin/bash + +# This file is part of util-linux. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +TS_TOPDIR="$(dirname $0)/../.." +TS_DESC="fallocate" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +$TS_CMD_FALLOCATE -o 128 -l 256 $TS_SELF/fallocate_test > $TS_OUTPUT 2>&1 +stat -c "%s" $TS_SELF/fallocate_test > $TS_OUTPUT 2>&1 +rm -f $TS_SELF/fallocate_test + +ts_finalize |