Skip to contentSkip to conversation

2.5.44 cciss pattition fix

PATCH New Stephen Cameron 1 participant 1 message Oct 23, 2002 Block layer

lore
Share & tools
lore
#0 lore raw

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
drivers/block/cciss.c renamed from drivers/block/cciss.c~nth_vol_partition +1 -1
@@ -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))

.