svn commit: r233652 - head/sys/geom/part
Andrey V. Elsukov
ae at FreeBSD.org
Thu Mar 29 07:29:27 UTC 2012
Author: ae
Date: Thu Mar 29 07:29:27 2012
New Revision: 233652
URL: http://svn.freebsd.org/changeset/base/233652
Log:
VMDB offset should be greater than logical volume size only for MBR.
Modified:
head/sys/geom/part/g_part_ldm.c
Modified: head/sys/geom/part/g_part_ldm.c
==============================================================================
--- head/sys/geom/part/g_part_ldm.c Thu Mar 29 06:37:02 2012 (r233651)
+++ head/sys/geom/part/g_part_ldm.c Thu Mar 29 07:29:27 2012 (r233652)
@@ -495,7 +495,7 @@ ldm_privhdr_check(struct ldm_db *db, str
g_free(buf);
if (hdr.start > last ||
hdr.start + hdr.size - 1 > last ||
- (hdr.start + hdr.size - 1 > hdr.db_offset && is_gpt) ||
+ (hdr.start + hdr.size - 1 > hdr.db_offset && !is_gpt) ||
hdr.db_size != LDM_DB_SIZE ||
hdr.db_offset + LDM_DB_SIZE - 1 > last ||
hdr.th_offset[0] >= LDM_DB_SIZE ||
More information about the svn-src-head
mailing list