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

[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 t