Don't panic if opening a block device fails.

This commit is contained in:
Ben Gras 2007-01-12 17:16:51 +00:00
parent 80e2b3ade6
commit bcbac65a07

View 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;