summaryrefslogtreecommitdiffstats
path: root/sbin/bsdlabel
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: Deal with self-xrefs.ru2002-12-241-1/+1
|
* Uniformly refer to a file system as "file system".ru2002-12-121-1/+1
| | | | Approved by: re
* Relax partition overlap check to allow Vinum partitions to overlapgrog2002-12-021-3/+6
| | | | | | | | | | | | other partitiosns. This is necessary when migrating conventional partitions to Vinum and was broken by recent more stringent overlap checks. This is arguably the wrong way to do it. A better method would be to have the loader understand a subset of Vinum partitioning and allow an install directly to Vinum, but until then, this is the best we have. Reviewed by: jhb Approved by: re (rwatson)
* mdoc(7) police: Added missing markup bit.ru2002-11-251-1/+3
| | | | Approved by: re
* Everything in the disklabel is unsigned so make all the input routinesjulian2002-11-181-57/+52
| | | | | | | | | | | | take unsigned values. his allows one to label disk with the number of blocks > 31 bits (though less then 32 bits) e.g. # size offset fstype [fsize bsize bps/cpg] c: 3125755904 0 unused 0 0 # (Cyl. 0 - 194569*) d: 3125755840 64 unused 0 0 # (Cyl. 0*- 194569*) which is needd to test UFS2
* Document that write(2) et al can return EROFS for attempts to write theschweikh2002-10-101-1/+4
| | | | | | | | disk label area. PR: 43891 Submitted by: Diomidis D. Spinellis <dds@istlab.dmst.aueb.gr> MFC after: 3 days
* Fix to support pc98.nyan2002-10-081-0/+4
|
* Don't be noisy if DIOCWLABEL fails, it's probably because we're writingphk2002-10-051-2/+1
| | | | | | the first label to the raw disk. Sponsored by: DARPA & NAI Labs.
* Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:phk2002-10-011-0/+1
| | | | | | | | | | | | | | | | Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h. These two new copies are still intact copies of disklabel.h and therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them in programs which already include <sys.disklabel.h> is currently a no-op. This commit adds a number of such #includes. Once I have verified that I have fixed all the places which need fixing, I will commit the updated versions of the three #include files. Sponsored by: DARPA & NAI Labs.
* Construct new disklabels based on the medias stated parameters inphk2002-09-201-20/+47
| | | | | | | userland, rather than expect all possible GEOMetries to know about BSD disklabels. Sponsored by: DARPA & NAI Labs
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-213-28/+28
|
* Fix more breakage due to FSTYPENAMES/DKTYPENAMES split.bmilekic2002-08-161-0/+1
| | | | Also submitted by: David Wolfskill <david@catwhisker.org>
* The .Nm utilitycharnier2002-07-061-4/+14
|
* Apply __FBSDID(); fix local variable(names) that stomp on globalmarkm2002-07-031-23/+28
| | | | definitions; fix some const strings; fix some signedness issues.
* Oops, unbreak parsing of the `type' field in getasciilabel(). I hadiedowse2002-06-051-1/+3
| | | | | | | changed a `goto' to a `continue' in revision 1.52, but it continued the wrong loop. Noticed by: bde
* correct comment (replace i386 with __i386__)alfred2002-05-301-2/+2
|
* Fix some serious brain damage in the default block/frag/cpg parametersiedowse2002-05-301-9/+7
| | | | | | | | | | | | | that are used if none at all are specified for a partition. Don't keep replaying the last field if we run out of fields when processing a line. Use a 8:1 frag:block ratio for both defaults. More work here is required. I think disklabel should not attempt to choose default filesystem parameters, and instead let newfs pick any defaults if required. PR: i386/38703 Reported by: Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>
* Split out the code for parsing the partition specification linesiedowse2002-05-301-129/+134
| | | | into a separate function to avoid some over-long lines.
* Spread the word of PowerPC.benno2002-05-211-1/+1
|
* more file system > filesystemtrhodes2002-05-162-9/+9
|
* Retire the bogus uses of the disklabel field d_sbsize and begin tophk2002-05-121-7/+1
| | | | | | | initialize it to zero so we don't have to have everbody and their aunt including FFS specific header files. Sponsored by: DARPA & NAI Labs.
* disklabel(8) manual page:trhodes2002-04-151-27/+25
| | | | | | | | | | | | | --change "-s newboot" to "-s newboot2" in an example --Fixed spelling --Fixed some confusion between slice/parition/primary partition and other things. PR: 35947 and 35951 Noticed by: Gary W. Swearingen <swear@blarg.net> Reviewed by: keramida Thanks to: grog MFC after: 2 days
* Don't set WARNS to 2, we're default compatible now.phk2002-04-081-1/+0
| | | | Noticed by: bde
* Get us to WARNS=2 with a bit of constification and some printf fiddling.phk2002-04-072-26/+19
| | | | | | | Pick up the c-partitions magicness from sys/disklabel.h instead of defining our own magicness for it, remove trivial comment. Sponsored by: DARPA and NAI Labs.
* Nuke a totally pointless optional debug optionphk2002-04-071-15/+0
| | | | Sponsored by: DARPA and NAI Labs.
* Remove remaining traces of d_boot[01]phk2002-04-042-21/+1
|
* Kill only usage of the undocumnted and unuse d_boot[01] fields ofphk2002-04-031-28/+0
| | | | | | struct disklabel. Sponsored by: DARPA & NAI Labs.
* Remove stray registerimp2002-03-191-1/+1
|
* De-__P the man page, but I suspect that we need to freshly importimp2002-03-191-13/+13
| | | | sys/disklabel.h since the one in here looks a little crunchy.
* o remove __Pimp2002-03-181-72/+48
| | | | | | o Use ANSI function definitions o const poison o remove register
* Add complete Sparc64 support.obrien2002-03-111-17/+64
| | | | | | Submitted by: tmm Dike out vax support.
* * Support the Sparc64.obrien2002-03-111-7/+5
| | | | | * Do not default to any particular platform. Require that we explicitly support a particular platform.
* Remove inappropriate .Op calls in examples.dd2002-03-101-2/+2
| | | | | PR: 35689 Submitted by: Gary W. Swearingen <swear@blarg.net>
* A bit of premptive GEOM POLA magic: If we don't get a virgin disklabelphk2002-03-031-6/+16
| | | | from /dev/food0, then try from /dev/f00d0c, in strange cases this work.
* In the words of the submitter:dd2002-01-071-1/+1
| | | | | | | | | | | disklabel(8)'s "Reading the disk label" section starts out "To examine or save the label on a disk drive,...". This is confusing. The given command (disklabel [-r] disk) doesn't save anything (except to standard out, but that should go without saying). It reads as if the command might save something on the disk drive. PR: 32452 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* -r is implied with -B.ru2001-10-101-2/+1
|
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-1/+1
|
* The defaults for bsize and fsize were interchanged.ru2001-09-051-4/+4
| | | | PR: docs/30330
* Silence non-constant format string warnings by marking functionskris2001-08-191-1/+1
| | | | | | | as __printflike()/__printf0like(), adding const, or adding missing "%s" format strings, as appropriate. MFC after: 2 weeks
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+3
|
* Remove whitespace at EOL.dd2001-07-152-37/+37
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Nuke unused variables.dd2001-06-241-3/+0
|
* mdoc(7) police: fix markup in revision 1.27.ru2001-05-151-2/+5
|
* Clarify the currently used partition types.grog2001-05-141-5/+19
| | | | Add cross-references to ccd(4) and vinum(8).
* Say "add -r" rather than 'use -r' since the former is more correct.imp2001-04-241-2/+1
| | | | | The latter implies to many people that they use only -r, which is incorrect.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-2/+1
| | | | - MAN[1-9] -> MAN.
OpenPOWER on IntegriCloud