reflink: test that CoW writes fail when we're out of space
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 16 Nov 2015 21:40:08 +0000 (08:40 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 16 Nov 2015 21:40:08 +0000 (08:40 +1100)
commitdb4284f3124ec95e371d0f8bdbd3659944e51881
treefae1277ab921c2457847f80d0d3ef222318c8ed7
parent5fb5ee48b3885cabbbd91db046c5b6bf0a8f711b
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>
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]
tests/generic/group