From: Quentin Bouget Date: Tue, 9 May 2017 12:05:36 +0000 (+0200) Subject: LU-9345 tests: use hsm_remove with --mntpath for deleted files X-Git-Tag: 2.10.51~78 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=refs%2Fchanges%2F06%2F27006%2F4;ds=sidebyside LU-9345 tests: use hsm_remove with --mntpath for deleted files 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 Change-Id: I35865c059e498e1a0ced0cebeac22a8491231e00 Reviewed-on: https://review.whamcloud.com/27006 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Henri Doreau Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 02b5175..a69302a 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -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