generic: test exceeding max file size via INSERT_RANGE

Test how the "insert range" fallocate operation interacts with the
maximum file size (s_maxbytes).

- Shift extents past the max file size (exposes an ext4 bug).
- Increase i_size past the max file size (exposes an xfs bug).

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Eric Biggers
2018-04-30 15:17:01 -07:00
committed by Eryu Guan
parent 0c2896508f
commit d0f42b2530
3 changed files with 120 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
QA output created by 485
# With KEEP_SIZE
# Without KEEP_SIZE
fallocate: File too large