[7384] in linux-scsi channel archive

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

scsicam_bios_param

daemon@ATHENA.MIT.EDU (Yuuki Harano)
Wed Oct 20 12:31:43 1999

To:     linux-scsi@vger.rutgers.edu
From:   Yuuki Harano <masm@sa.uno.ne.jp>
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <19991021012036S.masm@masm.nn.iij4u.or.jp>
Date:   Thu, 21 Oct 1999 01:20:36 +0900


Hello,

I have a Tekram DC-390U and a scsi HDD (/dev/sda), containing a
Win98 partition (/dev/sda1).  I use linux kernel 2.3.22.

When I run lilo, I get the following warning:

   ll_rw_block: device 08:00: only 1024-char blocks implemented (512)

At the beginning of scsicam_bios_param() drivers/scsi/scsicam.c:
|        if(blksize_size[MAJOR(dev)])
|                block = blksize_size[MAJOR(dev)][MINOR(dev)];
|                
|        if (!(bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, block)))
|                return -1;

I think that this code reads /dev/sda with the block size of /dev/sda1,
but the block size should be of /dev/sda.

-- 
Yuuki Harano
mailto:masm@sa.uno.ne.jp
  http://www.nn.iij4u.or.jp/~masm/

-
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