Package: udev
Version: 175-3.1
Severity: wishlist
Dear Maintainer,
Since kernel 2.6.37, some infos are available in /sys for associated loop
devices, especially the backing file.
I have written a rules file:
========== /etc/udev/rules.d/60-loopback.rules =============
SUBSYSTEM!="block", GOTO="loopback_end"
KERNEL=="loop?*", OPTIONS+="watch"
ACTION=="add|change", \
KERNEL=="loop?*", \
TEST=="%S/block/%k/loop/backing_file", \
PROGRAM=="/bin/cat %S/block/%k/loop/backing_file", \
ENV{BACKING_FILE}="%c"
LABEL="loopback_end"
============================================
Works fine
Is it possible to add a similar file in the udev package (but maybe this is a
task for 'util-linux') or to modify an
existing file (maybe 60-persistent-storage.rules) ?
Thanks
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages udev depends on:
ii debconf [debconf-2.0] 1.5.42
ii libc6 2.13-30
ii libselinux1 2.1.9-2
ii libudev0 175-3.1
ii lsb-base 4.1+Debian0
ii util-linux 2.20.1-4
Versions of packages udev recommends:
ii pciutils 1:3.1.9-2
ii usbutils 1:005-3
udev suggests no packages.
-- debconf information:
udev/new_kernel_needed: false
udev/title/upgrade:
udev/reboot_needed:
udev/sysfs_deprecated_incompatibility:
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]