[virt-tools-list] [libosinfo] Set UDEV properties for UDF media as well

Daniel P. Berrange berrange at redhat.com
Thu Oct 13 09:07:25 UTC 2011


On Thu, Oct 13, 2011 at 04:53:58AM +0300, Zeeshan Ali (Khattak) wrote:
> 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=""
> +

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list