pwait(&req->wait);
- // XXX temporary work-around
- // in case pwait used in proc0. Need a dummy process!
- wait_if((req->flags & BLKIO_PENDING));
-
if (!(errno = req->errcode)) {
memcpy(buf, tmp_buf + r, rd_size);
errno = len;
pwait(&req->wait);
- // XXX temporary work-around
- // in case pwait used in proc0. Need a dummy process!
- wait_if((req->flags & BLKIO_PENDING));
-
int errno = req->errcode;
if (!errno) {
errno = len;
errno = blkpart_probegpt(bdev->dev);
if (errno < 0) {
- kprintf(KERROR "Corrupted partition table. (%d)", errno);
+ kprintf(KERROR "Fail to parse partition table (%d)\n", errno);
} else if (!errno) {
// TODO try other PT parser...
}