cvs commit: src/sys/ufs/ufs ufs_inode.c

Xin LI delphij at FreeBSD.org
Fri Sep 23 13:49:57 PDT 2005


delphij     2005-09-23 20:49:57 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ufs          ufs_inode.c 
  Log:
  Restore a historical ufs_inactive behavior that has been changed
  in rev. 1.40 of ufs_inode.c, which allows an inode being truncated
  even when the filesystem itself is marked RDONLY.  A subsequent
  call of UFS_TRUNCATE (ffs_truncate) would panic the system as it
  asserts that it can only be called when the filesystem is mounted
  read-write (same changeset, rev. 1.74 of sys/ufs/ffs/ffs_inode.c).
  
  Because ffs_mount() already takes care of sync'ing the filesystem
  to disk before being downgraded to readonly, it appears to be more
  desirable that we should not permit this sort of writes to disk.
  
  This change would fix a panic that occours when read-only mounted
  a corrupted filesystem and doing some file operations.
  
  MT6/5/4 candidate
  
  Reviewed by:    mckusick
  
  Revision  Changes    Path
  1.64      +1 -1      src/sys/ufs/ufs/ufs_inode.c


More information about the cvs-src mailing list