add loop device backing file in udev database

[email protected]
Newsgroups gmane.linux.hotplug.devel
Message-ID <[email protected]>
Hi,

Since kernel 2.6.37, some infos are available in /sys for associated 
loop devices, especially the backing file. Is it poosible to introduce 
the BACKING_FILE variable for associated loop devices ?

This sample

ACTION=="add|change", \
         KERNEL=="loop?*", \
         SUBSYSTEM=="block", \
         TEST=="%S/block/%k/loop/backing_file", \
         PROGRAM=="/bin/cat %S/block/%k/loop/backing_file", \
         ENV{BACKING_FILE}="%c"

works fine.

I have already send a bug report to the Debian maintainer 
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671546) who has 
recommended me to directly propose this change to the upstream 
maintainer.

Thanks
quidame
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.