xfs/077: remove _require_meta_uuid
PATCH 1/1 xfs/077: remove _require_meta_uuid
_require_meta_uuid tries to check if the configuration supports the metauuid feature. It assumes a scratch fs has already been created, which in the part was accidentally true to do a _require_xfs_crc call that was removed in commit 39afc0aa237d ("xfs: remove support for tools and kernels without v5 support").
As v5 file systems always support meta uuids, and xfs/077 forces a v5 file systems we can just remove the check.
--- common/xfs | 15 --------------- tests/xfs/077 | 1 - 2 files changed, 16 deletions(-)
common/xfs +0 -15
@@ -1232,21 +1232,6 @@ _require_scratch_xfs_shrink() _scratch_unmount } -# XFS ability to change UUIDs on V5/CRC filesystems -# -_require_meta_uuid() -{ - _scratch_xfs_db -x -c "uuid restore" 2>&1 \ - | grep -q "invalid UUID\|supported on V5 fs" \ - && _notrun "Userspace doesn't support meta_uuid feature" - - _scratch_xfs_db -x -c "uuid generate" >/dev/null 2>&1 - - _try_scratch_mount >/dev/null 2>&1 \ - || _notrun "Kernel doesn't support meta_uuid feature" - _scratch_unmount -} - # this test requires mkfs.xfs have case-insensitive naming support _require_xfs_mkfs_ciname() {
tests/xfs/077 +0 -1
@@ -24,7 +24,6 @@ _supported_fs xfs _require_xfs_copy _require_scratch _require_no_large_scratch_dev -_require_meta_uuid # Takes 2 args, 2nd optional: # 1: generate, rewrite, or restore
Signature · 1 line
2.39.2
Quoted 9 lines · Christoph Hellwig
_require_meta_uuidtries to check if the configuration supports the metauuid feature. It assumes a scratch fs has already been created, which in the part was accidentally true to do a_require_xfs_crccall that was removed in commit39afc0aa237d("xfs: remove support for tools and kernels without v5 support").As v5 file systems always support meta uuids, and xfs/077 forces a v5 file systems we can just remove the check.
This patch solves the bug,
Signature · 1 line
Chandan
Quoted 21 lines · Christoph Hellwig
_require_meta_uuidtries to check if the configuration supports the metauuid feature. It assumes a scratch fs has already been created, which in the part was accidentally true to do a_require_xfs_crccall that was removed in commit39afc0aa237d("xfs: remove support for tools and kernels without v5 support").As v5 file systems always support meta uuids, and xfs/077 forces a v5 file systems we can just remove the check.
Reported-by Chandan Babu R <[email protected]>Signed-off-by Christoph Hellwig <[email protected]>--- common/xfs | 15 --------------- tests/xfs/077 | 1 - 2 files changed, 16 deletions(-)common/xfs +0
-0
common/xfs _require_scratch_xfs_shrink() · line 1238
Quoted 7 lines
common/xfs +0
-4@@ -1232,21 +1232,6 @@ _require_scratch_xfs_shrink() _scratch_unmount } -# XFS ability to change UUIDs on V5/CRC filesystems -# -_require_meta_uuid() -{
OK, I thought you might want to add a _scratch_mkfs at here. But sure, I'm good to remove it too.
Quoted 30 lines
common/xfs +0
-11- _scratch_xfs_db -x -c "uuid restore" 2>&1 \ - | grep -q "invalid UUID\|supported on V5 fs" \ - && _notrun "Userspace doesn't support meta_uuid feature" - - _scratch_xfs_db -x -c "uuid generate" >/dev/null 2>&1 - - _try_scratch_mount >/dev/null 2>&1 \ - || _notrun "Kernel doesn't support meta_uuid feature" - _scratch_unmount -} - # this test requires mkfs.xfs have case-insensitive naming support _require_xfs_mkfs_ciname() {tests/xfs/077 +0
-1@@ -24,7 +24,6 @@ _supported_fs xfs _require_xfs_copy _require_scratch _require_no_large_scratch_dev -_require_meta_uuid # Takes 2 args, 2nd optional: # 1: generate, rewrite, or restoreSignature · 1 line
2.39.2