xref: /spdk/lib/ftl/upgrade/ftl_sb_upgrade.h (revision f968b954a94944780711b6c2548cbe7aa1c77d81)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (C) 2022 Intel Corporation.
3  *   All rights reserved.
4  */
5 
6 #ifndef FTL_SB_UPGRADE_H
7 #define FTL_SB_UPGRADE_H
8 
9 #include "spdk/uuid.h"
10 #include "ftl_sb_common.h"
11 #include "ftl_sb_prev.h"
12 #include "ftl_sb_current.h"
13 
14 struct spdk_ftl_dev;
15 struct ftl_layout_region;
16 
17 union ftl_superblock_ver {
18 	struct ftl_superblock_header header;
19 	struct ftl_superblock_v2 v2;
20 	struct ftl_superblock_v3 v3;
21 	struct ftl_superblock_v5 v5;
22 	struct ftl_superblock current;
23 } __attribute__((packed));
24 
25 #endif /* FTL_SB_UPGRADE_H */
26