Re: [Tutor] free loop device

2008-05-06 Thread Martin Walsh
Nathan McBride wrote: > Yup, I got some help in IRC. What I ended up doing was using regex to > pull out each "/dev/loopX". Then > took the X and fed it to max which in turn gave me the highest numbered > loop device in use. After which I > then just added 1 to X and added it to the end of "/dev

Re: [Tutor] free loop device

2008-05-05 Thread Nathan McBride
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yup, I got some help in IRC. What I ended up doing was using regex to pull out each "/dev/loopX". Then took the X and fed it to max which in turn gave me the highest numbered loop device in use. After which I then just added 1 to X and added it to t

Re: [Tutor] free loop device

2008-05-05 Thread bob gailer
Nathan McBride wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey Guys, I have a program that uses the loop devices. However I originally was finding the free one with: 'losetup -f'. Which returns the next free loop device. :D However, I found that some of the other distros have a vers

[Tutor] free loop device

2008-05-05 Thread Nathan McBride
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey Guys, I have a program that uses the loop devices. However I originally was finding the free one with: 'losetup -f'. Which returns the next free loop device. :D However, I found that some of the other distros have a version of losetup that does