On Thu, May 05, 2011 at 01:21:08PM -0500, Eric Sandeen wrote: > # rm -f a; touch a; filefrag a > /boot/a: 0 extents found > > works properly, but > > # rm -f a; touch a; filefrag -v a > Filesystem type is: ef53 > Filesystem cylinder groups is approximately 61 > File size of a is 0 (0 blocks, blocksize 1024) > ext logical physical expected length flags > a: 1 extent found > > yields 1 extent when it should be 0. > > Fix this up by special-casing no extents returned in verbose > mode; skip printing the header for the columns too, since there > are no columns to print. > > Also, in nonverbose mode we can set fm_extent_count to 0 > so that FIEMAP will just query the extent count without gathering > details; clarify this with a comment. > > Addresses-redhat-bugzilla: 653234 > Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> Thanks, applied to the maint branch (which will then get pulled to master/next) of e2fsprogs. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html