Home
last modified time | relevance | path

Searched refs:kSectorSize (Results 1 – 10 of 10) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp26 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()
Dutility.cpp33 using android::dm::kSectorSize;
114 constexpr ssize_t kDmSnapZeroFillSize = kSectorSize * kSnapshotChunkSize; in InitializeKernelCow()
Dsnapshot.cpp63 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 …]
Dpartition_cow_creator_test.cpp144 const uint64_t chunk_size = kSnapshotChunkSize * dm::kSectorSize; in TEST_F()
/system/vold/
DCheckpoint.cpp414 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/
Ddm_test.cpp255 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/
Dzram-perf.cpp17 static constexpr size_t kSectorSize = 512; variable
65 return blockSize * kSectorSize; in getSize()
/system/update_engine/aosp/
Dmetrics_reporter_android.cc120 super_free_space *= android::dm::kSectorSize; in ReportUpdateAttemptMetrics()
/system/core/fs_mgr/libdm/include/libdm/
Ddm.h53 static constexpr uint64_t kSectorSize = 512; variable
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_test.cpp276 static const uint64_t kSectorSize = 512; member in android::snapshot::SnapuserdTest