misc/162262: fdisk can't correct/round the slice size after entering invalid number

YIN Xiaofeng 75394094 at qq.com
Thu Nov 3 02:40:08 UTC 2011


>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 at 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:


More information about the freebsd-bugs mailing list