On 11/13/2014 08:44 AM, Max Reitz wrote:

>> (By the way, I really wish Solaris had implemented a variant that
>> queried, but did NOT change the file offset - maybe Linux can add that
>> as an extension, and give it sane semantics of not special casing
>> trailing holes...)
> 
> Are you asking for fiemap? :-P

Not that bulky; maybe just two more constants SEEK_PEEK_HOLE and
SEEK_PEEK_DATA, which return the same values as their non-peek
counterparts but without modifying the fd offset.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to