bug-grep
[Top][All Lists]
Advanced

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

Re: SEEK_HOLE defined but useless on linux-3.4+/ext4 [Re: small ascii fi


From: Paul Eggert
Subject: Re: SEEK_HOLE defined but useless on linux-3.4+/ext4 [Re: small ascii files can be sparse
Date: Tue, 31 Jul 2012 09:59:22 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

On 07/31/2012 09:52 AM, Jim Meyering wrote:
> fstat uses a file descriptor.
> Calling fstatfs on that same file descriptor should
> give a reliable (race-free) file system type.

Ah, sorry, I thought the idea was to cache the
statfs info so that we didn't need to invoke
two system calls for each file.  But yes, if
there's no cache we should be OK.



reply via email to

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