bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Detection of sparse files is broken on btrfs


From: Joerg Schilling
Subject: Re: [Bug-tar] Detection of sparse files is broken on btrfs
Date: Mon, 8 Jan 2018 18:41:36 +0100
User-agent: Heirloom mailx 12.5 7/5/10

Paul Eggert <address@hidden> wrote:

> On 01/08/2018 08:54 AM, Joerg Schilling wrote:
> > The most important fact however is that allocating spade happens before you
> > copy data into that space.
>
> Certainly users need the ability to make sure there's enough room before 
> starting to copy, and POSIX allows for that with posix_fallocate. 
> However, I don't see any POSIX requirement that st_blocks has anything 
> to do with that room. For example, POSIX doesn't specify the size of the 
> units that st_blocks uses, and it even allows the unit size to vary 
> depending on the file. One cannot really deduce much of anything from 
> st_blocks, if the goal is portability to any POSIX implementation.

POSIX explains that st_blocks counts in units of DEV_BSIZE.

Jörg

-- 
 EMail:address@hidden                    (home) Jörg Schilling D-13353 Berlin
    address@hidden (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'



reply via email to

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