Whamcloud - gitweb
filefrag: don't print extent header on bmap fallback
authorEric Sandeen <sandeen@redhat.com>
Thu, 6 Aug 2009 03:30:48 +0000 (22:30 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 Aug 2009 03:52:27 +0000 (23:52 -0400)
commit334cfccbca2a37a3d8db16761fb90431f69e6030
treef146c497cbca806ec1a136fb9e0c1c2ec4e8d40e
parent1f3d16deaa11681323b8278bec9b48fee2898e4b
filefrag: don't print extent header on bmap fallback

The extent list header gets printed before we fall back to bmap:

# filefrag -v /mnt/test/bar
Filesystem type is: 58465342
File size of /mnt/test/bar is 12288 (3 blocks, blocksize 4096)
 ext logical physical expected length flags <---- HERE
Discontinuity: Block 2 is at 17 (was 16)
/mnt/test/bar: 2 extents found

so delay printing it until we know fiemap is working.

(though ideally it'd be nice to have the same verbose output
regardless of the interface we used, I think).

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/filefrag.c