Remove all dependancies newfs had on accessing the disklabel. Use
commit566de0ef78cc26c472dbb28975df3951efb23097
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 20 May 2007 19:29:21 +0000 (20 19:29 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 20 May 2007 19:29:21 +0000 (20 19:29 +0000)
tree646f7797dc0aa5ecfcdbe727b90517811181d537
parent6b8d163d4eaf7650d11cb6cbd0e6f78291b45a57
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