]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
metadump: Define metadump v2 ondisk format structures and macros
authorChandan Babu R <chandan.babu@oracle.com>
Mon, 6 Nov 2023 13:10:43 +0000 (18:40 +0530)
committerCarlos Maiolino <cem@kernel.org>
Tue, 21 Nov 2023 13:09:36 +0000 (14:09 +0100)
commitead0662803cb98d441b4eb9e2bfc4c4875cf92ef
treed002f9e64e7fdca61623bb0ab3f45aa48e7bd7d1
parent46944d20004aea2d3e8bd8cbee088257c759ce6e
metadump: Define metadump v2 ondisk format structures and macros

The corresponding metadump file's disk layout is as shown below,

     |------------------------------|
     | struct xfs_metadump_header   |
     |------------------------------|
     | struct xfs_meta_extent 0     |
     | Extent 0's data              |
     | struct xfs_meta_extent 1     |
     | Extent 1's data              |
     | ...                          |
     | struct xfs_meta_extent (n-1) |
     | Extent (n-1)'s data          |
     |------------------------------|

The "struct xfs_metadump_header" is followed by alternating series of "struct
xfs_meta_extent" and the extent itself.

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