Skip to contentSkip to conversation

2.5.60 make cciss driver compile

PATCH steve cameron 1 participant 1 message Feb 12, 2003 Block layer

lore
Share & tools
lore
#0 lore raw

Allow cciss driver attached disks other than the first to be accessed. (patch 3 of 11)
-- steve

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

_