Whamcloud - gitweb
LU-4727 hsm: use IOC_MDC_GETFILEINFO in restore 50/13750/6
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 12 Feb 2015 19:53:18 +0000 (13:53 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Mar 2015 11:40:08 +0000 (11:40 +0000)
commit96dbac2eaef7a5d1090807bedc9951279c06d037
treec722955c11a4f1b96596f21fd412687f99a451e6
parent46f24c6d043a7d73fa68ef3541426603e0b86d52
LU-4727 hsm: use IOC_MDC_GETFILEINFO in restore

Use IOC_MDC_GETFILEINFO rather than fstatat() to get the original file
attributes during restore. Add test_12p to sanity-hsm to check that
triggering an implicit restore from the copytool's own mount point
does not wedge the copytool.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I1b1eeb703c60907a2759fdb6d8fb8728a13f8918
Reviewed-on: http://review.whamcloud.com/13750
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh
lustre/utils/liblustreapi_hsm.c