summaryrefslogtreecommitdiffstats
path: root/sbin/rtsol
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-24 11:44:02 +0000
committerphk <phk@FreeBSD.org>2002-04-24 11:44:02 +0000
commit0f040bcefc6089fa617085e2f285bd8a94b2ce81 (patch)
tree2587dfad5420ee43da47ccb65c3280a1bb0e6035 /sbin/rtsol
parentf92f3e5ed1e887f7f2afc3733747f62b2b781b2e (diff)
downloadFreeBSD-src-0f040bcefc6089fa617085e2f285bd8a94b2ce81.zip
FreeBSD-src-0f040bcefc6089fa617085e2f285bd8a94b2ce81.tar.gz
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.
Diffstat (limited to 'sbin/rtsol')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud