Whamcloud - gitweb
LU-9345 tests: use hsm_remove with --mntpath for deleted files 06/27006/4
authorQuentin Bouget <quentin.bouget@cea.fr>
Tue, 9 May 2017 12:05:36 +0000 (14:05 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:30:38 +0000 (03:30 +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.

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

index 02b5175..a69302a 100755 (executable)
@@ -2728,7 +2728,8 @@ test_29d() {
        rm -f $file
        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
        # give time for CDT to handle remove request and create broadcasted
        sleep 2