Whamcloud - gitweb
LU-4569 hsm: Specify import source by FID. 32/10132/2
authorHenri Doreau <henri.doreau@cea.fr>
Fri, 31 Jan 2014 08:51:12 +0000 (09:51 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 22 May 2014 04:52:37 +0000 (04:52 +0000)
commit3ffa71724be6a5ad7e3550aff80f729ff68664c0
treea6df1f2562ec4e721cfd9676b5e9ee07122c41e1
parent901d3aff446fdfa7bb1bd694ac6708f4bb070f34
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.

Lustre-change: http://review.whamcloud.com/9075
Lustre-commit a847e69c3b3853f547f99fcbb9c77259c4f3aa05

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