From: Pete Zaitcev <zaitcev@redhat.com>
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: Isn't sd_major() broken ?
Date: Thu, 10 Apr 2003 16:39:34 -0400 [thread overview]
Message-ID: <200304102039.h3AKdYC31797@devserv.devel.redhat.com> (raw)
In-Reply-To: <mailman.1049998202.18407.linux-kernel2news@redhat.com>
> --- drivers/scsi/sd.c.org Wed Apr 9 13:12:38 2003
> +++ drivers/scsi/sd.c Thu Apr 10 11:01:45 2003
> @@ -123,7 +123,7 @@ static int sd_major(int major_idx)
> case 1 ... 7:
> return SCSI_DISK1_MAJOR + major_idx - 1;
> case 8 ... 15:
> - return SCSI_DISK8_MAJOR + major_idx;
> + return SCSI_DISK8_MAJOR + major_idx - 8;
> default:
> BUG();
> return 0; /* shut up gcc */
>
Yes this seems good.
One is left to wonder, however, why 2.5 version is not using
a little array of majors here.
-- Pete
next parent reply other threads:[~2003-04-10 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1049998202.18407.linux-kernel2news@redhat.com>
2003-04-10 20:39 ` Pete Zaitcev [this message]
2003-04-10 20:46 Isn't sd_major() broken ? Andries.Brouwer
-- strict thread matches above, loose matches on Subject: below --
2003-04-10 18:01 Badari Pulavarty
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=200304102039.h3AKdYC31797@devserv.devel.redhat.com \
--to=zaitcev@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=pbadari@us.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).