From bcbac65a0771d663749de24cea3f4a7461ece4aa Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 12 Jan 2007 17:16:51 +0000 Subject: [PATCH] Don't panic if opening a block device fails. --- servers/vfs/open.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.44.0