]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mdrestore: Replace metadump header pointer argument with a union pointer
authorChandan Babu R <chandanbabu@kernel.org>
Mon, 6 Nov 2023 13:10:50 +0000 (18:40 +0530)
committerCarlos Maiolino <cem@kernel.org>
Tue, 21 Nov 2023 13:09:36 +0000 (14:09 +0100)
commitbb78872ffbd596658ba30d5c976fad5013494aee
tree45d003401a9d5af9262dd5fb9a707dee9e42e07e
parent80240ae3defc9c14ebaf80902e986f08a4f97b7e
mdrestore: Replace metadump header pointer argument with a union pointer

We will need two variants of read_header(), show_info() and restore() helper
functions to support two versions of metadump formats. To this end, A future
commit will introduce a vector of function pointers to work with the two
metadump formats. To have a common function signature for the function
pointers, this commit replaces the first argument of the previously listed
function pointers from "struct xfs_metablock *" with "union
mdrestore_headers *".

Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
mdrestore/xfs_mdrestore.c