summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Collapse)Author
2001-05-19When zeroing out the parition table, make 'c' the entire disk, not justTodd C. Miller
the OpenBSD portion of the disk. This is conistent with the idea of 'c' throughout the program.
2001-04-05permit tree build with NOMAN is setTheo de Raadt
2001-03-12correct warning; maurice@maurice.wan.nlTheo de Raadt
2001-02-05Remove the NOMAN hack. This is not the way we want to do this.Artur Grabowski
(and the original problem is gone anyway).
2001-02-04mention scan_ffs; map@infinitum.chTheo de Raadt
2001-01-24mention that sparc & amiga have weird partition tablesTheo de Raadt
2001-01-18Fix NOMAN builds.Artur Grabowski
2001-01-17don't nroff twice, and escape protect possible bad charsDavid Leonard
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-22Use clearerr(3) to clear EOF on stdin when aborting a command due to ^D.Todd C. Miller
Fixes a bug exposed by the last revision (we got away with before it due to the rewind(3) calls).
2000-08-13Get rid of fflush(stdout); rewind(stdin); pairs since we should notTodd C. Miller
have to worry about stdout == stdin (and since this is done inconsistently it is useless anyway). Pointed out by map@infinitum.ch.
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
2000-06-04Don't exit just because we couldn't get the default label...Todd C. Miller
2000-06-04Add 'D' and 'z' commands to editor to use the default partition andTodd C. Miller
to zero out the partition table respectively.
2000-05-05Reserve the first cylinder for bootblock if NUMBOOT=1. Basically treatTodd C. Miller
it the same as the space we reserver on i386 to avoid fdisk trouncing. The user can change this via the 'b' command and a message is printed at startup to this effect.
2000-04-04Add "expert mode" and don't prompt for fsize/bsize/cpg unless an expertTodd C. Miller
next_offset() now takes a pointer to the partition size as its second argument instead of a pointer to the partition. This allows us to get the offset earlier on and sort_partitions() will not try and include the partition we are trying to create in its list. In free_chunks() start looking for things at starting_sector, not 0, to avoid getting starting offsets that precede the start of the OpenBSD part of the disk.
2000-03-23Don't use the BIOS geometry by default, it causes too many problems.Todd C. Miller
2000-03-18Remove hard sentence breaks, and some other cleanup along the way.Aaron Campbell
2000-03-14Suffix "i.e." and "e.g." with a comma. Just another really picky man pageAaron Campbell
commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
2000-02-21missing newlineTheo de Raadt
1999-10-10Tweak.Aaron Campbell
1999-10-09Reformat. Aaron will probably change this three-times over, but it's aAngelos D. Keromytis
start.
1999-08-17More <sys/file.h> vs. <fcntl.h> and open() flags fixes.Todd C. Miller
1999-08-14Add -c flag that uses DIOCRLDINFO to clear (and update) the in-core label.Todd C. Miller
1999-08-13microseconds; vax@linkdead.paranoia.comTheo de Raadt
1999-07-14put in a check for architectures that demand that partition A start at sector 0Theo de Raadt
1999-07-04trash some old leftover macros and replace them with -mdoc macrosAaron Campbell
1999-06-16missed i386 -> __i386__Marc Espie
1999-06-10Handle PAGER in a manner consistent with the Single Unix Specification:Paul Janzen
that is, use PAGER rather than "more" if it is defined and non-null, not just if it is defined.
1999-06-06typo; mcsmart@engin.umich.eduAaron Campbell
1999-06-04start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@Aaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-04-07Kill -F option, it is not needed and just plain wrong anywayTodd C. Miller
1999-04-07XXX temp fix for whole_mode; todd will fix better in tomorrowTheo de Raadt
1999-04-07o Be silent on fstab writingTodd C. Miller
o Change "Save changes" prompt to "Write new label" o call writelabel() with &label and then update *lp instead of updating *lp and then calling writelabel() with lp.
1999-04-01get mountpoint before fsize/bsize/cpg and crunch things a bitTodd C. Miller
1999-04-01Fix filesystem type when writing fstab in -f modeTodd C. Miller
1999-04-01Use fstypenames, not fstypesnames since fstypesnames does not list strings ↵Todd C. Miller
for all types
1999-03-25typoMarc Espie
1999-03-23Rename -F option to -f and add a new -F (full disk) option to use in -E mode.Todd C. Miller
When checking for an MBR, only say we have an mbr if there is a signature *or* there is an fdisk partition with an {Open,Free,Net}BSD ID. When setting the bounds in -E mode add hueristics to deal with disks bigger than the BIOS geometry would indicate.
1999-03-21dosdp should be externTodd C. Miller
1999-03-21Add support for switching disk geometry between disk, bios, and userTodd C. Miller
1999-03-21If there are any BSD or SWAP partitions beyond ending_sector we extendTodd C. Miller
ending_sector to include them. This is done because the BIOS geometry is generally different from the disk geometry.
1999-03-18make sure mountpoint starts with '/' and call get_mp() from editor_name() ↵Todd C. Miller
instead of rolling our own
1999-03-18Sort entries by mountpoint, not partition number when writing fstab viaTodd C. Miller
the -F option. We do this to make sure /var occurs before /var/mail, /usr before /usr/local, etc...
1999-03-16put duplicate code into its own functions and fix some minor problems this ↵Todd C. Miller
brought to light
1999-03-16Add -F flag to cause editor to prompt for mount points and save the ↵Todd C. Miller
resulting info in fstab format. To be used by the install script.
1999-03-16Fix longstanding problem when rounding values to neared cylinder.Todd C. Miller
We used to just round the size to make size % secpercyl == 0. Now it makes (size + offset) % secpercyl == 0 so partitions end on a cylinder bondary (which was the original intent). The problem with the old method is that if you have an fdisk table on the disk, 'a' will start somewhere between 32 and 63, throwing off the calculations.
1999-03-14Fix check for partition ending on a cylinder boundary. Previously itTodd C. Miller
checked for size being a mulitple of sectors/cylinder when you really want size+offset to be a mulitple of sectors/cylinder.
1999-03-13Allow user to delete partitions outside the openbsd part of the diskTodd C. Miller