X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/97901724584e74554916b89dfb8e95dc6497e687..2804ceee4ce65d49e9d52d0ed817317c0ac9efdc:/lunaix-os/kernel/block/block.c diff --git a/lunaix-os/kernel/block/block.c b/lunaix-os/kernel/block/block.c index 216c0ef..dbdb95a 100644 --- a/lunaix-os/kernel/block/block.c +++ b/lunaix-os/kernel/block/block.c @@ -75,10 +75,6 @@ __block_read(struct device* dev, void* buf, size_t offset, size_t len) 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; @@ -125,10 +121,6 @@ __block_write(struct device* dev, void* buf, size_t offset, size_t 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; @@ -172,7 +164,7 @@ block_mount(struct block_dev* bdev, devfs_exporter fs_export) 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... }