Whamcloud - gitweb
LU-6866 hsm: prevent migration of HSM archived files 11/17511/3
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 8 Dec 2015 17:23:44 +0000 (11:23 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 18 Dec 2015 05:28:09 +0000 (05:28 +0000)
commitfdddeb25a54324cbcc2c99daf38b9f778fdbbec3
treef0cf1af334bc67a83174b4a42976c0bfb20e2dbc
parent927effd2c2374508d904d2022c74574e508c07f1
LU-6866 hsm: prevent migration of HSM archived files

The reference copytool cannot handle migration of HSM archive
files. In the MDT migration path check for HSM attributes and fail if
they are present. In the LMV layer allow creation of volatile files
with any MDT index. Add a test to sanity-hsm to ensure that attempting
to migrate an HSM archive file is handled safely.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ia133bfb345ce17473f54bd9a0ea0fbff5e5a5c58
Reviewed-on: http://review.whamcloud.com/17511
Tested-by: Jenkins
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lmv/lmv_obd.c
lustre/mdt/mdt_reint.c
lustre/tests/sanity-hsm.sh