All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Anderson <andmike@us.ibm.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: [PATCH RFC 0/4] dm-netlink events
Date: Wed, 30 Nov 2005 00:23:11 -0800	[thread overview]
Message-ID: <20051130082311.GA18453@us.ibm.com> (raw)

This is an update of my previous patch to add netlink event support to dm
multipath. I have moved the dm netlink support out of a hardware handler
and into a dm-netlink support file. I have changed the event messages to
use netlink attributes which should allow for more flexibility in event
message content over time.

This patch series adds a file called dm-netlink to the drivers/md
directory to provide netlink support for dm events.

The skb mempool in this patch is derived / copied from
drivers/scsi/scsi_transport_iscsi.c.

This patch series contains:
1 Core dm netlink support (dm-netlink).
2 Calls to dm-netlink for path failure / reinstate events.
3 A sample user space program to receive / display events (dm_nld).

I have ran path failure testing on a small config.
I ran the sample program as a 32 bit and 64 bit app against a 64 bit
kernel.

Currently on path failures the blkerr is hard coded until that error
support is complete.

Example out:
1.) Path failure.
Msg Type: 17 Recevied
Event Type: 1 Version: 6
[Event]: SEQNUM: 7, Time: Tue Nov 29 21:50:47 2005, DMNAME: 8:160, BLKERR:
0x5a5a5a5a

2.) Path reinstate
Msg Type: 17 Recevied
Event Type: 2 Version: 6
[Event]: SEQNUM: 12, Time: Tue Nov 29 21:51:57 2005, DMNAME: 8:48


-andmike
--
Michael Anderson
andmike@us.ibm.com

             reply	other threads:[~2005-11-30  8:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30  8:23 Mike Anderson [this message]
2005-11-30  8:25 ` [PATCH RFC 1/4] dm-netlink skeleton support Mike Anderson
2005-11-30  8:26 ` [PATCH RFC 2/4] dm-netlink netlink support Mike Anderson
2005-11-30  8:28 ` [PATCH RFC 3/4] dm-mpath calls to dm-netlink Mike Anderson
2005-11-30  8:29 ` [PATCH RFC 4/4] Sample user space program (dm_nld) Mike Anderson

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=20051130082311.GA18453@us.ibm.com \
    --to=andmike@us.ibm.com \
    --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 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.