From: Mike Snitzer <snitzer@redhat.com>
To: lvm-devel@redhat.com
Subject: Re: update support for cciss controller(s)
Date: Mon, 30 Nov 2009 14:48:54 -0500 [thread overview]
Message-ID: <20091130194853.GA12698@redhat.com> (raw)
In-Reply-To: <20091130193030.GE9708@redhat.com>
On Mon, Nov 30 2009 at 2:30pm -0500,
Mike Snitzer <snitzer@redhat.com> wrote:
> The cciss driver calls register_blkdev() for each controller in the
> system. The first 8 cciss controllers are given a fixed major
> (COMPAQ_CISS_MAJOR + i) and a name of: cciss%d
>
> cciss controllers >8 get a dynamic major number.
>
> Each controller supports a maximum of 16 partitions.
>
> Update lvm's filtering to properly support the cciss controller (I left
> "cciss" for compatibility's sake).
>
> (This enables dracut to drop its, incorrect, "cciss0" 'types' entry).
>
> diff --git a/lib/filters/filter.c b/lib/filters/filter.c
> index 889b416..05da504 100644
> --- a/lib/filters/filter.c
> +++ b/lib/filters/filter.c
> @@ -96,6 +96,14 @@ static const device_info_t device_info[] = {
> {"nbd", 16}, /* Network Block Device */
> {"ida", 16}, /* Compaq SMART2 */
> {"cciss", 16}, /* Compaq CCISS array */
> + {"cciss0", 16}, /* Compaq CCISS array */
> + {"cciss1", 16}, /* Compaq CCISS array */
> + {"cciss2", 16}, /* Compaq CCISS array */
> + {"cciss3", 16}, /* Compaq CCISS array */
> + {"cciss4", 16}, /* Compaq CCISS array */
> + {"cciss5", 16}, /* Compaq CCISS array */
> + {"cciss6", 16}, /* Compaq CCISS array */
> + {"cciss7", 16}, /* Compaq CCISS array */
> {"ubd", 16}, /* User-mode virtual block device */
> {"ataraid", 16}, /* ATA Raid */
> {"drbd", 16}, /* Distributed Replicated Block Device */
>
self-NACK
lvm doesn't need a literal match. "cciss" is a catch all for cciss%d
(see 'for (j = 0; device_info[j].name != NULL; j++)' loop in
lib/filters/filter.c:_scan_proc_dev)
(begs the question: why did dracut feel compelled to add a "cciss0"
entry? afaik a single cciss controller can't support 1024 partitions :)
Mike
prev parent reply other threads:[~2009-11-30 19:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-30 19:30 [PATCH] update support for cciss controller(s) Mike Snitzer
2009-11-30 19:48 ` Mike Snitzer [this message]
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=20091130194853.GA12698@redhat.com \
--to=snitzer@redhat.com \
--cc=lvm-devel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.