mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Cameron <steve.cameron@hp.com>
To: linux-kernel@vger.kernel.org
Cc: axboe@suse.de
Subject: [PATCH] 2.5.41, cciss, fix cciss_open (2 of 5)
Date: Wed, 9 Oct 2002 08:33:49 -0600	[thread overview]
Message-ID: <20021009083349.B6746@zuul.cca.cpqcorp.net> (raw)



This patch fixes a problem with detecting partitions on any but 
the first disk.  Detecting the partitions requires opening the device,
but the i_size test prevented this, except for the special case of c0d0.
The new test corrects this, allow partition tables to be read for all the
disks.  Applies to 2.5.40.

diff -urN linux-2.5.40-0/drivers/block/cciss.c linux-2.5.40-cciss-fix-vol/drivers/block/cciss.c
--- linux-2.5.40-0/drivers/block/cciss.c	Thu Oct  3 14:25:16 2002
+++ linux-2.5.40-cciss-fix-vol/drivers/block/cciss.c	Mon Oct  7 09:09:50 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))

                 reply	other threads:[~2002-10-09 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021009083349.B6746@zuul.cca.cpqcorp.net \
    --to=steve.cameron@hp.com \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®