libsnapshot: Fix incorrect CHECK in PerformInitTransition().
The sector count can decrease as the merge progresses, so we only care that the sector count is less than or equal to the device size. Bug: N/A Test: reboot during VABC merge Change-Id: I1da956456ea28ca0fdfbf9373848987c9f71ff68
This commit is contained in:
parent
116be4e2bd
commit
52c6f991c5
|
@ -1410,7 +1410,7 @@ bool SnapshotManager::PerformInitTransition(InitTransition transition,
|
|||
return false;
|
||||
}
|
||||
|
||||
CHECK(base_sectors == target.spec.length);
|
||||
CHECK(base_sectors <= target.spec.length);
|
||||
|
||||
if (!snapuserd_client_->AttachDmUser(misc_name)) {
|
||||
// This error is unrecoverable. We cannot proceed because reads to
|
||||
|
|
Loading…
Reference in New Issue