From owner-freebsd-bugs@FreeBSD.ORG Thu Nov 3 02:40:08 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CBF01065670 for ; Thu, 3 Nov 2011 02:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5C5B8FC14 for ; Thu, 3 Nov 2011 02:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pA32e7Yj083059 for ; Thu, 3 Nov 2011 02:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pA32e7NT083058; Thu, 3 Nov 2011 02:40:07 GMT (envelope-from gnats) Resent-Date: Thu, 3 Nov 2011 02:40:07 GMT Resent-Message-Id: <201111030240.pA32e7NT083058@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, YIN Xiaofeng <75394094@qq.com> Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F8E11065787 for ; Thu, 3 Nov 2011 02:38:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 300D08FC0C for ; Thu, 3 Nov 2011 02:38:40 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pA32cdSV093042 for ; Thu, 3 Nov 2011 02:38:39 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pA32cdLU093040; Thu, 3 Nov 2011 02:38:39 GMT (envelope-from nobody) Message-Id: <201111030238.pA32cdLU093040@red.freebsd.org> Date: Thu, 3 Nov 2011 02:38:39 GMT From: YIN Xiaofeng <75394094@qq.com> To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/162262: fdisk can't correct/round the slice size after entering invalid number X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 02:40:08 -0000 >Number: 162262 >Category: misc >Synopsis: fdisk can't correct/round the slice size after entering invalid number >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 03 02:40:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: YIN Xiaofeng >Release: FreeBSD 9.0 BETA-3 >Organization: >Environment: # uname -a FreeBSD 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Sat Sep 24 20:46:57 UTC 2011 root@o brian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Use FreeBSD-BETA3 iso to boot, select "Live CD" to enter into the live filesystem. then run: fdisk -i ad0 first time: input a invalid decimal number when prompt to enter the size of slice. second time:input a valid decimal number Two times within one fdisk invocation. It's erroneous to determine the size of the slice according to your input value when you enter a value like 2G that cause it warning you ---- Sorry for my poor english. >How-To-Repeat: Answer the questions as follows: Do you want to change it? [n] y .. Supply a decimal value for "size" [16776522] 2G (fdisk asked for Try again due to invalid decimal number) Supply a decimal value for "size" [16776522] 4194304 .. Corrent this automatically? [n] y fdisk: WARNING: adjusting size of partition to 24193827 (not espected value: 4193847 (4193910-63) ) Don't exit fdisk and repeat steps aforesaid, the size value of the slice would be as espected. fdisk: WARNING: adjusting size of partition to 4193847 >Fix: >Release-Note: >Audit-Trail: >Unformatted: