[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 4000GB partition becoming 1801GB after reboot?
From: |
Bryn M. Reeves |
Subject: |
Re: 4000GB partition becoming 1801GB after reboot? |
Date: |
Mon, 03 Nov 2008 18:18:19 +0000 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20071019) |
Bryn M. Reeves wrote:
> I have seen a few reports of this problem, mostly on old versions of
> parted and from users who weren't able to provide a lot of detail but I
> believe the problem still exists.
As Joel just pointed out to me, we (well, Jim!) did fix this back in
January:
commit 71bbe2995371357c534dccf1eb3d436b399eaf32
Author: Jim Meyering <address@hidden>
Date: Thu Jan 10 14:51:56 2008 +0100
Enforce inherent limitations of dos and dvh partition table formats.
* libparted/disk.c (_check_partition): Enforce the 32-bit limitation
on a partition's starting sector number and length (in sectors).
With the usual 512-byte sector size, this limits the maximum
partition size to just under 2TB.
(_partition_max_start, _partition_max_len): New functions.
(_check_partition): Use them.
* tests/t4100-msdos-partition-limits.sh: New file. Test vs. msdos.
* tests/t4100-dvh-partition-limits.sh: New file. Test vs. dvh.
* tests/Makefile.am (TESTS): Add t4100-msdos-partition-limits.sh
and t4100-dvh-partition-limits.sh.
Phew. One less to worry about :-)
Cheers,
Bryn.