From 6322b4ce40dd1804bec6ab0494129d0dfd3a735c Mon Sep 17 00:00:00 2001 From: Damiano Cipriani Date: Mon, 24 Apr 2023 15:08:55 +0200 Subject: [PATCH] module/raid: increase raid name size in superblock The size of raid name inside raid superblock structure is increased to 64 chars to let the creation of raid bdev with longer name. Signed-off-by: Damiano Cipriani --- module/bdev/raid/bdev_raid_sb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bdev/raid/bdev_raid_sb.h b/module/bdev/raid/bdev_raid_sb.h index 3edb92a0e..c803ed67c 100644 --- a/module/bdev/raid/bdev_raid_sb.h +++ b/module/bdev/raid/bdev_raid_sb.h @@ -13,7 +13,7 @@ #define RAID_BDEV_SB_VERSION_MAJOR 1 #define RAID_BDEV_SB_VERSION_MINOR 0 -#define RAID_BDEV_SB_NAME_SIZE 32 +#define RAID_BDEV_SB_NAME_SIZE 64 #define RAID_BDEV_SB_MAX_LENGTH \ SPDK_ALIGN_CEIL((sizeof(struct raid_bdev_superblock) + UINT8_MAX * sizeof(struct raid_bdev_sb_base_bdev)), 0x1000) @@ -84,7 +84,7 @@ struct raid_bdev_superblock { /* array of base bdev descriptors */ struct raid_bdev_sb_base_bdev base_bdevs[]; }; -SPDK_STATIC_ASSERT(sizeof(struct raid_bdev_superblock) == 192, "incorrect size"); +SPDK_STATIC_ASSERT(sizeof(struct raid_bdev_superblock) == 224, "incorrect size"); typedef void (*raid_bdev_load_sb_cb)(const struct raid_bdev_superblock *sb, int status, void *ctx); typedef void (*raid_bdev_save_sb_cb)(int status, void *ctx);