xfstests 228: New testcase to check if fallocate respects RLIMIT_FSIZE

Add a new testcase to the xfstests suite to check if fallocate respects
the limit imposed by RLIMIT_FSIZE (can be set by "ulimit -f XXX") or
not, on a particular filesystem.

Signed-off-by: Amit Arora <aarora@in.ibm.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
This commit is contained in:
Amit Arora
2010-05-05 14:15:08 -05:00
committed by Eric Sandeen
parent c42a04c273
commit ae98f7a137
3 changed files with 86 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
QA output created by 228
File size limit is now set to 100 MB.
Let us try to preallocate 101 MB. This should fail.
File size limit exceeded
Let us now try to preallocate 50 MB. This should succeed.
Test over.