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: Paul Eggert
Subject: Re: [Bug-tar] Detection of sparse files is broken on btrfs
Date: Mon, 8 Jan 2018 11:33:57 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 01/08/2018 10:50 AM, Joerg Schilling wrote
So the real problem is not what exact value you may expect but rather whether
btrfs behaves inconsistent because you get different results after calling
fsync().


POSIX does not require that st_nblocks remain constant across any system call. It doesn't even require that it remain constant if you merely call stat twice on the same file, without doing anything else in between. So I agree with you that it's irrelevant whether fsync or sync is called in the interim. Where we disagree is that I don't think st_nblocks must remain constant when a file is not modified. No such requirement is in POSIX.



reply via email to

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