~larsks/cloud-utils/cloud-utils

growpart: fix bug that stopped GPT disks from being grown past 2TB.

MBR max size was being applied to GPT partitioned disks.
The change here is to only apply the mbr max (and only WARN about the limit)
if the format is MBR.

Also, adjust test/test-growpart to support reading disk orig size
and new size from environment to make testing more easy.

  sudo PATH=./bin:$PATH PT_TYPE=gpt \
     DISK_SIZE_NEW=5T DISK_SIZE_ORIG=1T ./test/test-growpart
Filename Latest Rev Last Changed Committer Comment Size
..
File test-growpart 322.1.2 6 years ago Scott Moser test/test-growpart: adjust to allow for reading si 1.8 KB Diff Download File
File test-growpart-fsimage 301 7 years ago Scott Moser do not use sgdisk for creating gpt partitions thi 1.1 KB Diff Download File
File test-mic 318 6 years ago Scott Moser test/test-mic: better debug info 6.4 KB Diff Download File