summaryrefslogtreecommitdiff
path: root/sbin/disklabel/editor.c
AgeCommit message (Collapse)Author
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-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-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-06-21Remove the advertising clause in my old license, it impedes free useTodd C. Miller
of the code as a large number of similar clauses makes it impossible to write an ad for a product using the code...
1998-05-07get rid of #ifdef OLD_SCSI stuff. It is not usefulTodd C. Miller
1998-05-07let user set d_interleave, and force it to be >= 1Todd C. Miller
1998-04-14Set label.d_bbsize and label.d_sbsize if we have a fictious labelTodd C. Miller
and they are zero. Fixes "disklabel -B" on hp300 and the warning about zero size bootblock and superblock fields on all ports.
1998-04-11mention IDE, or people will get all confusedTheo de Raadt
1998-04-08Make undo recalculate free space. Also adds 'r' command to recalculateTodd C. Miller
free space manually. From Magnus Holmberg <mho@stacken.kth.se>
1998-02-28Be consistent wrt suggesting ESDI for IDE and using ESDI even ifTodd C. Miller
they enter IDE.
1998-02-19deal with partition type renamedTheo de Raadt
1998-01-11Tell the user to enter ESDI for IDE, not ST506. Also treat IDE as ESDITodd C. Miller
if the user enters that anyway.
1998-01-05recalculate the free sectors after changing boundaries.Artur Grabowski
1998-01-05check if the partitions are below the boundaries and not only above whenArtur Grabowski
counting the free sectors.
1997-11-05Document ^D to get out of overlap prompt and remove duplicate exit conditionTodd C. Miller
1997-11-04Deal correctly with partitions that have multiple overlaps.Todd C. Miller
1997-10-24TypoTodd C. Miller
1997-10-24Warn that geom may be wrong for ports with old scsi.Todd C. Miller
For ports where boot blocks sit in the first cylinder, don't suggest an offset that would clobber them. Mention the 'b' command when the user tries to go past end of the OpenBSD part. In 'b' command, don't suggest size that extends beyond the disk.
1997-10-24Make and use _PATH_LESS.Todd C. Miller
Use the MBR for begin/end of the OpenBSD portion of the disk. Don't suggest an offset that would cause a partition to go past the end. Remove old bounds inference code.
1997-10-20format the "print" units better, in all casesTheo de Raadt
1997-10-20Suport the idea of an OpenBSD portion of the disk.Todd C. Miller
Allow user to abort commands via ^D at a prompt. Normalize usage of sectors vs. blocks Allow real numbers when specifying in b/k/m/g Be smarter when suggesting offsets and sizes Always add a 'c' partition BUGS: not all functions make sure they are operating within the OpenBSD part
1997-10-18do not allow add of existing partitionTheo de Raadt
1997-10-17Allow user to adjust sec/cyl instead of hard coding to sec/track * tracks/cyl.Todd C. Miller
1997-10-17Fix pasto.Todd C. Miller
1997-10-17remove some blank linesTheo de Raadt
1997-10-16make M more visibleTheo de Raadt
1997-10-16new command: M (shows linked-in manpage)Theo de Raadt
1997-10-16p takes a suffix, not a unitTheo de Raadt
1997-10-15Require a disk type other than "unknon", print disk type when displayingTodd C. Miller
info, and allow user to change disk type via 'e'.
1997-10-15Move sorting stuff into new function: sort_partitions()Todd C. Miller
1997-10-07Support 'g' (gigabyte) suffix. Requested by todd@Todd C. Miller
1997-10-06Ignore 'c' when computing overlap; some ports use "unknown" instead ofTodd C. Miller
"unused" as the fstype.
1997-10-03Update the "real" copy of the label when you do a "write". Noted by Theo.Todd C. Miller
1997-10-02Treat FS_BOOT similar to FS_UNUSED.Todd C. Miller
1997-10-02 o When adding 'b' make default fstype be swap.Todd C. Miller
o Add some missing free()'s. o When computing new offset, sort the partitions by offset, don't assume that ascending partions are in real order. Noted by todd@
1997-10-02Fix a typo and treat newlines as whitespace (so args work correctly).Todd C. Miller
1997-10-02Deal with ^D sanely and kill unused get_yn().Todd C. Miller
1997-10-02Add 'w' (write label) command.Todd C. Miller
1997-10-02respect -nTodd C. Miller
1997-09-30Implement "disklabel -E" -- a simple interactive label editor forTodd C. Miller
installs and new labels. Documentation to follow :-) Also, give the user the option of writing the fictitious label if no on-disk label exists with the -e, -E, and -w options.