Home
last modified time | relevance | path

Searched refs:max_blocks (Results 1 – 8 of 8) sorted by relevance

/system/extras/tests/ext4/
Drand_emmc_perf.c110 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/
Dsnapshot_writer.cpp93 if (cow_options.max_blocks) { in OpenReader()
94 reader->SetBlockDeviceSize(*cow_options.max_blocks * cow_options.block_size); in OpenReader()
Dcow_writer.cpp74 if (options_.max_blocks && new_block >= options_.max_blocks.value()) { in ValidateNewBlock()
76 << options_.max_blocks.value(); in ValidateNewBlock()
Dtest_helpers.cpp143 if (!writer->options().max_blocks) { in WriteRandomData()
147 uint64_t num_blocks = writer->options().max_blocks.value(); in WriteRandomData()
Dsnapshot_reader_test.cpp152 options.max_blocks = {kBlockCount}; in TEST_F()
Dsnapshot_test.cpp1026 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()
Dsnapshot.cpp3168 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/
Dcow_writer.h35 std::optional<uint64_t> max_blocks; member