Skip to content

Commit b9e04e1

Browse files
authored
Merge pull request #9236 from tangledbytes/utkarsh/fix/finalize_restore-enotsup
[NSFS | NC | GLACIER] Fix `_finalize_restore` ENOTSUP issue
2 parents 5374f8a + d2b74a9 commit b9e04e1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/sdk/glacier_tapecloud.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,9 @@ class TapeCloudGlacier extends Glacier {
536536
throw error;
537537
}
538538

539-
const xattr_get_keys = [Glacier.XATTR_RESTORE_REQUEST];
540-
if (fs_context.use_dmapi) {
541-
xattr_get_keys.push(Glacier.GPFS_DMAPI_XATTR_TAPE_PREMIG);
542-
}
543-
const stat = await fh.stat(fs_context, { xattr_get_keys });
539+
// stat will by default read GPFS_DMAPI_XATTR_TAPE_PREMIG and
540+
// user.noobaa.restore.request
541+
const stat = await fh.stat(fs_context, {});
544542

545543
// This is a hacky solution and would work only if
546544
// config.NSFS_GLACIER_DMAPI_ENABLE is enabled. This prevents

0 commit comments

Comments
 (0)