From: Ben Gras Date: Fri, 12 Jan 2007 17:16:51 +0000 (+0000) Subject: Don't panic if opening a block device fails. X-Git-Tag: v3.1.3~114 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=bcbac65a0771d663749de24cea3f4a7461ece4aa;p=minix.git Don't panic if opening a block device fails. --- diff --git a/servers/vfs/open.c b/servers/vfs/open.c index d05233c07..13a49de5c 100644 --- a/servers/vfs/open.c +++ b/servers/vfs/open.c @@ -235,8 +235,10 @@ PRIVATE int common_open(register int oflags, mode_t omode) case I_BLOCK_SPECIAL: /* Invoke the driver for special processing. */ r = dev_open(vp->v_sdev, who_e, bits | (oflags & ~O_ACCMODE)); +#if 0 if (r != OK) panic(__FILE__, "common_open: dev_open failed", r); +#endif /* Check whether the device is mounted or not */ found = 0;