2002-10-23 15:22:33

by Cameron, Steve

[permalink] [raw]
Subject: [PATCH 1/10] 2.5.44 cciss pattition fix

Here are our cciss patches again, for 2.5.44.
The whole set can be grabbed via anonymous cvs (empty password):
cvs -d:pserver:[email protected]:/cvsroot/cciss login
cvs -z3 -d:pserver:[email protected]:/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))

.