diff options
author | Chandan Babu R <chandanbabu@kernel.org> | 2024-01-11 17:28:26 +0530 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2024-01-14 20:39:09 +0800 |
commit | b0d63321c77744e2bad8c98b308a81e670f35fc0 (patch) | |
tree | 8fc0f7f39cad08eaf3136480b3c1f943fa1f1988 /common | |
parent | e443cadcea483baa4718e5dce8c221d185d5d076 (diff) |
common/xfs: Add function to detect support for metadump v2
This commit defines a new function to help detect support for metadump v2.
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/xfs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -708,6 +708,12 @@ _xfs_mdrestore() { $XFS_MDRESTORE_PROG $options "${metadump}" "${device}" } +_scratch_metadump_v2_supported() +{ + $XFS_DB_PROG -c "help metadump" $SCRATCH_DEV | \ + grep -q "Metadump version to be used" +} + # Snapshot the metadata on the scratch device _scratch_xfs_metadump() { |