blob: 253e6cb7a37719100037282956f3788e5198c825 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh -x
# fallocate with mode 0 should fail with EOPNOTSUPP
set -e
mkdir -p testdir
cd testdir
expect_failure() {
if "$@"; then return 1; else return 0; fi
}
expect_failure fallocate -l 1M preallocated.txt
rm -f preallocated.txt
cd ..
rmdir testdir
echo OK
|