quidame | 28 Jun 2012 12:39

add loop device backing file in udev database

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 majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane