]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't panic if opening a block device fails.
authorBen Gras <ben@minix3.org>
Fri, 12 Jan 2007 17:16:51 +0000 (17:16 +0000)
committerBen Gras <ben@minix3.org>
Fri, 12 Jan 2007 17:16:51 +0000 (17:16 +0000)
servers/vfs/open.c

index d05233c07af02534ce5be331c0ece05b690b1226..13a49de5c3a77b9651b8a1dc6d531429440fe233 100644 (file)
@@ -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;