summaryrefslogtreecommitdiff
path: root/sbin/disklabel/disklabel.c
AgeCommit message (Collapse)Author
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-09-03Include su# in generated disktab. Because modern disks have a variableTodd C. Miller
number of sectors/track we need to specify the total number of sectors per unit explicitly. Closes PR #2042.
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
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).
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-06-16missed i386 -> __i386__Marc Espie
1999-04-07Kill -F option, it is not needed and just plain wrong anywayTodd C. Miller
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-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-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-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-01-12use pid_tAaron Campbell
1998-10-03Add DIOCGPDINFO ioctl and use it in disklabel's new -p modeTodd C. Miller
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-06-07off_t cleanupTheo de Raadt
1998-05-07In -v mode print label offset in addition to the block number.Todd C. Miller
1998-04-25DOSBBSECTOR is in sectorsTheo de Raadt
1998-03-12Treat IDE as ESDI in -e mode just like we do in -E mode.Todd C. Miller
1998-02-20oopsTheo de Raadt
1998-02-19deal with partition type renamedTheo de Raadt
1997-11-25Add -t flag to output in disktab format. From Christos ZoulasTodd C. Miller
<christos@deshaw.com> plus correct code for outputing d_drivedata.
1997-10-24%f not %lf [%f is already a double]Todd C. Miller
1997-10-20format the "print" units better, in all casesTheo de Raadt
1997-10-17oops; spotted by millertTheo de Raadt
1997-10-17shrink an output lineTheo de Raadt
1997-10-13Well, ppc has to work....Per Fogelstrom
1997-10-02Deal with ^D sanely and kill unused get_yn().Todd C. Miller
1997-10-02Kill newlabel() stuff. The kernel should never fail to write aTodd C. Miller
label just because none exists on the disk. i386 has been fixed in the respect and others may need fixing as well.
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.
1997-09-26Some -Wall. Add display_partition() for use with upcoming editor mode.Todd C. Miller
1997-09-14some -WallTheo de Raadt
1997-09-03add xr installboot for i386Michael Shalayeff
change msg to accomodate multiple man pages in SEEALSO
1997-08-29move _PATH_BOOTDIR w/ trailing slash into paths.h for other progs...Michael Shalayeff
disklabel changed to use it that way
1997-07-28boot1[] only needed if NUMBOOT > 1; frueauf@ira.uka.deTheo de Raadt
1997-07-19some KNF I had lying aroundNiklas Hallqvist
1997-06-25(foo *)0 -> NULLkstailey
1997-05-21better disklabel -e messagingTheo de Raadt
1997-04-20sparc/sun3 labels want cyl-alignment; grrTheo de Raadt
1997-04-10Error if bsize < fsize. Problem noted by Dieter Dworkin MullerTodd C. Miller
<dworkin@village.org>
1997-02-17Trivial change. Restored from backupimp
1997-02-16when spawning editor child, use signal() instead of sigprocmask(SIG_BLOCK...Theo de Raadt
this appears to prevent the intermediate shell from playing with the signals such that it gets a tty signal inside an editor such as emacs. this was very annoying
1996-12-13If max number of partitions in the label is < highest partition defined,Todd C. Miller
increase d_npartitions as long as we don't go above MAXPARTITIONS.
1996-12-07correct a sigsegv during parsing of garbled input; netbsd pr#2659, ↵Theo de Raadt
dgilbert@jaywon.pci.on.ca
1996-11-12Match fs type case-insensetively.Jason Downs
1996-10-04-n fix, one more DOSPTYP_OPENBSD changeTheo de Raadt