[PATCH] xfstests: generic/285: fix seek_sanity_test for generic SEEK_HOLE/DATA
Jeff Liu
jeff.liu at oracle.com
Mon Apr 21 22:56:47 CDT 2014
On 04/22 2014 00:43 AM, Konstantin Khlebnikov wrote:
> Generic implementation of SEEK_HOLE/DATA reports whole file as data chunk with
> virtual hole at the end (generic_file_llseek, used by ext2/ext3/reiserfs/nfs).
>
> Currently test prepares file smaller than expected for "huge file" testcases
> (testcases 10-12). This patch fixes test file layout, now second data chunk
> ends right at the expected end of file.
>
> Plus it fixes type of 'filesz' argument, it should be off_t.
Am not verified against NFS, but the fix look good to me.
Thanks,
-Jeff
More information about the xfs
mailing list