Searched refs:max_blocks (Results 1 – 8 of 8) sorted by relevance
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 110 static void stats_test(int fd, int write_mode, off64_t max_blocks, int stats_count, in stats_test() argument 126 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) { in stats_test() 146 static void perf_test(int fd, int write_mode, off64_t max_blocks) in perf_test() argument 156 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) { in perf_test() 191 off64_t max_blocks; in main() local 240 max_blocks = atoll(argv[optind]) * ((1024*1024) / TST_BLK_SIZE); in main() 258 stats_test(fd, write_mode, max_blocks, stats_count, full_stats_file); in main() 260 perf_test(fd, write_mode, max_blocks); in main()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_writer.cpp | 93 if (cow_options.max_blocks) { in OpenReader() 94 reader->SetBlockDeviceSize(*cow_options.max_blocks * cow_options.block_size); in OpenReader()
|
D | cow_writer.cpp | 74 if (options_.max_blocks && new_block >= options_.max_blocks.value()) { in ValidateNewBlock() 76 << options_.max_blocks.value(); in ValidateNewBlock()
|
D | test_helpers.cpp | 143 if (!writer->options().max_blocks) { in WriteRandomData() 147 uint64_t num_blocks = writer->options().max_blocks.value(); in WriteRandomData()
|
D | snapshot_reader_test.cpp | 152 options.max_blocks = {kBlockCount}; in TEST_F()
|
D | snapshot_test.cpp | 1026 if (!writer->options().max_blocks || !*writer->options().max_blocks) { in ShiftAllSnapshotBlocks() 1032 uint64_t max_blocks = *writer->options().max_blocks; in ShiftAllSnapshotBlocks() local 1033 while (dst_block < max_blocks && dst_block < src_block) { in ShiftAllSnapshotBlocks()
|
D | snapshot.cpp | 3168 cow_options.max_blocks = {status.device_size() / cow_options.block_size}; in OpenCompressedSnapshotWriter() 3209 cow_options.max_blocks = {status.device_size() / cow_options.block_size}; in OpenKernelSnapshotWriter()
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | cow_writer.h | 35 std::optional<uint64_t> max_blocks; member
|