Whamcloud - gitweb
LU-4569 hsm: Specify import source by FID. 75/9075/4
authorHenri Doreau <henri.doreau@cea.fr>
Fri, 31 Jan 2014 08:51:12 +0000 (09:51 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 24 Apr 2014 18:32:06 +0000 (18:32 +0000)
commita847e69c3b3853f547f99fcbb9c77259c4f3aa05
tree00bebf2772bbdf1e5265c05459fd4bcfdd269a3c
parent68b112cf3972137b86ce6212ff061e4a9edcc74b
LU-4569 hsm: Specify import source by FID.

Make the posix CT also accept a FID as import source parameter (from
which the path can be rebuilt) to allow easy "undeletion" of archived
files:

lhsmtool_posix --import <fid> /mnt/lustre/undelete ...

This patch also fixes a typo and replaces a bulky path construction by
a single asprintf() statement.

Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Change-Id: Id6d92bea59a6cae628c2b3e5449d8dad3b06a364
Reviewed-on: http://review.whamcloud.com/9075
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh
lustre/utils/lhsmtool_posix.c