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