Searched refs:INCFS_DATA_FILE_BLOCK_SIZE (Results 1 – 10 of 10) sorted by relevance
31 constexpr int FILE_SIZE = INCFS_DATA_FILE_BLOCK_SIZE * FILE_PAGES;46 std::vector<uint32_t> data(INCFS_DATA_FILE_BLOCK_SIZE); in SetUp()60 .dataSize = (uint32_t)INCFS_DATA_FILE_BLOCK_SIZE, in SetUp()62 INCFS_DATA_FILE_BLOCK_SIZE * p, in SetUp()262 std::vector<uint32_t>{0U, INCFS_DATA_FILE_BLOCK_SIZE / 2 - 1, in TEST_F()263 INCFS_DATA_FILE_BLOCK_SIZE / 2 + 1, INCFS_DATA_FILE_BLOCK_SIZE, in TEST_F()264 INCFS_DATA_FILE_BLOCK_SIZE * 3 / 2 - 1, in TEST_F()265 INCFS_DATA_FILE_BLOCK_SIZE * 3 / 2 + 1}) { in TEST_F()270 auto missing_page_start = INCFS_DATA_FILE_BLOCK_SIZE * FILE_MISSING_PAGE; in TEST_F()306 auto missing_page_end = INCFS_DATA_FILE_BLOCK_SIZE * (FILE_MISSING_PAGE + 1); in TEST_F()[all …]
61 return (ptr - start_block_ptr) / INCFS_DATA_FILE_BLOCK_SIZE; in get_block_index()82 size_t offset_diff = offset % INCFS_DATA_FILE_BLOCK_SIZE; in CreateForceVerification()87 const size_t bucket_count = (base_length_ / INCFS_DATA_FILE_BLOCK_SIZE) / kBucketBits; in CreateForceVerification()111 const off64_t read_offset = (curr_index * INCFS_DATA_FILE_BLOCK_SIZE) + start_block_offset_; in Verify()134 *prev_verified_block = start_block_ptr_ + (end_index * INCFS_DATA_FILE_BLOCK_SIZE); in Verify()
49 return (size + INCFS_DATA_FILE_BLOCK_SIZE - 1) / INCFS_DATA_FILE_BLOCK_SIZE; in sizeToPages()58 std::vector<char> data(INCFS_DATA_FILE_BLOCK_SIZE); in writeTestRanges()118 std::vector<char> data(INCFS_DATA_FILE_BLOCK_SIZE); in testWriteBlockAndPageRead()148 char buf[INCFS_DATA_FILE_BLOCK_SIZE]; in testWriteBlockAndPageRead()177 std::vector<char> data(INCFS_DATA_FILE_BLOCK_SIZE); in testWaitForPendingReads()191 char buf[INCFS_DATA_FILE_BLOCK_SIZE]; in testWaitForPendingReads()196 inline static const int test_file_size_ = INCFS_DATA_FILE_BLOCK_SIZE;445 {.size = 4 * INCFS_DATA_FILE_BLOCK_SIZE})); in TEST_F()477 std::vector<char> data(INCFS_DATA_FILE_BLOCK_SIZE); in TEST_F()612 {.size = 5 * INCFS_DATA_FILE_BLOCK_SIZE})); in TEST_F()[all …]
92 (INCFS_DATA_FILE_BLOCK_SIZE / INCFS_MAX_HASH_SIZE + 1) * INCFS_DATA_FILE_BLOCK_SIZE; in makeFileWithHash()
219 if (header.fh_data_block_size != INCFS_DATA_FILE_BLOCK_SIZE) { in run()220 err() << "bad data block size, expected: " << hex(INCFS_DATA_FILE_BLOCK_SIZE); in run()
58 constexpr int kBlockSize = INCFS_DATA_FILE_BLOCK_SIZE;
22 #define INCFS_DATA_FILE_BLOCK_SIZE 4096 macro
375 data_end <= verified_block_ + INCFS_DATA_FILE_BLOCK_SIZE)) {
199 constexpr int kBlockSize = INCFS_DATA_FILE_BLOCK_SIZE;
1954 const auto backingSize = IncFsSize(size * 1.015) + INCFS_DATA_FILE_BLOCK_SIZE * 4; in reserveSpace()