]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/commit
MFC r227231:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 16 Nov 2011 15:32:52 +0000 (15:32 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 16 Nov 2011 15:32:52 +0000 (15:32 +0000)
commit643f6b21a9179fc12913b959de6e7f8f7831347f
tree4d95b1fb85318a44998b9220a8f72f50e05381c1
parent1559f7deade0ad1daf3522997b966b987a80d3ff
MFC r227231:
  To be in sync with GEOM_PART_BSD limit the maximum number of supported
  partitions to 20.

MFC r227248:
  bsdlabel(8) could automatically fill many of disklabel's deprecated
  fields, but user could specify some of those fields when edits disklabel
  with `bsdlabel -e`. But without -A flag these fields might be
  overwritten with default values from the virgin disklabel.
  So, don't overwrite such fields if they are not zero. Also add checks
  to prevent creating disklabel with less than DEFPARTITIONS and more
  than MAXPARTITIONS partitions.

  PR:           bin/162332
  Tested by:    Eugene Grosbein

MFC r227262:
  Remove unneeded checks.

MFC r227270:
  Add recommendation to use gpart(8) when user tries write disklabel
  or bootcode to already opened provider.

MFC r227296:
  Fix multi-line comment formatting.

Approved by:    re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/9.0@227557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/bsdlabel/bsdlabel.c