cvs commit: src/sys/ufs/ffs ffs_vfsops.c

Poul-Henning Kamp phk at FreeBSD.org
Sun Dec 12 06:19:11 PST 2004


phk         2004-12-12 14:19:11 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_vfsops.c 
  Log:
  With the introduction of UFS2 we started looking for superblocks in
  four different locations on a prospective filesystem.
  
  If we found none, we forgot to invalidate the four buffers, thus the
  following sequence would fails:
  
          (md0 = blank disk)
          mount /dev/md0 /mnt
          (fails, no superblocks)
          newfs /dev/md0
          (writes using physio which does not go through buffercache).
          mount /dev/md0 /mnt
          (still fails, the four cached buffers still contain no superblocks)
  
  Found by:       ru
  
  Revision  Changes    Path
  1.263     +1 -0      src/sys/ufs/ffs/ffs_vfsops.c


More information about the cvs-src mailing list