Remove all dependancies newfs had on accessing the disklabel. Use
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 20 May 2007 19:29:21 +0000 (19:29 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 20 May 2007 19:29:21 +0000 (19:29 +0000)
commit41e59acbb3dddc1ada83998bcee1d0da4641b283
tree5faa5c74497ecfd23d3dfbf2c59fad3f2f5a5c95
parent98db3d745fa6e91242e19a4a73ee5b441251129b
Remove all dependancies newfs had on accessing the disklabel.  Use
getdisktabbyname() instead of getdiskbyname() and use DIOCGPART instead
of DIOCGDINFO to get the geometry information.  Also make the -v option
work properly with regular files.

NOTE: newfs will no longer retrieve the fs fragment and block size fields
from the disklabel, so non-default operation must be specified with options.
newfs will also no longer attempt to update the disklabel.
sbin/newfs/defs.h
sbin/newfs/mkfs.c
sbin/newfs/newfs.8
sbin/newfs/newfs.c