From owner-cvs-src@FreeBSD.ORG Sun Jun 25 08:52:27 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DD2C16A401; Sun, 25 Jun 2006 08:52:27 +0000 (UTC) (envelope-from simon@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D337D43D83; Sun, 25 Jun 2006 08:52:20 +0000 (GMT) (envelope-from simon@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5P8qKP3093764; Sun, 25 Jun 2006 08:52:20 GMT (envelope-from simon@repoman.freebsd.org) Received: (from simon@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5P8qKaC093763; Sun, 25 Jun 2006 08:52:20 GMT (envelope-from simon) Message-Id: <200606250852.k5P8qKaC093763@repoman.freebsd.org> From: "Simon L. Nielsen" Date: Sun, 25 Jun 2006 08:52:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sbin/fdisk fdisk.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 08:52:27 -0000 simon 2006-06-25 08:52:19 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sbin/fdisk fdisk.c Log: MFC rev. 1.82: - Fail with an understandable error message if we cannot detect the sector size, instead of later failing with an error about /boot/mbr not being a multiple of the sector size (since we end up with an assumed sector size of MAX_SEC_SIZE * 2). - We query the sector size via an IOCTL anyway, so if that succeeds use that instead of probing for it via read(2) calls. This fixes the problem with fdisk failing to operate on at least graid3 and md(4) devices on kernels with src/sys/geom/geom_dev.c before rev. 1.90, due to fdisk failing to detect the sector size. - When detecting the root device allow "/" characters in it, which happens with e.g. gmirror devices. Revision Changes Path 1.79.2.3 +5 -2 src/sbin/fdisk/fdisk.c