freebsd-dev/sbin/bsdlabel
Andrey V. Elsukov 982e6e69cd 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 after:	1 week
2011-11-06 18:59:42 +00:00
..
bsdlabel.8
bsdlabel.c bsdlabel(8) could automatically fill many of disklabel's deprecated 2011-11-06 18:59:42 +00:00
Makefile
pathnames.h