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 current; 22 } __attribute__((packed)); 23 24 #endif /* FTL_SB_UPGRADE_H */ 25