Lines Matching defs:super
57 SPDK_STATIC_ASSERT(sizeof(struct spdk_bs_super_block_ver1) == 0x1000, "Invalid super block size");
287 /* Get the super blob without having set one */
301 /* Set the blob as the super blob */
306 /* Get the super blob */
2784 * the used_cluster bitmap length, but it didn't change the super block yet.
2999 /* Create a new blob store with super block version 1 */
3115 /* Make sure the super block is updated. */
3130 /* Make sure all metadata is correct, super block and used_cluster mask. */
3244 /* Make sure all metadata is correct, super block and used_cluster mask. */
3773 * 1 Initialize new blob store and create 1 super blob with some xattrs, then we
3831 /* Set the blob as the super blob */
3847 /* Get the super blob */
4166 struct spdk_bs_super_block *super;
4184 super = (struct spdk_bs_super_block *)&g_dev_buffer[0];
4185 CU_ASSERT(super->version == SPDK_BS_VERSION);
4186 CU_ASSERT(super->clean == 1);
4187 super->version = 2;
4190 * those fields in the super block and zero the corresponding
4194 memset(&g_dev_buffer[super->used_blobid_mask_start * SPDK_BS_PAGE_SIZE], 0,
4195 super->used_blobid_mask_len * SPDK_BS_PAGE_SIZE);
4196 super->used_blobid_mask_start = 0;
4197 super->used_blobid_mask_len = 0;
4198 super->crc = blob_md_page_calc_crc(super);
4206 CU_ASSERT(super->clean == 1);
4211 * results in writing the super block (since metadata pages
4226 CU_ASSERT(super->version == 2);
4227 CU_ASSERT(super->used_blobid_mask_start == 0);
4228 CU_ASSERT(super->used_blobid_mask_len == 0);
4246 CU_ASSERT(super->version == 2);
4247 CU_ASSERT(super->used_blobid_mask_start == 0);
4248 CU_ASSERT(super->used_blobid_mask_len == 0);
6629 struct spdk_bs_super_block *super = (struct spdk_bs_super_block *)&g_dev_buffer[0];
6643 memcpy(&super_copy, super, sizeof(struct spdk_bs_super_block));
6644 SPDK_CU_ASSERT_FATAL(super->clean == 0);
6647 /* Force bs/super block in a clean state.
6651 super->clean = 1;
6652 super->crc = blob_md_page_calc_crc(super);
6661 /* After successful md sync, both bs and super block
6664 SPDK_CU_ASSERT_FATAL(super->clean == 0);
6668 /* Depending on the point of failure, super block was either updated or not. */
6669 super_copy.clean = super->clean;
6671 /* Compare that the values in super block remained unchanged. */
6672 SPDK_CU_ASSERT_FATAL(!memcmp(&super_copy, super, sizeof(struct spdk_bs_super_block)));
7690 struct spdk_bs_super_block *super;
7717 /* Modify super block to behave like older version.
7719 super = (struct spdk_bs_super_block *)&g_dev_buffer[0];
7720 super->io_unit_size = 0;
7721 super->crc = blob_md_page_calc_crc(super);