Searched refs:kSectorSize (Results 1 – 8 of 8) sorted by relevance
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator.cpp | 25 using android::dm::kSectorSize; 143 const unsigned int sectors_per_block = logical_block_size / kSectorSize; in GetCowSize() 144 DmSnapCowSizeCalculator sc(kSectorSize, kSnapshotChunkSize); in GetCowSize() 212 free_region_length *= kSectorSize; in Run() 228 cow_file_size += kSectorSize - 1; in Run() 229 cow_file_size &= ~(kSectorSize - 1); in Run()
|
D | utility.cpp | 28 using android::dm::kSectorSize; 108 constexpr ssize_t kDmSnapZeroFillSize = kSectorSize * kSnapshotChunkSize; in InitializeCow()
|
D | snapshot.cpp | 56 using android::dm::kSectorSize; 307 if (status->device_size() % kSectorSize != 0) { in CreateSnapshot() 313 if (status->snapshot_size() % kSectorSize != 0) { in CreateSnapshot() 319 if (status->cow_partition_size() % kSectorSize != 0) { in CreateSnapshot() 325 if (status->cow_file_size() % kSectorSize != 0) { in CreateSnapshot() 354 if (status.cow_file_size() % kSectorSize != 0) { in CreateCowImage() 400 if (status.device_size() % kSectorSize != 0) { in MapSnapshot() 404 if (status.snapshot_size() % kSectorSize != 0 || in MapSnapshot() 409 uint64_t snapshot_sectors = status.snapshot_size() / kSectorSize; in MapSnapshot() 410 uint64_t linear_sectors = (status.device_size() - status.snapshot_size()) / kSectorSize; in MapSnapshot() [all …]
|
D | partition_cow_creator_test.cpp | 137 const uint64_t chunk_size = kSnapshotChunkSize * dm::kSectorSize; in TEST_F()
|
/system/vold/ |
D | Checkpoint.cpp | 403 const int kSectorSize = 512; variable 558 int count = (le->size - 1) / kSectorSize + 1; in restoreSector() 580 lseek64(device_fd, le->source * kSectorSize, SEEK_SET); in restoreSector() 594 lseek64(device_fd, sector * kSectorSize, SEEK_SET); in relocatedRead() 600 for (uint32_t i = 0; i < size; i += block_size, sector += block_size / kSectorSize) { in relocatedRead() 602 lseek64(device_fd, (sector + relocation->second - relocation->first) * kSectorSize, in relocatedRead() 672 uint32_t checksum = le->source / (ls.block_size / kSectorSize); in cp_restoreCheckpoint() 683 relocate(relocations, le->source, le->dest, (le->size - 1) / kSectorSize + 1); in cp_restoreCheckpoint()
|
/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 218 static const uint64_t kSectorSize = 512; member in SnapshotTestHarness 252 0, kBaseDeviceSize / kSectorSize, base_loop_->device()))); in SetupImpl() 254 ASSERT_EQ(kBaseDeviceSize / kSectorSize, origin_table.num_sectors()); in SetupImpl() 263 0, kBaseDeviceSize / kSectorSize, base_loop_->device(), cow_loop_->device(), in SetupImpl() 266 ASSERT_EQ(kBaseDeviceSize / kSectorSize, snap_table.num_sectors()); in SetupImpl() 283 make_unique<DmTargetSnapshot>(0, kBaseDeviceSize / kSectorSize, base_loop_->device(), in MergeImpl() 286 ASSERT_EQ(kBaseDeviceSize / kSectorSize, merge_table.num_sectors()); in MergeImpl()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 17 static constexpr size_t kSectorSize = 512; variable 65 return blockSize * kSectorSize; in getSize()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 50 static constexpr uint64_t kSectorSize = 512; variable
|