Whamcloud - gitweb
filefrag: minor code fixes and cleanups
authorAndreas Dilger <adilger@dilger.ca>
Wed, 30 Jul 2014 20:25:49 +0000 (14:25 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Aug 2014 02:09:23 +0000 (22:09 -0400)
commitaf7dbe3a11864e9b515709b62ee6bf2162bfa67b
treeba7502a0afdbf430d94c7e29d75f99fb1504eec3
parenta1363e6ad2ef10686e968df7695b93edb8988179
filefrag: minor code fixes and cleanups

Print filefrag_fiemap() error message to stderr instead of stdout.

Only call ioctl(EXT3_IOC_GETFLAGS) for ext{2,3,4} filesystems to
decide if the ext2 indirect block allocation heuristic shold be used.

Properly handle the the force_bmap (-B) option.

Exit with a positive error number instead of a negative one.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/filefrag.c