From: heinzm@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: dmraid/lib/activate activate.c
Date: 7 Dec 2009 16:05:47 -0000 [thread overview]
Message-ID: <20091207160547.31665.qmail@sourceware.org> (raw)
CVSROOT: /cvs/dm
Module name: dmraid
Changes by: heinzm@sourceware.org 2009-12-07 16:05:46
Modified files:
lib/activate : activate.c
Log message:
Avoid (un)registering devices for monitoring if metadata format handler doesn't support it
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/activate/activate.c.diff?cvsroot=dm&r1=1.5&r2=1.6
--- dmraid/lib/activate/activate.c 2009/09/16 11:45:13 1.5
+++ dmraid/lib/activate/activate.c 2009/12/07 16:05:46 1.6
@@ -964,11 +964,13 @@
{
int ret = 0;
char *table = NULL;
+ struct dmraid_format *fmt = get_format(rs);
if (T_GROUP(rs))
return 1;
- if (what == DM_REGISTER)
+ if (what == DM_REGISTER &&
+ fmt->metadata_handler)
return register_devices(lc, rs);
/* Call type handler */
@@ -1053,8 +1055,10 @@
enum dm_what what)
{
int ret = 1, status;
+ struct dmraid_format *fmt = get_format(rs);
- if (what == DM_REGISTER)
+ if (what == DM_REGISTER &&
+ fmt->metadata_handler)
return unregister_devices(lc, rs);
status = dm_status(lc, rs);
reply other threads:[~2009-12-07 16:05 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=20091207160547.31665.qmail@sourceware.org \
--to=heinzm@sourceware.org \
--cc=dm-cvs@sourceware.org \
--cc=dm-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox