summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Collapse)Author
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
1999-03-13Add support for delete "*"Todd C. Miller
1999-03-07dkcksum() requires d_checksum clearedTheo de Raadt
1999-03-01Change undocumented '-p' flag to '-d' and document. Also document '-v'.Todd C. Miller
Make 'disklabel -ed' not overwrite your label if you make no changes in the editor (added a cmplabel function to compare two labels).
1999-02-01Allow for arc machines to install boot blocksPer Fogelstrom
1999-01-12use pid_tAaron Campbell
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28kill redundant .Nm macro arguments; other misc fixesAaron Campbell
1998-11-11more `` '' -> .Dq sillyness; remove redundant .Pp macros; other misc fixesAaron Campbell
1998-10-11When rounding to cylinder boundaries check to make sure we don't round up ↵Todd C. Miller
past the end of the disk. Noticed by fries@
1998-10-03Add DIOCGPDINFO ioctl and use it in disklabel's new -p modeTodd C. Miller
1998-09-23alphabetize SEE ALSO entries and order them numerically according to sectionAaron Campbell
1998-09-19RepairMarc Espie
1998-09-17sbin/ man page fixesAaron Campbell
1998-09-11Pass specname in to editor(), missing part of a commit a while ago.Todd C. Miller
1998-09-10pass correct args to editor()Theo de Raadt
1998-08-07Support PAGER environment vairable in conjuction with the 'M' command.Todd C. Miller
Ignore SIGPIPE when spawing the pager since disklabel could get killed. Add smarts in disk type guesser to know that rz is SCSI. Kill annoying extra blank line.
1998-08-06Mention new extened help and some minor cleanupsTodd C. Miller
1998-08-06add more detailed help accessible via '? [abcdmpMqrsuwxe]'Todd C. Miller
1998-07-29when changing a partition from unknown to 4.2BSD, provide sane defaults for ↵Todd C. Miller
fsize, bsize, cpg
1998-07-26Don't skip 'b' when suggesting the next partition to add. I thought it ↵Todd C. Miller
would be confusing to suggest 'b' but what happens is that people build a disk without swap.
1998-07-26When asking the user for the disk type, base the default on the device name. ↵Todd C. Miller
Ie: wd -> IDE, sd -> SCSI, hd -> HP-IB, etc. Should help eliminate some confusion.
1998-07-26Don't allow user to do 'a c' since c always exists. They can still do 'c ↵Todd C. Miller
c'. Noted by fries@
1998-07-24fix typos; Aaron Campbell <aaron@ug.cs.dal.ca>Todd C. Miller
1998-07-23Fix annoying bug where disklabel would give you wrong default size for lastConstantine Sapuntzakis
partition on disk and then complain when you chose it. The fix makes sure you get the "correct size".
1998-07-14Correct MAXPARTITIONS text.Angelos D. Keromytis