bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17108: [PATCH 1/4] libparted: Check AlternateLBA against LBA-1


From: Phillip Susi
Subject: bug#17108: [PATCH 1/4] libparted: Check AlternateLBA against LBA-1
Date: Thu, 27 Mar 2014 12:55:31 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Having thought about it over lunch, I think I see what is going on
here now.  gpt-header-munge is broken and writes the backup to an
offset of 2gb rather than 20mb, extending the "disk".  But
LastUsableLba still says it's 20mb.  This caused parted to complain
that the backup was in the wrong place.

Parted is correct here: the backup *is* in the wrong place, since it
is at the end of where *we* think the disk is rather than where the
header thinks it is.  I changed the code to be this way in the first
place so that this complaint would not be triggered by growing a disk,
leaving both the LastUableLba and backup locations unchanged.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTNFgDAAoJEI5FoCIzSKrwFmwH/1cXVkFUlJzQTEYnKKraaq90
9x8uhUpvfTRHwBVoOBTqBxawNZ0WrzDaMqUwE6k1S25JltpuVLarAOYSNXWj1WCd
tHDpzgo6XwYmpTF+TqHbiBxnFCIBOC+ncUEMa9isFKgx2SsGdnoBbNxSN9bmZebB
l00bK7vHKI8NaPt7mWcOR4KcgVo4dNMpbSRXtCwCZMyzonh//d6Qs1kR8wTWMHYd
uM12baAUkMizKskmA2ucLe0jvwCgRnUqI3elEEUumTICG57EP17vNElka8MfF3RC
JNcT9YzI/OE8oBZa3KwJzaO2VPSxDR9m5cmjaAL95oOtCkqaQoCARj2INdjvROo=
=BPT4
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]