Skip to contentSkip to conversation

2.5.42, cciss, set gendisk fops (2 of 7)

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.42, cciss, set gendisk fops (2 of 7)

Patch 2 of 7
This patch sets the fops (IBM logical volume manager needs this, for one.) Applies to 2.5.42.

drivers/block/cciss.c +1 -0
diff -urN linux-2.5.42-b/drivers/block/cciss.c linux-2.5.42-c/drivers/block/cciss.c
@@ -2448,6 +2448,7 @@
 		disk->major = MAJOR_NR + i;
 		disk->first_minor = j << NWD_SHIFT;
 		disk->minor_shift = NWD_SHIFT;
+		disk->fops = &cciss_fops;
 		if( !(drv->nr_blocks))
 			continue;
 		(BLK_DEFAULT_QUEUE(MAJOR_NR + i))->hardsect_size = drv->block_size;