Searched refs:device_size (Results 1 – 6 of 6) sorted by relevance
307 if (status->device_size() % kSectorSize != 0) { in CreateSnapshot()310 << status->device_size(); in CreateSnapshot()395 if (status.device_size() != dev_size) { in MapSnapshot()397 << "(expected " << status.device_size() << ", got " << dev_size << ")"; in MapSnapshot()401 if (status.device_size() % kSectorSize != 0) { in MapSnapshot()402 LOG(ERROR) << "invalid blockdev size for " << base_device << ": " << status.device_size(); in MapSnapshot()406 status.snapshot_size() > status.device_size()) { in MapSnapshot()411 uint64_t linear_sectors = (status.device_size() - status.snapshot_size()) / kSectorSize; in MapSnapshot()1153 uint64_t expected_device_sectors = status.device_size() / kSectorSize; in CollapseSnapshotDevice()2080 if (status.device_size() != status.snapshot_size()) { in GetSnapshotDeviceName()[all …]
282 AssertionResult PrepareOneSnapshot(uint64_t device_size, in PrepareOneSnapshot() argument285 if (!CreatePartition("test_partition_a", device_size)) { in PrepareOneSnapshot()296 status.set_device_size(device_size); in PrepareOneSnapshot()297 status.set_snapshot_size(device_size); in PrepareOneSnapshot()298 status.set_cow_file_size(device_size); in PrepareOneSnapshot()365 ASSERT_EQ(status.device_size(), kDeviceSize); in TEST_F()
77 ASSERT_EQ(final_size, ret->snapshot_status.device_size()); in TEST_F()
46 uint64 device_size = 3; field50 // This must be less than or equal to |device_size|.
256 uint64_t device_size, const struct verity_table_params* params, in load_verity_table() argument267 android::dm::DmTargetVerityString target(0, device_size / 512, buffer); in load_verity_table()
326 uint64_t device_size) { in readVerityDevice() argument336 size_t bytes_left = device_size; in readVerityDevice()