[8617] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: is (rscsi_disks[i].sector_size != 512) ok ?

daemon@ATHENA.MIT.EDU (Marc SCHAEFER)
Thu Apr 13 03:47:20 2000

To: linux-scsi@vger.rutgers.edu
From: Marc SCHAEFER <schaefer@alphanet.ch>
Date:	13 Apr 2000 09:44:46 +0200
Message-ID: <8d3tte$r8b$1@vulcan.alphanet.ch>

Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> They do. You need to tell them to use that block size sometimes. Eg fdisk
> needs to be told to use 1K block scaling

> >  SCSI disk error : host 0 channel 0 id 9 lun 0 return code = 8000002 
> >  Info fld=0x10f5a9c, Current sd08:01: sense key Illegal Request 

> or you run off the end of the disk 8)

Question: there is really nothing which prevents bad SCSI commands
to be sent out ?  I was thinking that as READ_CAPACITY is used to
initialize the /dev/sda size, sub-partitions of /dev/sda might never
be bigger than the whole.

Shouldn't it be a test in the ll_rw_blk() or otherwise that
would cause the *kernel* to error, and not a SCSI command with
illegal blocks to be send out ?

Something the user could try is to see if the problem also appears
with mke2fs /dev/sda (ie no partition). If it does, fdisk can't
be blamed.


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post