Whamcloud - gitweb
LU-14359 hsm: support a flatter HSM archive format
[fs/lustre-release.git] / lustre / tests / sanity-hsm.sh
index be7276b..f378963 100755 (executable)
@@ -147,10 +147,13 @@ fid2archive()
 {
        local fid="$1"
 
 {
        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
 }
 
        esac
 }