[7385] in linux-scsi channel archive

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

Re: scsicam_bios_param

daemon@ATHENA.MIT.EDU (Alan Cox)
Wed Oct 20 13:17:38 1999

To:     masm@sa.uno.ne.jp (Yuuki Harano)
Date:   Wed, 20 Oct 1999 17:37:48 +0100 (BST)
Cc:     linux-scsi@vger.rutgers.edu
In-Reply-To: <19991021012036S.masm@masm.nn.iij4u.or.jp> from "Yuuki Harano" at Oct 21, 99 01:20:36 am
Content-Type: text
Content-Length: 456       
Message-Id: <E11dykH-0002uv-00@the-village.bc.nu>
From:   Alan Cox <alan@lxorguk.ukuu.org.uk>

> |        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.

Yes. Change the MINOR(dev) in the block = assignement to have the & ~0xf too
and it should be right


-
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