From owner-cvs-src-old@FreeBSD.ORG Sat Oct 25 18:19:08 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BB74106567E for ; Sat, 25 Oct 2008 18:19:08 +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 491078FC0C for ; Sat, 25 Oct 2008 18:19:08 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9PIJ89K001897 for ; Sat, 25 Oct 2008 18:19:08 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9PIJ8FU001896 for cvs-src-old@freebsd.org; Sat, 25 Oct 2008 18:19:08 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <200810251819.m9PIJ8FU001896@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Sat, 25 Oct 2008 17:21:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom/part g_part_bsd.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2008 18:19:08 -0000 marcel 2008-10-25 17:21:46 UTC FreeBSD src repository Modified files: sys/geom/part g_part_bsd.c Log: SVN rev 184264 on 2008-10-25 17:21:46Z by marcel Invalid BSD disklabels have been created by sysinstall and are possibly still being created. The d_secperunit field contains the number of sectors of the disk and not of the slice/partition to which the disklabel applies. Rather than reject the disklabel, we now silently adjust the field. Existing code, like bslabel(8), does not seem to check the label that extensively and seems to adjust fields as a side-effect as well. In other words, it's not that important apparently, so gpart should not be too strict about it. Reported by: nyan@ Reported by: Andriy Gapon Revision Changes Path 1.9 +6 -1 src/sys/geom/part/g_part_bsd.c