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>
This commit is contained in:
Darrick J. Wong
2015-11-17 08:40:08 +11:00
committed by Dave Chinner
parent 5fb5ee48b3
commit db4284f312
9 changed files with 472 additions and 0 deletions
+4
View File
@@ -173,6 +173,10 @@
168 auto quick clone
169 rw metadata auto quick
170 auto quick clone
171 auto quick clone
172 auto quick clone
173 auto quick clone
174 auto quick clone
184 metadata auto quick
192 atime auto
193 metadata auto quick