Searched refs:max_blocks (Results 1 – 6 of 6) sorted by relevance
110 if (cow_options.max_blocks) { in OpenReader()111 reader->SetBlockDeviceSize(*cow_options.max_blocks * cow_options.block_size); in OpenReader()
171 options.max_blocks = {kBlockCount}; in TEST_F()
1186 if (!writer->options().max_blocks) { in WriteRandomSnapshotData()1190 const auto num_blocks = writer->options().max_blocks.value(); in WriteRandomSnapshotData()1220 if (!writer->options().max_blocks || !*writer->options().max_blocks) { in ShiftAllSnapshotBlocks()1226 uint64_t max_blocks = *writer->options().max_blocks; in ShiftAllSnapshotBlocks() local1227 while (dst_block < max_blocks && dst_block < src_block) { in ShiftAllSnapshotBlocks()
3665 cow_options.max_blocks = {status.device_size() / cow_options.block_size};3708 cow_options.max_blocks = {status.device_size() / cow_options.block_size};
127 if (options_.max_blocks && new_block >= options_.max_blocks.value()) { in ValidateNewBlock()129 << options_.max_blocks.value(); in ValidateNewBlock()
43 std::optional<uint64_t> max_blocks; member