svn commit: r274410 - head/usr.bin/mkimg

Konstantin Belousov kostikbel at gmail.com
Wed Nov 12 08:32:23 UTC 2014


On Wed, Nov 12, 2014 at 12:10:27AM +0000, Marcel Moolenaar wrote:
> Author: marcel
> Date: Wed Nov 12 00:10:27 2014
> New Revision: 274410
> URL: https://svnweb.freebsd.org/changeset/base/274410
> 
> Log:
>   SEEK_DATA has interesting behaviour for sparse files on ZFS.  A sparse file
>   with 128K of random data and truncated to 800K can have SEEK_DATA return -1
>   when given an offset of 128K. On UFS, the SEEK_DATA returns 800K (the size
>   of the file). SEEK_HOLE on ZFS seems to behave the same as UFS.
BTW, this is because UFS cannot have hole at the end of file.
The file you describe has the last block allocated on UFS.


More information about the svn-src-all mailing list