Whamcloud - gitweb
filefrag: Lustre changes to filefrag FIEMAP handling
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 12 Apr 2012 21:31:35 +0000 (15:31 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Wed, 24 Apr 2013 04:48:38 +0000 (22:48 -0600)
commitcd962f23679da079ed13c591526e682bee44b6b1
tree8c898ef139b577b973e55f7aa55eec3c8cf98ab7
parent56ac8c6f5effc4435b5cd26d7358e0aa7c04a6f9
filefrag: Lustre changes to filefrag FIEMAP handling

Add support for multiple-device filesystems by defining a new
fe_device field in the fiemap_extent structure.  This allows
printing the filesystem-relative or linux block device number
associated with each extent of a file.  If a single filesystem
extent is mirrored to multiple block devices, the fe_device
field can be used to disambiguate the multiple copies.

If the "-l" (device-logical) option is given to filefrag, then
all extents for a particular device of a file are returned
before returning extents for the next device.  This makes it
easier to see if extent allocation within a single device is
contiguous, instead of returning all of the blocks of a file
interleaved in file-logical-offset order.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
lib/ext2fs/fiemap.h
misc/filefrag.8.in
misc/filefrag.c