Commit Graph

22 Commits

Author SHA1 Message Date
ross b8ff67cc6d minor LP64 nits 2002-02-07 02:14:02 +00:00
fair 20d78a0f95 make the description of -w and -r more clear, per PR 13503. 2002-01-24 23:35:10 +00:00
fair fe1cad9aa9 Cross-link fdisk(8), mbr(8), and mbrlabel(8) in the SEE ALSO sections,
as suggested in PR 14288.  Also add a little white space to mbr(8) to
make it a little more readable.
2002-01-13 08:02:14 +00:00
mrg c43c746480 fix a typo 2001-12-30 17:42:18 +00:00
wiz 957c91939f Drop unnecessary .Pp. 2001-11-16 11:38:35 +00:00
ad d78020d1bf Use getrawpartition(). 2001-08-20 08:21:09 +00:00
wiz 41df6b74a9 partiton -> partition 2001-07-26 22:47:34 +00:00
lukem 49137c3ddc clarify that -w updates the in-core label if changed, and if -r is
given as well, the on-disk label will then be updated.
2001-05-01 11:51:21 +00:00
cgd d7666f6c7f use getprogname() 2001-02-20 23:22:49 +00:00
lukem ed9bdbd8b9 - remove unused arg to getparts()
- clean up WARNS=2 problems
- implement getshort()
- use getshort() with MBR_MAGICOFF to test if the magic number is OK, rather
  than using hard-coded magic numbers
2001-02-18 03:36:07 +00:00
christos 158632e207 ifix nested extern. 2001-02-04 20:08:24 +00:00
lukem 03c663afbc change verbose probe message to display "size xxx (yyy MB), offset zzz".
use %u instead of %d.
2001-01-04 00:57:14 +00:00
lukem fbace08ced change behaviour of flags slightly:
-w	write in-core label if changed
-r	update on-disk as well as in-core label (with -w)
-f	force update (-w), even if there's been no change

-r behaviour suggested by matt green. what used to be `-f' is now `-wrf'
2000-12-27 04:22:11 +00:00
lukem a9dd32dbb7 more rewording
- mbrlabel updates the disklabel; it doesn't generate it
- it doesn't just affect the incore label, so remove the `incore' qualifier
2000-12-24 14:01:12 +00:00
lukem 747375caa2 i got sick of the brain damage that mbrlabel used to do, and had
gotten bitten by mbrlabel trashing my incore disklabel to a point where
the machine wasn't usable, so I reworked it:

* only update the incore (and on-disk) label if `-f' is given. by default,
  the proposed disklabel will be printed but no changes will occur
* add -q, to make the default operation a bit more quiet.
* leave existing `used' in-core partition slots alone, and only add entries
  to the incore label if:
	- there's not an existing partition of the same size and offset
	  (even of a different type)
	- there's a free partition slot (`unused', with size == 0)
* use DIOCWDINFO instead of DIOCSDINFO, to update the incore as well as
  the on-disk label
* use showpartitions() from ../disklabel/printlabel.c

this should make mbrlabel a *lot* more useful.
2000-12-24 13:57:37 +00:00
wiz c73aec3795 Add NTFS recognition per patch supplied by Dave Huang in bin/11804. 2000-12-24 01:54:20 +00:00
wiz 71288952b7 ANSIfy, de-__P() 2000-12-24 01:50:29 +00:00
abs fc52578672 xref (disklabel.8, fdisk.8, mbrlabel.8) as appropriate 2000-11-14 11:06:19 +00:00
matt 0f6818e4eb More include fixups and GCC 2.96 nonsense 2000-07-03 03:37:59 +00:00
fvdl 4fc21ef227 Moved from mbrlabel.c,v 2000-03-15 11:56:02 +00:00
fvdl 2b9c2935fe Moved from mbrlabel.8,v 2000-03-15 11:55:33 +00:00
fvdl 6a32cb5d07 Moved from Makefile,v 2000-03-15 11:55:03 +00:00