linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* add loop device backing file in udev database
@ 2012-06-28 10:39 quidame
  2012-06-28 11:11 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: quidame @ 2012-06-28 10:39 UTC (permalink / raw)
  To: linux-hotplug

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?bugg1546) who has 
recommended me to directly propose this change to the upstream 
maintainer.

Thanks
quidame

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-06 13:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-28 10:39 add loop device backing file in udev database quidame
2012-06-28 11:11 ` Kay Sievers
2012-06-28 14:38 ` quidame
2012-08-06 13:57 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).