Whamcloud - gitweb
filefrag: Lustre changes to filefrag FIEMAP handling
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 12 Apr 2012 21:31:35 +0000 (15:31 -0600)
committerLi Dongyang <dongyangli@ddn.com>
Wed, 27 May 2020 01:20:50 +0000 (11:20 +1000)
commit47c2561eb61ecd05f3b2cd77225175dbca6324d5
treeeec65ca230c4a97794d7bcfcacd76c5bb9b6da22
parent3bddb64abb46e24d7ac9a7b292418a9b611f504b
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