On Sun, Oct 10, 2010 at 11:27 AM, John Ferlito <[email protected]> wrote: > How about just using symlinks instead. > > eg > > # creation > UNIQUE_NAME=unique_login_name > MY_LOOP_DEV=/dev/loop/$UNIQUE_NAME > > # Setup loop device and grab it's name > LOOP_DEV=`sudo losetup --show --find /home/$UNIQUE_NAME/source`
This works with pre-created lo devices, which is fine. In my case, I can pre-create as many as I will need at any one time. losetup does not provide an auto device node creation mode, to create additional nodes (loop device special files) on demand if required, only auto locate an available but existing loop node. I am still hoping for a fully dynamic solution (the promise of udev), but this does not seem easy at this point. Thanks again Zen -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
