[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?)
From: |
Dave Chinner |
Subject: |
Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?) |
Date: |
Mon, 18 Apr 2011 10:40:40 +1000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Sat, Apr 16, 2011 at 08:21:28AM -0400, Theodore Tso wrote:
>
> On Apr 16, 2011, at 1:11 AM, Andreas Dilger wrote:
>
> > In that case, it means cp should just always use FIEMAP_FLAG_SYNC, which is
> > fine.
>
> Except that if someone is copying a large delay allocated file, it will cause
> the file to immediately snapped to disk, which might not be the greatest
> thing in the world.
Obvious workaround - if the initial fiemap call shows unwritten
extents, redo it with the sync flag set. Though that assumeѕ that
you can trust things like delalloc extents to only cover the range
that valid data exists in. Which, of course, you can't assume,
either. :/
> Christoph is write, SEEK_HOLE and SEEK_DATA are
> a much better API for what cp woulld lke to do. Unfortunately it hasn't
> been implemented yet in the VFS...
Agreed, SEEK_HOLE/SEEK_DATA is the right way to solve this problem.
Cheers,
Dave.
--
Dave Chinner
address@hidden
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), (continued)
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Jim Meyering, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Christoph Hellwig, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Eric Blake, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Christoph Hellwig, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Andreas Dilger, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Dave Chinner, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Andreas Dilger, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Dave Chinner, 2011/04/15
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Andreas Dilger, 2011/04/16
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Theodore Tso, 2011/04/16
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?),
Dave Chinner <=
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Andreas Dilger, 2011/04/17
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Yongqiang Yang, 2011/04/18
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Ted Ts'o, 2011/04/18
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Eric Sandeen, 2011/04/18
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Jim Meyering, 2011/04/21
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Yongqiang Yang, 2011/04/18
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Dave Chinner, 2011/04/19
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Christoph Hellwig, 2011/04/19
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Dave Chinner, 2011/04/18
- Re: Files full of zeros with coreutils-8.11 and xfs (FIEMAP related?), Yongqiang Yang, 2011/04/19