[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes |
Date: |
Fri, 19 Jan 2018 10:24:16 +0100 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Andreas Dilger <address@hidden> wrote:
> I'd be happy to have a proper SEEK_HOLE/SEEK_DATA implementation for
> Lustre, though it would be a bit tricky for sparse files striped over
> multiple OSTs. Probably the best way to handle this would be to
> fetch the FIEMAP data for each stripe to the client, and then interleave
> the extents on stripe_size boundaries (in file offset order) to determine
> where the actual holes/data are.
Given the fact that any filesystem needs to be implemented in a way that allows
to read data from files, I see no reason why there should be a problem on
lustre.
If you read data from disk blocks, you are not inside a hole and if the data
is synthesized nulls, you are inside a hole.
Now the filesystem only needs to be able to scan the block allocation tables.
Regardless of how inefficient the filesystem is implemented in how it knows
where to read data from, SEEK_HOLE will always be faster than reading data.
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/'
- [Bug-tar] Detection of sparse files is broken on btrfs, Mark H Weaver, 2018/01/07
- Re: [Bug-tar] Detection of sparse files is broken on btrfs, Paul Eggert, 2018/01/07
- Re: [Bug-tar] Detection of sparse files is broken on btrfs, Mark H Weaver, 2018/01/08
- [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Mark H Weaver, 2018/01/09
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Paul Eggert, 2018/01/10
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Pavel Raiskup, 2018/01/10
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Dominique Martinet, 2018/01/10
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Joerg Schilling, 2018/01/10
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Andreas Dilger, 2018/01/18
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes,
Joerg Schilling <=
- 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, 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, Andreas Dilger, 2018/01/22
- Re: [Bug-tar] [PATCH] Remove nonportable check for files containing only zeroes, Mark H Weaver, 2018/01/23