]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
275: add a write and reserve test
authorWuBo <wu.bo@cn.fujitsu.com>
Tue, 8 Nov 2011 03:41:45 +0000 (11:41 +0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Nov 2011 13:43:48 +0000 (13:43 +0000)
commite219e1cb59660b010ae8c1e22d41d319bb1e10c7
tree56f3d65987e3bd70785f448e84e61a1de743f2d0
parent7ab8e4e2976469f32da2803875122a3c13d7f5a4
275: add a write and reserve test

This test is for write-posix test. If writing a file when the disk is almost
full, the posix wants the call to write as much as possible but not none.

quote the POSIX:
If a write() requests that more bytes be written than there is room for
(for example, [XSI] [Option Start] the process' file size limit or
[Option End] the physical end of a medium), only as many bytes as there
is room for shall be written. For example, suppose there is space for 20
bytes more in a file before reaching a limit. A write of 512 bytes will
return 20. The next write of a non-zero number of bytes would give a
failure return (except as noted below).

Signed-off-by: Wu Bo <Wu.Bo@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
275 [new file with mode: 0755]
275.out [new file with mode: 0644]
group