Home
last modified time | relevance | path

Searched refs:device_size (Results 1 – 6 of 6) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp307 if (status->device_size() % kSectorSize != 0) { in CreateSnapshot()
310 << status->device_size(); in CreateSnapshot()
394 if (status.device_size() != dev_size) { in MapSnapshot()
396 << "(expected " << status.device_size() << ", got " << dev_size << ")"; in MapSnapshot()
400 if (status.device_size() % kSectorSize != 0) { in MapSnapshot()
401 LOG(ERROR) << "invalid blockdev size for " << base_device << ": " << status.device_size(); in MapSnapshot()
405 status.snapshot_size() > status.device_size()) { in MapSnapshot()
410 uint64_t linear_sectors = (status.device_size() - status.snapshot_size()) / kSectorSize; in MapSnapshot()
1152 uint64_t expected_device_sectors = status.device_size() / kSectorSize; in CollapseSnapshotDevice()
2079 if (status.device_size() != status.snapshot_size()) { in GetSnapshotDeviceName()
[all …]
Dpartition_cow_creator_test.cpp71 ASSERT_EQ(partition_size, ret->snapshot_status.device_size()); in TEST_F()
219 ASSERT_EQ(0u, ret->snapshot_status.device_size()); in TEST_F()
Dsnapshot_test.cpp289 AssertionResult PrepareOneSnapshot(uint64_t device_size, in PrepareOneSnapshot() argument
292 if (!CreatePartition("test_partition_a", device_size)) { in PrepareOneSnapshot()
303 status.set_device_size(device_size); in PrepareOneSnapshot()
304 status.set_snapshot_size(device_size); in PrepareOneSnapshot()
305 status.set_cow_file_size(device_size); in PrepareOneSnapshot()
373 ASSERT_EQ(status.device_size(), kDeviceSize); in TEST_F()
/system/core/fs_mgr/libsnapshot/android/snapshot/
Dsnapshot.proto46 uint64 device_size = 3; field
50 // This must be less than or equal to |device_size|.
/system/core/fs_mgr/
Dfs_mgr_verity.cpp256 uint64_t device_size, const struct verity_table_params* params, in load_verity_table() argument
267 android::dm::DmTargetVerityString target(0, device_size / 512, buffer); in load_verity_table()
/system/apex/apexd/
Dapexd.cpp325 uint64_t device_size) { in readVerityDevice() argument
336 size_t bytes_left = device_size; in readVerityDevice()