summaryrefslogtreecommitdiffstats
path: root/udev-block-notify.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-23 08:58:53 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-10-23 08:58:53 +0200
commit569fad30074a4d0c5eca3d4a8975a0b0e4f45e05 (patch)
treeca47371aab89b7080526b01e121d4b23051887f4 /udev-block-notify.c
parenta02f4c4c556f87c8b85393d6097b010167cd9622 (diff)
downloadudev-block-notify-569fad30074a4d0c5eca3d4a8975a0b0e4f45e05.tar.gz
udev-block-notify-569fad30074a4d0c5eca3d4a8975a0b0e4f45e05.tar.zst
add info about multi disk level
Diffstat (limited to 'udev-block-notify.c')
-rw-r--r--udev-block-notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c
index 2f15a1c..55a983d 100644
--- a/udev-block-notify.c
+++ b/udev-block-notify.c
@@ -205,6 +205,10 @@ int main (int argc, char ** argv) {
if ((value = udev_device_get_property_value(dev, "DM_NAME")) != NULL)
notifystr = appendstr(TEXT_TAG, notifystr, "Device mapper name", value);
+ /* multi disk */
+ if ((value = udev_device_get_property_value(dev, "MD_LEVEL")) != NULL)
+ notifystr = appendstr(TEXT_TAG, notifystr, "Multi disk level", value);
+
# if DEBUG
printf("%s: %s\n", argv[0], notifystr);
# endif