Whamcloud - gitweb
LU-9345 tests: use hsm_remove with --mntpath for deleted files 20/28320/2
authorQuentin Bouget <quentin.bouget@cea.fr>
Tue, 9 May 2017 12:05:36 +0000 (14:05 +0200)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 7 Aug 2017 18:51:42 +0000 (18:51 +0000)
In test_29d of sanity-hsm, to run "lfs hsm_remove" on a file deleted
from Lustre, one has to use the --mntpath option.

Lustre-change: https://review.whamcloud.com/27006
Lustre-commit: cff9f1e7c6a41bfa05d1455b8964860803d12612

Test-Parameters: trivial testlist=sanity-hsm clientcount=3 envdefinitions="ONLY=29d"
Signed-off-by: Quentin Bouget <quentin.bouget@cea.fr>
Change-Id: I35865c059e498e1a0ced0cebeac22a8491231e00
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/28320
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/sanity-hsm.sh

index 02b5175..a69302a 100755 (executable)
@@ -2728,7 +2728,8 @@ test_29d() {
 
        rm -f $file
 
-       $LFS hsm_remove -a 0 $fid
+       $LFS hsm_remove --mntpath "$MOUNT" -a 0 $fid ||
+               error "cannot hsm_remove '$fid'"
 
        # give time for CDT to handle remove request and create broadcasted
        sleep 2