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>
$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()
{