NetBSD-Bugs archive

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

Re: port-arm/47463: ARM's disksubr_mbr.c is broken for non MBR disk.



Bad Example:
> # disklabel sd0
> # /dev/rsd0c:
> type: SCSI
> disk: USB2FlashStorage
> label: fictitious-MBR
> flags: removable
> bytes/sector: 512
> sectors/track: 32
> tracks/cylinder: 8
> sectors/cylinder: 256
> cylinders: 500
> total sectors: 15794176
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # microseconds
> track-to-track seek: 0  # microseconds
> drivedata: 0
> 
> 8 partitions:
> #        size    offset     fstype [fsize bsize cpg/sgs]
>  c:  15794176         0     unused      0     0        # (Cyl.      0 -  
> 61695)
>  e: 1851859059 1936028272    unknown                     # (Cyl. 7562610+- 
> 14796434+)
>  f: 538976288 1330184192    unknown                     # (Cyl. 5196032+- 
> 7301408+)
>  g: 1398362912 538989391    unknown                     # (Cyl. 2105427+- 
> 7567782+)
>  h:     21337 1394627663    unknown                     # (Cyl. 5447764+- 
> 5447847+)
> disklabel: boot block size 0
> disklabel: super block size 0
> disklabel: partition e: offset past end of unit
> disklabel: partition e: partition extends past end of unit
> disklabel: partitions e and g overlap
> disklabel: partition f: offset past end of unit
> disklabel: partition f: partition extends past end of unit
> disklabel: partitions f and g overlap
> disklabel: partitions f and h overlap
> disklabel: partition g: offset past end of unit
> disklabel: partition g: partition extends past end of unit
> disklabel: partitions g and h overlap
> disklabel: partition h: offset past end of unit
> disklabel: partition h: partition extends past end of unit
> #



-- 
-----------------------------------------------
                SAITOH Masanobu (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index