Whamcloud - gitweb
LU-7110 tests: sanity-hsm.sh can erase all files on filesystem 91/16291/7
authorParinay Kondekar <parinay.kondekar@seagate.com>
Tue, 12 Apr 2016 06:44:03 +0000 (12:14 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 21 Apr 2016 02:26:27 +0000 (02:26 +0000)
commit5764a8ce591e7f62cad2ee95b7041c115a1cd0f6
tree0aaa7b7973dd85e40501b0122a18cbc08af1c085
parent50ac302a72c91853d64469d90111cb0baf223358
LU-7110 tests: sanity-hsm.sh can erase all files on filesystem

For SINGLEAGT=client, $HSM_ARCHIVE & $hsm_root is empty.
Thus purging of archive in copytool_setup() will result
in execution of "rm -rf /*", resulting in permanent loss
of files as well as cluster node.

This change fixes it by checking the respective variables
like HSM_ARCHIVE or hsm_root to be non-empty.

Change-Id: I73cdc08a58409ae1f3ba85a9d12077062a38b321
Seagate-Bug-Id: MRP-2659
Signed-off-by: Parinay Kondekar <parinay.kondekar@seagate.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/6471
Tested-by:Jenkins
Reviewed-by: Elena V. Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Alexander Lezhoev <alexander.lezhoev@seagate.com>
Reviewed-on: http://review.whamcloud.com/16291
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh
lustre/tests/test-framework.sh