[zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread jeff.liu
Hello List, I am trying to fetch the data/hole info of a sparse file through the lseek(SEEK_HOLE/SEEK_DATA) stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this interface is supported on my testing ZFS, but SEEK_HOLE always return the sparse file total size instead of

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread Victor Latushkin
On Apr 18, 2011, at 11:22 AM, jeff.liu wrote: Hello List, I am trying to fetch the data/hole info of a sparse file through the lseek(SEEK_HOLE/SEEK_DATA) stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this interface is supported on my testing ZFS, but

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread jeff.liu
Victor Latushkin wrote: On Apr 18, 2011, at 11:22 AM, jeff.liu wrote: Hello List, I am trying to fetch the data/hole info of a sparse file through the lseek(SEEK_HOLE/SEEK_DATA) stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this interface is supported on my

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread Joerg Schilling
jeff.liu jeff@oracle.com wrote: Hello List, I am trying to fetch the data/hole info of a sparse file through the lseek(SEEK_HOLE/SEEK_DATA) stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this interface is supported on my testing ZFS, but SEEK_HOLE always

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread Jeff liu
在 2011-4-18,下午6:03, Joerg Schilling 写道: jeff.liu jeff@oracle.com wrote: Hello List, I am trying to fetch the data/hole info of a sparse file through the lseek(SEEK_HOLE/SEEK_DATA) stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this interface is supported