]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
_scratch_xfs_mdrestore: Pass scratch log device when applicable
authorChandan Babu R <chandanbabu@kernel.org>
Thu, 11 Jan 2024 11:58:27 +0000 (17:28 +0530)
committerZorro Lang <zlang@kernel.org>
Sun, 14 Jan 2024 12:39:09 +0000 (20:39 +0800)
commit5011eb3e04e89d71b7ce2623d2aaff342339b79e
treeda2ac50a59a3821284b034100987135aa1ebb0fc
parentb0d63321c77744e2bad8c98b308a81e670f35fc0
_scratch_xfs_mdrestore: Pass scratch log device when applicable

Metadump v2 supports dumping contents of an external log device. This commit
modifies _scratch_xfs_mdrestore() and _xfs_mdrestore() to be able to restore
metadump files which contain data from external log devices.

The callers of _scratch_xfs_mdrestore() must set the value of $SCRATCH_LOGDEV
only when all of the following conditions are met:
1. Metadump is in v2 format.
2. Metadump has contents dumped from an external log device.

Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/xfs