Files
apfstests/tests/generic/174.out
T
Darrick J. Wong db4284f312 reflink: test that CoW writes fail when we're out of space
Ensure that copy-on-writing a reflinked file when there's no free disk
space reflects the desired ENOSPC back to userspace during the write
call.  Tests the buffered IO, direct IO, and mmap write paths.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2015-11-17 08:40:08 +11:00

11 lines
265 B
Plaintext

QA output created by 174
Format and mount
Reformat with appropriate size
Create a big file and reflink it
Allocate the rest of the space
CoW the big file
pwrite64: No space left on device
Remount and try CoW again
pwrite64: No space left on device
Check scratch fs