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

Konstantin Belousov kib at FreeBSD.org
Thu Jan 3 04:28:58 PST 2008


kib         2008-01-03 12:28:58 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_balloc.c 
  Log:
  ffs_balloc_ufsX() routines, in the case of recovering from the failed
  allocation, free the indirect blocks before clearing the disk pointers,
  that could lead to the softupdate inconsistencies in the case of the
  machine or disk crash at the wrong time.
  
  Rearrange the recover code to do the ffs_blkfree() after the second
  ffs_syncvnode(), that clears the pointers chain.
  
  Proposed and reviewed by:       tegge
  Tested by:      Peter Holm
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.53      +16 -12    src/sys/ufs/ffs/ffs_balloc.c


More information about the cvs-src mailing list