Message info
 
To:src-committers@freebsd.org From:Andrey V. Elsukov Subject:svn commit: r233652 - head/sys/geom/part Date:Thu, 29 Mar 2012 07:29:27 +0000 (UTC)
 

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 ||
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"