summaryrefslogtreecommitdiffstats
path: root/sys/isofs
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-12-21 21:40:02 +0000
committerjoerg <joerg@FreeBSD.org>1997-12-21 21:40:02 +0000
commit548dd1da8795c4ff02930d2c82e12e77c14d8dcc (patch)
treef5d76c65e9faf406346c728f65a525bd3dff44b7 /sys/isofs
parent05604036c1fb48d8724db559aeb981813b41afa8 (diff)
downloadFreeBSD-src-548dd1da8795c4ff02930d2c82e12e77c14d8dcc.zip
FreeBSD-src-548dd1da8795c4ff02930d2c82e12e77c14d8dcc.tar.gz
Properly clean out the SI_MOUNTEDON flag iff the mount attempt fails
half the way down. Otherwise, further attempts to mount the device will be rejected with BUSY. IMHO, this flag can completely go away for cd9660. There's no reason you need to prevent CDs from being mounted multiple times, and in case of multisession CDs it can even make sense to mount two different sessions by the same time (to different mount points, otherwise it would be pointless ;).
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 4bc152e..583d66c 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)cd9660_vfsops.c 8.18 (Berkeley) 5/22/95
- * $Id: cd9660_vfsops.c,v 1.31 1997/10/16 10:47:43 phk Exp $
+ * $Id: cd9660_vfsops.c,v 1.32 1997/11/07 08:52:51 phk Exp $
*/
#include <sys/param.h>
@@ -436,6 +436,7 @@ iso_mountfs(devvp, mp, p, argp)
return 0;
out:
+ devvp->v_specflags &= ~SI_MOUNTEDON;
if (bp)
brelse(bp);
if (needclose)
OpenPOWER on IntegriCloud