summaryrefslogtreecommitdiff
path: root/sbin/disklabel/disklabel.c
AgeCommit message (Expand)Author
2009-06-04Recycle four ancient fields in the disklabel structure, replacing them withTheo de Raadt
2009-06-02Add '-h' flag, and '*' as a unit specifier for 'p' Editor command.Kenneth R Westerback
2009-05-31Never 'humanize' the sector offsets of partitions or 'total sectors'.Kenneth R Westerback
2009-05-29Clean up logic around exit values. Make getasciilabel() return 0Kenneth R Westerback
2009-05-17Write out mountpoint info in writelabel() after label successfullyKenneth R Westerback
2009-05-05use logical or when it's intended to be a logical or; ok krw@Otto Moerbeek
2009-04-30Prime mountpoint info with any fstab info that is available, withKenneth R Westerback
2009-04-12When auto-allocating, check the size of the disk and displayKenneth R Westerback
2009-04-11Always display any mountpoint info available. Thus a simple -A willKenneth R Westerback
2009-04-11readlabel() either errored out or returned a pointer to the globalKenneth R Westerback
2009-04-10Re-work '-A' so that it sets a flag that -E and -w use, and which willKenneth R Westerback
2009-03-31When warning about a non-zero partition offset, show DL_GETPOFFSET()Kenneth R Westerback
2009-03-31Tweak comment to remove discussion of now non-existant 2 stageKenneth R Westerback
2009-03-30lint; mostly unused variables, carefully checked against all platformsTheo de Raadt
2009-03-29No more NUMBOOT==2 stuff around, nuke it for sake of clarity.Tobias Weingartner
2009-03-29otto points out that the -v printing changes are incompatible with theTheo de Raadt
2009-03-28Move some output under the control of the '-v' flag. In particular onlyKenneth R Westerback
2009-03-28make -B not even show up in usage on non-NUMBOOT systems; ok jmc krwTheo de Raadt
2009-03-22tweak previous;Jason McIntyre
2009-03-22Add 'A' command to Editor mode, and -A flag to automatically execute itKenneth R Westerback
2009-02-15Don't display, or save via the editor 's' command, the fsize andKenneth R Westerback
2009-01-11On *ppc disks shared with MacOS, walk the Apple partition map to find outMiod Vallat
2008-08-11fix a6 partition lookup where a static variable was incorrectly used inReyk Floeter
2008-08-10spacing; remove non-existent flag from synopsis.Igor Sobrado
2008-08-04fix extended partition support by handling chained EBRs correctlyReyk Floeter
2008-07-10Die -r, die! Eliminate stray -r in usage text. Spotted by James Hartley.Kenneth R Westerback
2008-07-09Read 'vendor' flag from ASCII disklabel since we print it. FixesKenneth R Westerback
2008-07-01Initialize variable before checking against NULL.Ray Lai
2008-06-25In interactive mode, always suggest offsets and sizes inside theOtto Moerbeek
2008-06-25allow to install and boot the OpenBSD A6 partition and disklabel in anReyk Floeter
2008-06-04setbootflag() must be done before checksum'ing the label. Bug introducedTheo de Raadt
2008-04-07Since Alpha is NUMBOOT=0, no need for #ifdef __alpha__ code inside aKenneth R Westerback
2008-04-07Restore boot block (-B) support that was incorrectly deleted duringKenneth R Westerback
2008-04-06nwflag is never set now that '-r' is no more, so remove it and the warningKenneth R Westerback
2008-04-06Fix logic botch I introduced with r1.123 which effectively disabledKenneth R Westerback
2008-03-23Nuke disklabel -r. All labels come from the kernel via ioctl.Kenneth R Westerback
2008-01-24"read(..., ..., sizeof Y) < sizeof Y" is a dangerous idiom because itKenneth R Westerback
2008-01-21changes to disklabel's usage:Igor Sobrado
2007-10-17- Be more careful about pre-existing SIGCHLD handlers (or SIG_IGN) byTheo de Raadt
2007-10-15specifying int instead of just unsigned is better styleTheo de Raadt
2007-06-25some trivial delintingTheo de Raadt
2007-06-23expand size/offset to 16 characters, and drop the Cyl comments whichTheo de Raadt
2007-06-18If disklabel(8) is run against unreadable media (e.g. a blank cd)Kenneth R Westerback
2007-06-18-r will die. Until then, make sure any labels it dredges up areKenneth R Westerback
2007-06-17On Sun machines, disklabels coming from the kernel will now have a d_flagsTheo de Raadt
2007-06-08second pass, some fields slipped through the first time aroundOtto Moerbeek
2007-06-08Make disklabel(8) aware of the new fields, allowing for larger thanOtto Moerbeek
2007-06-07do not complain about c not being a multiple of lp->d_secpercyl; ok millertTheo de Raadt
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
2007-05-24Make 'disklabel -w -d <disk>' work. i.e. write the default disklabelKenneth R Westerback