reflink: test that CoW writes fail when we're out of space
authorDarrick J. Wong <>
Mon, 16 Nov 2015 21:40:08 +0000 (08:40 +1100)
committerDave Chinner <>
Mon, 16 Nov 2015 21:40:08 +0000 (08:40 +1100)
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 <>
Acked-by: Christoph Hellwig <>
Signed-off-by: Dave Chinner <>
tests/generic/171 [new file with mode: 0755]
tests/generic/171.out [new file with mode: 0644]
tests/generic/172 [new file with mode: 0755]
tests/generic/172.out [new file with mode: 0644]
tests/generic/173 [new file with mode: 0755]
tests/generic/173.out [new file with mode: 0644]
tests/generic/174 [new file with mode: 0755]
tests/generic/174.out [new file with mode: 0644]