[virt-tools-list] [libosinfo] Set UDEV properties for UDF media as well
Zeeshan Ali (Khattak)
zeeshanak at gnome.org
Thu Oct 13 01:53:58 UTC 2011
From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
---
data/95-osinfo.rules.in | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/data/95-osinfo.rules.in b/data/95-osinfo.rules.in
index 0d5e5dd..8edcf5c 100644
--- a/data/95-osinfo.rules.in
+++ b/data/95-osinfo.rules.in
@@ -4,6 +4,11 @@ ACTION=="add|remove", \
ENV{ID_FS_TYPE}=="iso9660", \
IMPORT{program}="@bindir@/osinfo-detect -f env $tempnode"
+ACTION=="add|remove", \
+ SUBSYSTEM=="block", \
+ ENV{ID_FS_TYPE}=="udf", \
+ IMPORT{program}="@bindir@/osinfo-detect -f env $tempnode"
+
# CDROMs
# Disk inserted
@@ -12,6 +17,11 @@ ACTION=="change", \
ENV{ID_FS_TYPE}=="iso9660", \
IMPORT{program}="@bindir@/osinfo-detect -f env $tempnode"
+ACTION=="change", \
+ SUBSYSTEM=="block", \
+ ENV{ID_FS_TYPE}=="udf", \
+ IMPORT{program}="@bindir@/osinfo-detect -f env $tempnode"
+
# Disk ejected
ACTION=="change", \
SUBSYSTEM=="block", \
@@ -19,3 +29,9 @@ ACTION=="change", \
OSINFO_BOOTABLE="", \
OSINFO_INSTALLER=""
+ACTION=="change", \
+ SUBSYSTEM=="block", \
+ ENV{ID_FS_TYPE}!="udf", \
+ OSINFO_BOOTABLE="", \
+ OSINFO_INSTALLER=""
+
--
1.7.6.4
More information about the virt-tools-list
mailing list