Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2011 02:06:31 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/newfs mkfs.c
Message-ID:  <201104260206.p3Q26orQ045681@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
cperciva    2011-04-26 02:06:31 UTC

  FreeBSD src repository

  Modified files:
    sbin/newfs           mkfs.c 
  Log:
  SVN rev 221049 on 2011-04-26 02:06:31Z by cperciva
  
  Stop trying to zero UFS1 superblocks if we fall off the end of the disk.
  
  This avoids a potentially many-hours-long loop of failed writes if newfs
  finds a partially-overwritten superblock (or, for that matter, random
  garbage which happens to have superblock magic bytes); on one occasion I
  found newfs trying to zero 800 million superblocks on a 50 MB disk.
  
  Reviewed by:    mckusick
  MFC after:      1 week
  
  Revision  Changes    Path
  1.106     +4 -1      src/sbin/newfs/mkfs.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104260206.p3Q26orQ045681>