qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 3/4] raw-posix: Fix try_seek_hole()'s handlin


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2 3/4] raw-posix: Fix try_seek_hole()'s handling of SEEK_DATA failure
Date: Thu, 13 Nov 2014 08:52:05 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 11/13/2014 08:49 AM, Eric Blake wrote:
> 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.

And not the first time I've requested it.  From 2011:
https://lkml.org/lkml/2011/4/22/91

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

[Prev in Thread] Current Thread [Next in Thread]