[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only
From: |
Mark H Weaver |
Subject: |
Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes |
Date: |
Tue, 23 Jan 2018 16:49:39 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Joerg Schilling <address@hidden> writes:
> Mark H Weaver <address@hidden> wrote:
>
>> > Now many bytes have been written past the hole?
>>
>> Did you read my entire message? The answer to your question was just a
>> few lines beyond the excerpt that you quoted above. I wrote:
>>
>> >> Yes, on Btrfs I reliably see (st_blocks == 0) on a recently written,
>> >> mostly sparse file with size > 8G, using linux-libre-4.14.14. More
>> >> specifically, the "storing sparse files > 8G" test in tar's test suite
>> >> reliably fails on my system:
>> >>
>> >> 140: storing sparse files > 8G FAILED
>> >> (sparse03.at:29)
>> >>
>> >> The test creates a sparse file consisting of 8 gibibytes of hole
>> >> followed by 512 bytes of 'A's at the end. [...]
>
> Sorry, I did not see this.
>
> Well then it would be of interest whether btrfs is able to keep 512 bytes of
> data in the meta data space.
A hypothetical file system might store the entire file contents
*compressed* in the inode. Large holes might be stored quite compactly
in such a scheme. It's not hard to imagine a realistic compression
method that could successfully store 8 gigibytes of zeroes followed by
512 bytes of 'A's, completely within the inode.
In such a file system, even in the absence of delayed allocation,
(st_blocks == 0) would be justifiable, no?
Mark
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, (continued)
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Andreas Dilger, 2018/01/17
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Joerg Schilling, 2018/01/18
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Mark H Weaver, 2018/01/20
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Joerg Schilling, 2018/01/22
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Mark H Weaver, 2018/01/23
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Joerg Schilling, 2018/01/23
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes,
Mark H Weaver <=
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Andreas Dilger, 2018/01/23
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Andreas Dilger, 2018/01/22
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Mark H Weaver, 2018/01/23
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Andreas Dilger, 2018/01/23
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Mark H Weaver, 2018/01/24
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Ralph Corderoy, 2018/01/24
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Andreas Dilger, 2018/01/25
Re: [Bug-tar] Detection of sparse files is broken on btrfs, Joerg Schilling, 2018/01/08