X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-hsm.sh;h=f37896399e419577dfef71d7b53e88ad43b0c80d;hp=be7276b953fcfe81e3e4dde33dcfd606547e8dda;hb=65062463199fa76b6313e9452e3ab9590cbedaa2;hpb=aba940fa10195579eac0701846922547c6ad0dae diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index be7276b..f378963 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -147,10 +147,13 @@ fid2archive() { local fid="$1" - case "$HSMTOOL" in - *lhsmtool_posix) - printf "%s" "$(hsm_root)/*/*/*/*/*/*/$fid" - ;; + case "$HSMTOOL_ARCHIVE_FORMAT" in + v1) + printf "%s" "$(hsm_root)/*/*/*/*/*/*/$fid" + ;; + v2) + printf "%s" "$(hsm_root)/*/$fid" + ;; esac }