[PATCH 1/10] 2.5.44 cciss pattition fix

Stephen Cameron (steve.cameron@hp.com)
Wed, 23 Oct 2002 09:24:49 -0600


Here are our cciss patches again, for 2.5.44.
The whole set can be grabbed via anonymous cvs (empty password):
cvs -d:pserver:anonymous@cvs.cciss.sourceforge.net:/cvsroot/cciss login
cvs -z3 -d:pserver:anonymous@cvs.cciss.sourceforge.net:/cvsroot/cciss co 2.5.44

patch 1 of 10 for 2.5.44

Allow disks other than the first to be accessed.

drivers/block/cciss.c | 2 +-
1 files changed, 1 insertion, 1 deletion

--- linux-2.5.44/drivers/block/cciss.c~nth_vol_partition Mon Oct 21 11:59:20 2002
+++ linux-2.5.44-root/drivers/block/cciss.c Mon Oct 21 11:59:20 2002
@@ -352,7 +352,7 @@ static int cciss_open(struct inode *inod
* but I'm already using way to many device nodes to claim another one
* for "raw controller".
*/
- if (inode->i_bdev->bd_inode->i_size == 0) {
+ if (hba[ctlr]->drv[dsk].nr_blocks == 0) {
if (minor(inode->i_rdev) != 0)
return -ENXIO;
if (!capable(CAP_SYS_ADMIN))

.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/