[Top][All Lists]

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

Re: [Bug-tar] --sparse is broken on filesystems where small files may ha

From: Christoph Hellwig
Subject: Re: [Bug-tar] --sparse is broken on filesystems where small files may have zero blocks
Date: Tue, 29 Oct 2013 10:12:05 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Oct 29, 2013 at 04:27:02PM +0100, Pavel Raiskup wrote:
> CC'ing fs-devel:  The question is whether that ^^^^ is not a bug in
> filesystem ??? whether filesystem should not _always_ return to fstat()
> block count at least 1 if there are at least some data (even if these data
> are inlined in inode)?  Just for catching the context, this thread starts
> here: http://lists.gnu.org/archive/html/bug-tar/2013-10/msg00030.html
> If that is not a bug in fs, is there possible to detect that particular
> file is completely sparse?

For XFS we only support inline data for non-regular files at the moment,
but for example an inode that has data stored just inline will report
zero block, and the unfinished patches to support inline regular file
data would logically do the same.

As already pointed out by Joerg we do have a proper lseek interface to
detect if there are holes.

reply via email to

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