summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-09-24 10:05:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-09-24 10:05:50 +0200
commit13ebd161eb465a70dabb7ee7036d96250f41b51a (patch)
tree3dad41f9385fd1e01845817589494ed2b95119af
parent0960bb291d00f8ae745bf92dc9d2d88735e70ba2 (diff)
downloadudev-block-notify-13ebd161eb465a70dabb7ee7036d96250f41b51a.tar.gz
udev-block-notify-13ebd161eb465a70dabb7ee7036d96250f41b51a.tar.zst
add comment about udevadm
-rw-r--r--udev-block-notify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c
index 2a699b6..f38b175 100644
--- a/udev-block-notify.c
+++ b/udev-block-notify.c
@@ -175,6 +175,9 @@ int main (int argc, char ** argv) {
}
if (action != 'r') {
+ /* Get possible values with:
+ * $ udevadm info --query=all --name=/path/to/dev
+ * Values available differs from device type and content */
if ((value = udev_device_get_property_value(dev, "ID_FS_LABEL")) != NULL)
notifystr = appendstr(TEXT_TAG, notifystr, "Label", value);
if ((value = udev_device_get_property_value(dev, "ID_FS_TYPE")) != NULL)