cvs commit: src/sbin/fsck_ffs main.c

Craig Rodrigues rodrigc at FreeBSD.org
Wed Mar 5 08:25:51 UTC 2008


rodrigc     2008-03-05 08:25:49 UTC

  FreeBSD src repository

  Modified files:
    sbin/fsck_ffs        main.c 
  Log:
  For a mounted file system which is read-only, when
  doing the MNT_RELOAD, pass in "ro" and "update"
  string mount options to nmount() instead of MNT_RDONLY and MNT_UPDATE flags.
  
  Due to the complexity of the mount parsing code especially
  with respect to the root file system, passing in MNT_RDONLY and MNT_UPDATE
  flags would do weird things and would cause fsck to convert the root
  file system from a read-only mount to read-write.
  
  To test:
   - boot into single user mode
   - show mounted file systems with: mount
   - root file system should be mounted read-only
   - fsck /
   - show mounted file systems with: mount
   - root file system should still be mounted read-only
  
  PR:             120319
  MFC after:      1 month
  Reported by:    yar
  
  Revision  Changes    Path
  1.49      +3 -1      src/sbin/fsck_ffs/main.c


More information about the cvs-src mailing list