Searched refs:kSectorSize (Results 1 – 10 of 10) sorted by relevance
/system/core/fs_mgr/libsnapshot/ |
D | partition_cow_creator.cpp | 26 using android::dm::kSectorSize; 177 const unsigned int sectors_per_block = logical_block_size / kSectorSize; in GetCowSize() 178 DmSnapCowSizeCalculator sc(kSectorSize, kSnapshotChunkSize); in GetCowSize() 251 free_region_length *= kSectorSize; in Run() 270 cow_file_size += kSectorSize - 1; in Run() 271 cow_file_size &= ~(kSectorSize - 1); in Run()
|
D | utility.cpp | 33 using android::dm::kSectorSize; 114 constexpr ssize_t kDmSnapZeroFillSize = kSectorSize * kSnapshotChunkSize; in InitializeKernelCow()
|
D | snapshot.cpp | 63 using android::dm::kSectorSize; 389 if (status->device_size() % kSectorSize != 0) { in CreateSnapshot() 395 if (status->snapshot_size() % kSectorSize != 0) { in CreateSnapshot() 401 if (status->cow_partition_size() % kSectorSize != 0) { in CreateSnapshot() 407 if (status->cow_file_size() % kSectorSize != 0) { in CreateSnapshot() 446 if (status.cow_file_size() % kSectorSize != 0) { in CreateCowImage() 616 if (status.device_size() % kSectorSize != 0) { in MapSnapshot() 620 if (status.snapshot_size() % kSectorSize != 0 || in MapSnapshot() 631 uint64_t snapshot_sectors = status.snapshot_size() / kSectorSize; in MapSnapshot() 1574 uint64_t snapshot_sectors = status.snapshot_size() / kSectorSize; in CollapseSnapshotDevice() [all …]
|
D | partition_cow_creator_test.cpp | 144 const uint64_t chunk_size = kSnapshotChunkSize * dm::kSectorSize; in TEST_F()
|
/system/vold/ |
D | Checkpoint.cpp | 414 const int kSectorSize = 512; variable 569 int count = (le->size - 1) / kSectorSize + 1; in restoreSector() 591 lseek64(device_fd, le->source * kSectorSize, SEEK_SET); in restoreSector() 606 off64_t offset = sector * kSectorSize; in relocatedRead() 617 for (uint32_t i = 0; i < size; i += block_size, sector += block_size / kSectorSize) { in relocatedRead() 619 off64_t offset = (sector + relocation->second - relocation->first) * kSectorSize; in relocatedRead() 720 uint32_t checksum = le->source / (ls.block_size / kSectorSize); in cp_restoreCheckpoint() 731 relocate(relocations, le->source, le->dest, (le->size - 1) / kSectorSize + 1); in cp_restoreCheckpoint()
|
/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 255 static const uint64_t kSectorSize = 512; member in SnapshotTestHarness 289 0, kBaseDeviceSize / kSectorSize, base_loop_->device()))); in SetupImpl() 291 ASSERT_EQ(kBaseDeviceSize / kSectorSize, origin_table.num_sectors()); in SetupImpl() 300 0, kBaseDeviceSize / kSectorSize, base_loop_->device(), cow_loop_->device(), in SetupImpl() 303 ASSERT_EQ(kBaseDeviceSize / kSectorSize, snap_table.num_sectors()); in SetupImpl() 320 make_unique<DmTargetSnapshot>(0, kBaseDeviceSize / kSectorSize, base_loop_->device(), in MergeImpl() 323 ASSERT_EQ(kBaseDeviceSize / kSectorSize, merge_table.num_sectors()); in MergeImpl() 801 poolTable.Emplace<DmTargetThinPool>(0, DataSize / kSectorSize, loop_meta.device(), in TEST_F() 813 thinTable.Emplace<DmTargetThin>(0, ThinSize / kSectorSize, pool.path(), thin_volume_id); in TEST_F()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 17 static constexpr size_t kSectorSize = 512; variable 65 return blockSize * kSectorSize; in getSize()
|
/system/update_engine/aosp/ |
D | metrics_reporter_android.cc | 120 super_free_space *= android::dm::kSectorSize; in ReportUpdateAttemptMetrics()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 53 static constexpr uint64_t kSectorSize = 512; variable
|
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_test.cpp | 276 static const uint64_t kSectorSize = 512; member in android::snapshot::SnapuserdTest
|