From: Nikanth Karthikesan <knikanth@suse.de>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: Alasdair G Kergon <agk@redhat.com>,
"linux-kernel" <linux-kernel@vger.kernel.org>,
"Greg Kroah-Hartman" <gregkh@suse.de>,
"David S. Miller" <davem@davemloft.net>,
Miklos Szeredi <miklos@szeredi.hu>,
Chris Mason <chris.mason@oracle.com>,
Tigran Aivazian <tigran@aivazian.fsnet.co.uk>,
Ian Kent <raven@themaw.net>
Subject: Re: add devname module aliases to allow module on-demand auto-loading
Date: Fri, 21 May 2010 19:09:28 +0530 [thread overview]
Message-ID: <201005211909.29326.knikanth@suse.de> (raw)
In-Reply-To: <AANLkTinQwEqFKAiyAwVPwmzLtUXJkaOdZ0c88O_tfp-1@mail.gmail.com>
On Friday 21 May 2010 18:41:38 Kay Sievers wrote:
> On Fri, May 21, 2010 at 13:51, Kay Sievers <kay.sievers@vrfy.org> wrote:
> > On Fri, May 21, 2010 at 13:34, Alasdair G Kergon <agk@redhat.com> wrote:
> >
> > There is no harm to make a well-know device node static, it just
> > solves a lot of problems, and also makes it possible to work off of a
> > static /dev.
>
> To illustrate:
>
> On my box without this patch:
> dmsetup version
> Library version: 1.02.42 (2010-01-14)
> /proc/misc: No entry for device-mapper found
> Is device-mapper driver missing from kernel?
> Failure to communicate with kernel device-mapper driver.
>
> And the same box just with this patch, nothing else changed:
> dmsetup version
> Library version: 1.02.42 (2010-01-14)
> Driver version: 4.17.0
>
> But its up to you to care if device-mapper just works, or if there is
> stuff like an init script with modprobe needed to load stuff that
> might never be needed. :)
>
If this is needed, the dmsetup itself can do a `modprobe dm` instead of
printing the message, "Is device-mapper driver missing from kernel?"?
> This is surely not about dynamic vs. static, it is about race-free
> on-demand activation of services and subsystems.
>
Loading dm-mod alone is enough for `dmsetup version`. But for other operations
dm-mod may not be enough, as various other modules like dm-crypt, dm-
mirror,... would also be required, depending on the dm table, which may or may
not be installed.
Thanks
Nikanth
> Thanks,
> Kay
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2010-05-21 13:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 16:07 add devname module aliases to allow module on-demand auto-loading Kay Sievers
2010-05-21 11:11 ` Ian Kent
2010-05-21 11:24 ` Kay Sievers
2010-05-21 15:15 ` Greg KH
2010-05-21 11:34 ` Alasdair G Kergon
2010-05-21 11:51 ` Kay Sievers
2010-05-21 13:11 ` Kay Sievers
2010-05-21 13:39 ` Nikanth Karthikesan [this message]
2010-05-21 13:55 ` Kay Sievers
2010-05-21 18:23 ` Alasdair G Kergon
2010-05-21 18:51 ` Kay Sievers
2010-05-21 19:32 ` [dm-devel] " Alasdair G Kergon
2010-05-21 20:20 ` Kay Sievers
2010-05-25 5:33 ` Luca Berra
2010-05-25 9:48 ` Alasdair G Kergon
2010-05-25 9:57 ` Kay Sievers
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=201005211909.29326.knikanth@suse.de \
--to=knikanth@suse.de \
--cc=agk@redhat.com \
--cc=chris.mason@oracle.com \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=raven@themaw.net \
--cc=tigran@aivazian.fsnet.co.uk \
/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