Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2002 04:44:03 -0700 (PDT)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/newfs mkfs.c newfs.c newfs.h
Message-ID:  <200204241144.g3OBi3L76607@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2002/04/24 04:44:02 PDT

  Modified files:
    sbin/newfs           mkfs.c newfs.c newfs.h 
  Log:
  Continue the cleanup preparations for UFS2 (& GEOM):
  
  Use only one filedescriptor.  Open in R/O or R/W based in the '-N' option.
  Make the filedescriptor a global variable instead of passing it around
  as semi-global variable(s).
  
  Remove the undocumented ability to specify type without '-T' option.
  
  Replace fatal() with straight err(3)/errx(3).  Save calls to strerror()
  where applicable.  Loose the progname variable.
  
  Get the sense of the cpgflag test correct so we only issue warnings if
  people specify cpg and can't get that.  It can be argued that this
  should be an error.
  
  Remove the check to see if the disk is mounted:  Open for writing
  would fail if it were mounted.
  
  Attempt to get the sectorsize and mediasize with the generic disk
  ioctls, fall back to disklabel and /etc/disktab as we can.
  
  Notice that on-disk labels still take precedence over /etc/disktab,
  this is probably wrong, but not as wrong as the entire concept of
  /etc/disktab is.
  
  Sponsored by:   DARPA & NAI Labs.
  
  Revision  Changes    Path
  1.55      +11 -14    src/sbin/newfs/mkfs.c
  1.59      +102 -153  src/sbin/newfs/newfs.c
  1.5       +4 -2      src/sbin/newfs/newfs.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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