am ba6747f1: Scan failure still means we finished scan.

* commit 'ba6747f119811032b258cf3c6334a4d0f9b675bf':
  Scan failure still means we finished scan.
gugelfrei
Jeff Sharkey 9 years ago committed by Android Git Automerger
commit 16c1219e2d

@ -260,6 +260,7 @@ status_t Disk::readPartitions() {
status_t res = ForkExecvp(cmd, output);
if (res != OK) {
LOG(WARNING) << "sgdisk failed to scan " << mDevPath;
notifyEvent(ResponseCode::DiskScanned);
mJustPartitioned = false;
return res;
}
@ -322,7 +323,6 @@ status_t Disk::readPartitions() {
#endif
notifyEvent(ResponseCode::DiskScanned);
mJustPartitioned = false;
return OK;
}

Loading…
Cancel
Save