From owner-cvs-all@FreeBSD.ORG Fri Feb 29 22:41:37 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2937A1065673; Fri, 29 Feb 2008 22:41:37 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 01CC18FC25; Fri, 29 Feb 2008 22:41:37 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1TMfauQ014383; Fri, 29 Feb 2008 22:41:36 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1TMfao0014382; Fri, 29 Feb 2008 22:41:36 GMT (envelope-from marcel) Message-Id: <200802292241.m1TMfao0014382@repoman.freebsd.org> From: Marcel Moolenaar Date: Fri, 29 Feb 2008 22:41:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/geom/part g_part_mbr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 22:41:37 -0000 marcel 2008-02-29 22:41:36 UTC FreeBSD src repository Modified files: sys/geom/part g_part_mbr.c Log: Follow-up improvements to the handling of false positives: If the partition table is empty, check to see if we have something that looks sufficiently like a BPB. On non-i386 machines, the boot sector typically doesn't contain boot code; the end of the boot sector is all zeroes. This is also where the partition table is for MBRs. We only check the sector size and cluster size, as that seems to be the most reliable across implementations, BPB versions and platforms. Revision Changes Path 1.4 +32 -3 src/sys/geom/part/g_part_mbr.c