----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, April 12, 2000 10:43 AM
Subject: is (rscsi_disks[i].sector_size != 512) ok ?


>
> We have a custom storage controller.  It has configurable sector_size.
> When configured to 1K, fdisk goes through ok.  Buf mkfs gives errors shown
> below.
>
> Does Linux kernel support non 512 sector_size.  Does tools
> mkfs/fsck and filesystems run properly on such storage devices?

    Yes, it should.  I believe that the basic problem that you are having is
that mkfs is thinking that the disk is twice as large as it really is (or at
least this is my guess at the moment).  The size originates from the
READ_CAPACITY command, of course - you might want to recheck to make sure
you are not returning the number of 512 byte sectors and reporting a
sectorsize of 1024 bytes.

    What kernel version are you using?

-Eric

> ---
>
> driver insmod, kernel messages:
>
>  scsi : 0 hosts.
>  Name: Release_1_0_0_2
>  scsi0 : XXXXX
>  scsi : 1 host.
>  scsi: unknown type 12
>    Vendor: XXXXXXX   Model: XXXXXXXXX         Rev: BETA
>    Type:   Unknown                            ANSI SCSI revision: 02
>  Detected scsi generic sga at scsi0, channel 0, id 0, lun 0
>    Vendor:           Model:                   Rev:
>    Type:   Direct-Access                      ANSI SCSI revision: 02
>  Detected scsi disk sda at scsi0, channel 0, id 9, lun 0
>  resize_dma_pool: unknown device type 12
>  SCSI device sda: hdwr sector= 1024 bytes. Sectors= 17783230 [17366 MB]
[17.4 GB]
>   sda: sda1
>
>
>
> mkfs output, kernel messages:
>
>
>  SCSI disk error : host 0 channel 0 id 9 lun 0 return code = 8000002
>  Info fld=0x10f59dc, Current sd08:01: sense key Illegal Request
>  Additional sense indicates Logical block address out of range
>  scsidisk I/O error: dev 08:01, sector 936
>  SCSI disk error : host 0 channel 0 id 9 lun 0 return code = 8000002
>  Info fld=0x10f5a1c, Current sd08:01: sense key Illegal Request
>  Additional sense indicates Logical block address out of range
>  scsidisk I/O error: dev 08:01, sector 1064
>  SCSI disk error : host 0 channel 0 id 9 lun 0 return code = 8000002
>  Info fld=0x10f5a5c, Current sd08:01: sense key Illegal Request
>  Additional sense indicates Logical block address out of range
>  scsidisk I/O error: dev 08:01, sector 1192
>  SCSI disk error : host 0 channel 0 id 9 lun 0 return code = 8000002
>  Info fld=0x10f5a9c, Current sd08:01: sense key Illegal Request
>     .
>     .
>     .
>
>
> -Saravanan
>
> p.s.
> Please post a copy to me.  I am not on the mailing list.
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to [EMAIL PROTECTED]
>


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to