Re: [SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread Amos Shapira
On 10 October 2010 14:24, Zenaan Harkness wrote: > On Sun, Oct 10, 2010 at 2:13 PM, Adrian Chadd wrote: >> The horrible, O(n) way is to just to loop over 0 .. n, see if it doesn't >> exist, if it doesn't then create and use it. >> >> It's slow, it's racy (ie, don't run the script without locking

Re: [SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread Adrian Chadd
On Sun, Oct 10, 2010, Zenaan Harkness wrote: > On Sun, Oct 10, 2010 at 2:13 PM, Adrian Chadd wrote: > > The horrible, O(n) way is to just to loop over 0 .. n, see if it doesn't > > exist, if it doesn't then create and use it. > > > > It's slow, it's racy (ie, don't run the script without locking :

Re: [SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread Zenaan Harkness
On Sun, Oct 10, 2010 at 2:13 PM, Adrian Chadd wrote: > The horrible, O(n) way is to just to loop over 0 .. n, see if it doesn't > exist, if it doesn't then create and use it. > > It's slow, it's racy (ie, don't run the script without locking :-) but > it's a traditional UNIX way of doing things.

[SLUG] Re: [activities] SLUG monthly meeting: 29 October 2010

2010-10-09 Thread darrin hodges
Righto, unless somebody comes with some talks, you'll have to listen to me talk about yum and rpms. :) Darrin. On Sat, Oct 9, 2010 at 9:36 AM, James Polley wrote: > == October 2010 SLUG Meeting == > > Location > Google Sydney - 48 Pirrama Road, Pyrmont > > Summary > *

Re: [SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread Adrian Chadd
The horrible, O(n) way is to just to loop over 0 .. n, see if it doesn't exist, if it doesn't then create and use it. It's slow, it's racy (ie, don't run the script without locking :-) but it's a traditional UNIX way of doing things. PTYs were once allocated that way, fe. :-) Adrian On Sun, Oc

Re: [SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread Zenaan Harkness
On Sun, Oct 10, 2010 at 11:27 AM, John Ferlito 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` Th

Re: [SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread Zenaan Harkness
Great! I was unfamiliar with readlink's ability. That'll work well. Thanks Zen -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread John Ferlito
On Sun, Oct 10, 2010 at 09:52:19AM +1100, Zenaan Harkness 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` # Create

[SLUG] dynamically creating a loop device MINOR numbers?

2010-10-09 Thread Zenaan Harkness
If I want to dynamically create loop devices, how would I dynamically create loop device minor numbers in some way, from a shell script, eg.: # setup: UNIQUE_NAME=unique_login_name LOOP_DEV=/dev/loop/$UNIQUE_NAME MINOR_NUMBER=some_hash_or_what_??? mknod $LOOP_DEV b 7 $MINOR_NUMBER chown root.disk

Re: Subject: [SLUG] change to linux and google chrome

2010-10-09 Thread Martin Visser
On Sat, Oct 9, 2010 at 6:30 PM, Brett Mahar wrote: > > You might like to check out SW Iron instead of Chrome, it is the same > thing but without the many Google tracking devices built-in: > > http://www.srware.net/en/software_srware_iron_chrome_vs_iron.php > -- > You just gotta love that SRware

[SLUG] Re: blue mountains day excursion with RMS?

2010-10-09 Thread Zenaan Harkness
If you look forward to a day or otherwise meeting with an icon, rms, you might email him direct given the short notice: rms -AT- gnu.org and you may wish to CC myself too, as I expect to speak with him, and will pass on your request/ intent if so. regards zenaan On Sat, Oct 9, 2010 at 8:50 PM,

[SLUG] Re: blue mountains day excursion with RMS?

2010-10-09 Thread Zenaan Harkness
I'm now subscribed. Not sure if I had to be, apologies if repeat email. Would anyone who is with vehicle, like to cheauffer Richard Stallman to the Blue Mountains, from City, tomorrow, or possibly Monday, bearing in mind that he is due to speak at UNSW early Monday evening, at 5:30 for 6pm start.

[SLUG] blue mountains day excursion with RMS?

2010-10-09 Thread Zenaan Harkness
Would anyone who is with vehicle, like to cheauffer Richard Stallman to the Blue Mountains, from City, tomorrow, or possibly Monday, bearing in mind that he is due to speak at UNSW early Monday evening, at 5:30 for 6pm start. ? cheers zenaan -- SLUG - Sydney Linux User's Group Mailing List - http

Re: [SLUG] Unrecogniseable disks.

2010-10-09 Thread Chris Donovan
Hi, A few things come to mind. > Put a disc in the laptop's DVD reader. No result whatsoever. Went to > /media. There is something there, but I was refused access. What does `fdisk -lu` say? Do you have appropriate access to /media (ls -ld /media)? Chris- -- SLUG - Sydney Linux User's Group M

Re: Subject: [SLUG] change to linux and google chrome

2010-10-09 Thread Brett Mahar
>> I am new to slug, can you do the following, I have a note book with >> XP, can I remove microsoft and change to linux and use google chrome >> as the browser You might like to check out SW Iron instead of Chrome, it is the same thing but without the many Google tracking devices built-in: http: