diff options
author | marcel <marcel@FreeBSD.org> | 2006-08-09 20:53:01 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-08-09 20:53:01 +0000 |
commit | 52f0123d8d942ca90e4c373f24453d26a5f28126 (patch) | |
tree | 06d636d8373dfb18c974043645e7da6d92f50956 /crypto/openssh/fixprogs | |
parent | 50f9d9396bdc77c4f6fd0d9fd239468731059258 (diff) | |
download | FreeBSD-src-52f0123d8d942ca90e4c373f24453d26a5f28126.zip FreeBSD-src-52f0123d8d942ca90e4c373f24453d26a5f28126.tar.gz |
Strengthen the check for a PMBR:
o PMBR partitions count to the number of partitions on the disk, which
means that if a PMBR entry is invalid we will not treat the MBR as a
PMBR by virtue of it not describing any partitions.
Previously the checks were inconsistent in that an invalid PMBR entry
would be harmless when no other partitions exist (we would treat the
MBR as a PMBR by virtue of it being empty), but it would be fatal when
there is at least one other partition.
o The partition size of a PMBR partition is one less than the media size
because the GPT starts at the second sector (LBA 1) and extends to
the end of the media. For backward bug-compatibility we accept a size
that's exactly the media size (FreeBSD bug).
Also, when the partition size can not be represented in a 32-bit
integral, the partition size in the MBR is to be set to 0xFFFFFFFF.
Accept this as a valid size, even if the size can be represented.
Diffstat (limited to 'crypto/openssh/fixprogs')
0 files changed, 0 insertions, 0 deletions