Re: add loop device backing file in udev database
Karel Zak <[email protected]>
| Newsgroups | gmane.linux.hotplug.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 28, 2012 at 04:38:46PM +0200, [email protected] wrote: > >That is usually the wrong thing to do, because it can get out-of-sync, > >and udev would pretend something that is not true anymore. Right, /sys is always better place than udev db. > # losetup -d /dev/loop0 > # losetup /dev/loop0 /dev/sdc1 # sdc is USB stick There is also LOOP_CHANGE_FD ioctl, I have doubts that kernel informs userspace about this change. (but standard userspace utils does not use this ioctl) Karel -- Karel Zak <[email protected]> http://karelzak.blogspot.com -- 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