linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8] 2.5.43 cciss partition problem
@ 2002-10-16 21:33 Stephen Cameron
  0 siblings, 0 replies; only message in thread
From: Stephen Cameron @ 2002-10-16 21:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: axboe

Regen'ed the cciss patches against 2.5.43

Without this patch, only the first logical disk is usable, as
the other disks can't be opened to read the partition tables.
Applies to 2.5.43

diff -urN linux-2.5.43/drivers/block/cciss.c linux-2.5.43-a/drivers/block/cciss.c
--- linux-2.5.43/drivers/block/cciss.c	Wed Oct 16 08:11:14 2002
+++ linux-2.5.43-a/drivers/block/cciss.c	Wed Oct 16 12:22:08 2002
@@ -352,7 +352,7 @@
 	 * 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))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-16 21:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16 21:33 [PATCH 1/8] 2.5.43 cciss partition problem Stephen Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).