Whamcloud - gitweb
LU-3223 utils: multiple args for path2fid/fid2path 60/6160/7
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 25 Apr 2013 10:12:20 +0000 (04:12 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 23 Jul 2013 05:50:19 +0000 (05:50 +0000)
commit3cadf232ea2430f058bf49da9ffb6626ea075624
treedfc67be2bd8a6dbb63be89642c7b97da69ea9e8b
parent4c2239d621a9d39f0d1d2c6e6fdaa32014f5a3f9
LU-3223 utils: multiple args for path2fid/fid2path

Allow "lfs path2fid" to process multiple pathname arguments on
the command-line.  Like "grep" with multiple filenames, it will
print "filename: " at the beginning of the line when processing
multiple files.

Allow "lfd fid2path" to process multiple FID arguments on the
command-line.  All of the pathnames will be printed for each FID,
or can be limited to a single pathname per FID via "--link 0".

Add basic sanity tests for path2fid and fid2path, along with
tests of the multiple-argument options for each command.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Girish Shilamkar <gshilamkar@ddn.com>
Change-Id: I5c24b92af79cfeeafd4f5910e2f165dc3b500c1e
Reviewed-on: http://review.whamcloud.com/6160
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Tested-by: Hudson
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/doc/lfs.1
lustre/tests/sanity.sh
lustre/utils/lfs.c