OSDN Git Service

libparted: fix diagnostics about exceeding partition limits
authorColin Watson <cjwatson@ubuntu.com>
Fri, 9 Apr 2010 12:22:27 +0000 (13:22 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 9 Apr 2010 15:29:54 +0000 (17:29 +0200)
commit0fb5838f39c2c16ec72775e00702689f4b84f5c1
tree6337ea2d87d7353c15bbfbd3e26f5462274d2bdb
parent85506df997edba889cf8b475df3b854f4887e9bb
libparted: fix diagnostics about exceeding partition limits

* libparted/labels/pt-tools.c (ptt_partition_max_start_len): Use the
correct value in the diagnostics that print the upper bound on
partition size and largest starting sector number.  Before, each
would use UINT32_MAX.  Now each prints the partition-table-specific
limit.
libparted/labels/pt-tools.c