add loop device backing file in udev database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux