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. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html