summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorChandan Babu R <chandanbabu@kernel.org>2024-01-11 17:28:26 +0530
committerZorro Lang <zlang@kernel.org>2024-01-14 20:39:09 +0800
commitb0d63321c77744e2bad8c98b308a81e670f35fc0 (patch)
tree8fc0f7f39cad08eaf3136480b3c1f943fa1f1988 /common
parente443cadcea483baa4718e5dce8c221d185d5d076 (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/xfs6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/xfs b/common/xfs
index 91b8ac38..49c5df15 100644
--- a/common/xfs
+++ b/common/xfs
@@ -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()
{