Bruce Evans
cf6ceaf1a4
Oops, don't quite use RAW_PART instead of RAWPARTITION. Use 'a' + RAW_PART
...
in both places.
1998-10-23 18:57:39 +00:00
Bruce Evans
7de064209a
Updated the error message for EXDEV to match recent kernel fixes.
...
Fixed nearby indentation.
Use RAW_PART instead of RAWPARTITION.
1998-10-17 09:56:32 +00:00
Bruce Evans
21c729c287
Attempt to fix my breakage of the alpha makebootarea() in rev.1.19.
...
The previous attempt just converted compile time breakage to runtime
breakage.
1998-08-23 07:32:37 +00:00
Gary Palmer
31ae054ece
Try to make this compile on both alpha and i386
1998-08-21 23:44:16 +00:00
Bruce Evans
cc18e4cccf
Fixed style bugs in previous commit.
...
Added some comments on #endifs.
1998-08-17 21:13:57 +00:00
Doug Rabson
130cd73a15
Teach disklabel how to install a bootstrap on an alpha with SRM console.
1998-08-17 07:43:54 +00:00
Bruce Evans
6cabb34884
Fixed bugs in `disklabel -R...':
...
- nonstandard sector sizes didn't work because the sector size in the
ASCII label was not read before a (default, wrong) sector size was used.
- the exit status was 0 after exiting early due to an invalid ASCII label.
Abort `disklabel -B...' if the secondary bootstrap doesn't fit.
1998-07-25 16:19:10 +00:00
Bruce Evans
e18fb238dc
Clear d_boot0 and d_boot1 in the virgin label. These are overlaid by
...
d_packname in in-core labels, so they are garbage if d_packname is
initialized in the dummy label for the whole disk. dsopen() will soon
initialize d_packname to "fictitious" if it is not already initialized.
Fixed nearby error handling. Rev.1.7 apparently confused Perror()
with perror().
1998-07-20 11:34:06 +00:00
Bruce Evans
2a1deaaa04
Fixed printf format errors.
1998-06-28 18:59:04 +00:00
Philippe Charnier
3121d4cbe0
Use warnx()+fprintf() to handle multi-line messages. Correct K&R support and
...
KNF continuation indent rule.
Requested by: Bruce.
1998-06-08 06:41:47 +00:00
Philippe Charnier
6bd343a92d
Add section number to .Xr. Use of .Nm. Typo. Add rcsid. Remove unused
...
#includes. Use err(3).
1998-06-04 06:49:13 +00:00
Joseph Koshy
d2d38aa2d7
Use the correct macro for file names. Remove empty `HISTORY' section.
...
PR: 6780
Submitted by: Yoshishige Arai <ryo2@on.rim.or.jp>
1998-05-29 10:15:28 +00:00
Bruce Evans
abfb53239c
Fixed annoying warning for unused sccsid.
1998-02-24 01:36:58 +00:00
John Polstra
b7c2b28e0b
Die and stay dead. Ya got it?!
1997-07-04 01:30:09 +00:00
Bruce Evans
c377df7798
This commit was generated by cvs2svn to compensate for changes in r27163,
...
which included commits to RCS files with non-trunk default branches.
1997-07-02 00:25:26 +00:00
Bruce Evans
25e43cba72
Import Lite2's src/sbin, except for XNSrouted and routed. All relevant
...
files in src/sbin are off the vendor branch, so this doesn't change the
active versions.
1997-07-02 00:25:26 +00:00
Steve Price
681e5e7a09
Show the real revision date and not the date that this
...
manpage is being viewed.
1997-06-23 04:03:49 +00:00
Philippe Charnier
bef2080a01
Add Id. Use err(3). Costmetic in usage string.
1997-06-10 11:08:53 +00:00
Warner Losh
8d64695c7c
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 03:33:12 +00:00
Warner Losh
722ceb3f84
Use mkstemp rather than mktemp to prevent a small race.
...
Obtained from: OpenBSD
1997-03-24 05:44:28 +00:00
Peter Wemm
c0ec1f37ef
Revert $FreeBSD$ to $Id$
1997-02-22 14:40:44 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Wolfram Schneider
af20215665
Sort cross references.
1997-01-13 00:25:51 +00:00
Bruce Evans
43be698cb6
Moved initialization of defaults for the label for the whole disk from
...
disklabel(8) to the kernel (dsopen()). Drivers should initialize the
hardware values (rpm, interleave, skews). Drivers currently don't do
this, but it usually doesn't matter since rotational position stuff is
normally disabled.
1996-06-17 14:43:54 +00:00
Mike Pritchard
906c1e27fc
Correct some man page cross references and file location references.
1996-04-07 00:06:21 +00:00
Joerg Wunsch
d70e4e53de
Try to preserve the fdisk table in the primary bootstrap, should it
...
already exist.
Mention the cases where this doesn't work in the BUGS section of the
man page.
1996-02-03 21:14:09 +00:00
Joerg Wunsch
425bed3abf
Finally implement the "auto" disktype. It attempts to get all the
...
required information from the driver, and produce a virgin disklabel
for it. The latter might be further edited with `disklabel -e' to
satisfy the user's need.
The magic sequence is:
disklabel -r -w sdX auto
disklabel -e sdX
1996-01-22 01:01:15 +00:00
Joerg Wunsch
61de51cad6
Declare functions, resolve printf-format warnings.
1996-01-21 23:55:47 +00:00
Peter Wemm
6065a0be11
This commit was generated by cvs2svn to compensate for changes in r13122,
...
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Rodney W. Grimes
5ebc7e6281
Remove trailing whitespace.
1995-05-30 06:12:45 +00:00
Bruce Evans
f75dd51832
Don't clobber d_secperunit in disklabel -e'.
disklabel -e' replaces all
...
the values that it doesn't print by defaults. This seems wrong. I want
to be able to see the total number of sectors more than edit it. The
default d_secperunit of (sectors/track * tracks/cylinder * cylinders) is
bogus if sectors/track is only an approximation and more bogus if
sectors/track and tracks/cylinder are dummy values such as 4096 and 1
to defeat ufs's pessimizations.
1995-02-22 23:21:29 +00:00
Justin T. Gibbs
ca4693ed4b
Allow for the specification of bsize, fsize, and bps (blocks per segment)
...
for LFS filesystems.
1995-01-04 23:49:51 +00:00
Paul Traina
13e0abcba7
disklabel will dump core if you give it too few numbers to process
...
Obtained from: NetBSD misc/490 - John Kohl
1994-09-26 04:45:11 +00:00
Garrett Wollman
404c1a5fc1
Convert to our man installation style. Also fixed long-standing bug
...
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
1994-08-05 02:42:42 +00:00
Rodney W. Grimes
3ef6a10b70
Remove stuff for building manual pages the old way.
1994-05-28 06:25:34 +00:00
Rodney W. Grimes
8fae3551ec
BSD 4.4 Lite sbin Sources
...
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00