[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] Question about dmevents

LVM mirroring is indeed one of the targets that makes use of this facility.

The device-mapper code base is the place to find the daemon (device- mapper/dmeventd). This daemon resides in userspace waiting for events on devices that are being monitored (aka registered). When an event is received from the kernel, it is passed to a registered shared library. LVM2/dmeventd/mirror contains the dynamic shared object that handles mirror events. (The important functions being 'register', 'unregister', and 'process_event').


On Jul 16, 2007, at 10:08 AM, Wood, Brian J wrote:

Hello everyone, I was wondering if someone could point me to a utility
that I could look at that uses the dmeventd event registration. I asked Heinz M. if there were an LVM utilities that I could see sample code for
and it sounded like there weren't any implementations currently in LVM
(he did mention "mirrored.c" but that seems incomplete, unless I'm
missing something). I'm wondering if someone on this list has made some sort of test utility that I could see the source code for (maybe a small
application and a "hello world" type DSO that I could learn from :) ).

Thank you,

Brian Wood
Intel Corporation
Digital Enterprise Group
Manageability & Platform Software Division
brian j wood intel com

dm-devel mailing list
dm-devel redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]