NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-i386/43354: disklabel -i limits partition size to 2**31 on input from terminal



>Number:         43354
>Category:       port-i386
>Synopsis:       disklabel -i limits partition size to 2**31 on input from 
>terminal
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 25 19:20:00 +0000 2010
>Originator:     Rainer Glaschick
>Release:        netbsd 5.1_RC1
>Organization:
>Environment:
NetBSD kerneu 5.1_RC1 NetBSD 5.1_RC1 (GENERIC) #0: Sat Apr 24 23:26:09 UTC 2010 
 
builds%b7.netbsd.org@localhost:/home/builds/ab/netbsd-5-1-RC1/i386/201004250032Z-obj/home/builds/ab/netbsd-5-1-RC1/src/sys/arch/i386/compile/GENERIC
 i386

>Description:
Using disklabel -i for a disk with more than 1 TByte, a partition cannot be set 
for more than 1 TByte interactively, i.e. the number of sectors is limited to 
2**31, whether given as sectors, cylinders or Megabytes.

Here is a (Cyl. removed for readability) sample session:

kerneu: disklabel -i wd1
partition> P
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 c: 2930277105        63     unused      0     0        
 d: 2930277168         0     unused      0     0        
partition> a
Filesystem type [?] [4.2BSD]:
Start offset ('x' to start after partition 'x') [0.0625c, 63s, 0.0307617M]:
Partition size ('$' for all remaining) [0c, 0s, 0M]: $
 a: 2930277105        63     4.2BSD      0     0     0  
partition> a
Filesystem type [?] [4.2BSD]:
Start offset ('x' to start after partition 'x') [0.0625c, 63s, 0.0307617M]:
Partition size ('$' for all remaining) [2.90702e+06c, 2930277105s, 
1.4308e+06M]: 2200000000s
 a: 2147483648        63     4.2BSD      0     0     0  


>How-To-Repeat:
Use a disk with more than 1TB, allocate all to a partition, and try to enter 
interactively a size of about 2200000000 sectors.
>Fix:
Write disklabel to disk, edit file, and restore



Home | Main Index | Thread Index | Old Index