cvs commit: src/sys/ufs/ffs ffs_extern.h ffs_inode.c ffs_vfsops.c src/sys/ufs/ufs ufs_inode.c ufs_vnops.c ufsmount.h

Konstantin Belousov kib at FreeBSD.org
Tue Sep 16 11:00:00 UTC 2008


kib         2008-09-16 10:59:35 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_extern.h ffs_inode.c ffs_vfsops.c 
    sys/ufs/ufs          ufs_inode.c ufs_vnops.c ufsmount.h 
  Log:
  SVN rev 183070 on 2008-09-16 10:59:35Z by kib
  
  When downgrading the read-write mount to read-only, do_unmount() sets
  MNT_RDONLY flag before the VFS_MOUNT() is called. In ufs_inactive()
  and ufs_itimes_locked(), UFS verifies whether the fs is read-only by
  checking MNT_RDONLY, but this may cause loss of the IN_MODIFIED flag
  for inode on the fs being remounted rw->ro.
  
  Introduce UFS_RDONLY() struct ufsmount' method that reports the value
  of the fs_ronly. The later is set to 1 only after the remount is
  finished.
  
  Reviewed by:    tegge
  In collaboration with:  pho
  MFC after:       1 month
  
  Revision  Changes    Path
  1.76      +2 -0      src/sys/ufs/ffs/ffs_extern.h
  1.111     +8 -0      src/sys/ufs/ffs/ffs_inode.c
  1.347     +1 -0      src/sys/ufs/ffs/ffs_vfsops.c
  1.70      +2 -3      src/sys/ufs/ufs/ufs_inode.c
  1.301     +1 -1      src/sys/ufs/ufs/ufs_vnops.c
  1.39      +2 -0      src/sys/ufs/ufs/ufsmount.h


More information about the cvs-all mailing list