Unmounting a read-only PCFS filesystem will now work.
authorSean Vickery <seanv@@cs.uq.edu.au>
Sat, 21 May 1994 01:25:30 +0000 (01:25 +0000)
committerSean Vickery <seanv@@cs.uq.edu.au>
Sat, 21 May 1994 01:25:30 +0000 (01:25 +0000)
The bug was just a logico (the programmer's equivalent of a typo)
in mountpcfs(), not the horrible problems people had been imagining.

sys/pcfs/pcfs_vfsops.c

index 408ff7b..c553138 100644 (file)
@@ -15,7 +15,7 @@
  *
  *  October 1992
  *
  *
  *  October 1992
  *
- *     $Id: pcfs_vfsops.c,v 1.4 1993/11/25 01:37:13 wollman Exp $
+ *     $Id: pcfs_vfsops.c,v 1.5 1993/12/19 02:07:58 ache Exp $
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -367,8 +367,7 @@ mountpcfs(devvp, mp, p)
  *  Finish up.
  */
        pmp->pm_ronly = ronly;
  *  Finish up.
  */
        pmp->pm_ronly = ronly;
-       if (ronly == 0)
-               pmp->pm_fmod = 1;
+       pmp->pm_fmod = !ronly;
        mp->mnt_data = (qaddr_t)pmp;
        mp->mnt_stat.f_fsid.val[0] = (long)dev;
        mp->mnt_stat.f_fsid.val[1] = MOUNT_MSDOS;
        mp->mnt_data = (qaddr_t)pmp;
        mp->mnt_stat.f_fsid.val[0] = (long)dev;
        mp->mnt_stat.f_fsid.val[1] = MOUNT_MSDOS;