Lines Matching defs:block
57 SPDK_STATIC_ASSERT(sizeof(struct spdk_bs_super_block_ver1) == 0x1000, "Invalid super block size");
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. */
4190 * those fields in the super block and zero the corresponding
4211 * results in writing the super block (since metadata pages
6641 /* Super block should not change for rest of the UT,
6647 /* Force bs/super block in a clean state.
6661 /* After successful md sync, both bs and super block
6668 /* Depending on the point of failure, super block was either updated or not. */
6671 /* Compare that the values in super block remained unchanged. */
6930 /* Each character 0-F symbolizes single io_unit containing 512 bytes block filled with that character.
6931 * Each page is separated by |. Whole block [...] symbolizes one cluster (containing 4 pages). */
7242 /* Each character 0-F symbolizes single io_unit containing 512 bytes block filled with that character.
7243 * Each page is separated by |. Whole block [...] symbolizes one cluster (containing 4 pages). */
7717 /* Modify super block to behave like older version.
8485 uint32_t block;
8492 /* Create device with desired block size */
8526 /* Write one blob block at a time; verify that the surrounding blocks are OK */
8527 for (block = 0; block < blob_num_blocks; block++) {
8532 word.f.lba = block;
8535 spdk_blob_io_write(blob, bs_ch, buf, block, 1, bs_op_complete, NULL);
8542 /* Read and verify the block before the current block */
8543 if (block != 0) {
8544 spdk_blob_io_read(blob, bs_ch, buf, block - 1, 1, bs_op_complete, NULL);
8551 (block - 1) * bs_blksz, bs_blksz));
8554 /* Read and verify the current block */
8555 spdk_blob_io_read(blob, bs_ch, buf, block, 1, bs_op_complete, NULL);
8562 block * bs_blksz, bs_blksz));
8564 /* Check the block that follows */
8565 if (block + 1 < blob_num_blocks) {
8567 spdk_blob_io_read(blob, bs_ch, buf, block + 1, 1, bs_op_complete, NULL);
8574 (block + 1) * bs_blksz,
8624 /* Create device with desired block size */
9429 uint32_t block, esnap_blksz = 512, bs_blksz = 512;
9440 /* Create device with desired block size */
9470 /* Write one blob block at a time; verify that the surrounding blocks are OK */
9472 for (block = 0; block < blob_num_blocks; block++) {
9476 word.f.lba = block;
9478 spdk_blob_io_write(blob, bs_ch, buf, block, 1, bs_op_complete, NULL);
9484 /* Read and verify the block before the current block */
9485 if (block != 0) {
9486 spdk_blob_io_read(blob, bs_ch, buf, block - 1, 1, bs_op_complete, NULL);
9493 (block - 1) * bs_blksz, bs_blksz));
9495 /* Read and verify the current block */
9496 spdk_blob_io_read(blob, bs_ch, buf, block, 1, bs_op_complete, NULL);
9503 block * bs_blksz, bs_blksz));
9504 /* Check the block that follows */
9505 if (block + 1 < blob_num_blocks) {
9507 spdk_blob_io_read(blob, bs_ch, buf, block + 1, 1, bs_op_complete, NULL);
9514 (block + 1) * bs_blksz,
9630 /* Shallow copy over a spdk_bs_dev with incorrect block len */