Re: umass to /dev/da* mapping

2011-12-07 Thread Warren Block
On Wed, 7 Dec 2011, Mike Clarke wrote: On Wednesday 07 December 2011, Zane C. B-H. wrote: On Wed, 7 Dec 2011 08:39:30 -0700 (MST) Warren Block wrote: On Wed, 7 Dec 2011, Zane C. B-H. wrote: Still you will want to investigate what I've mentioned. It will drastically simplify permission stuf

Re: umass to /dev/da* mapping

2011-12-07 Thread Rod Person
On Wed, 7 Dec 2011 16:07:09 + Mike Clarke wrote: > On Wednesday 07 December 2011, Zane C. B-H. wrote: > > > On Wed, 7 Dec 2011 08:39:30 -0700 (MST) > > > > Warren Block wrote: > > > On Wed, 7 Dec 2011, Zane C. B-H. wrote: > > > > Still you will want to investigate what I've mentioned. It wi

Re: umass to /dev/da* mapping

2011-12-07 Thread Mike Clarke
On Wednesday 07 December 2011, Zane C. B-H. wrote: > On Wed, 7 Dec 2011 08:39:30 -0700 (MST) > > Warren Block wrote: > > On Wed, 7 Dec 2011, Zane C. B-H. wrote: > > > Still you will want to investigate what I've mentioned. It will > > > drastically simplify permission stuff as well as make automa

Re: umass to /dev/da* mapping

2011-12-07 Thread Zane C. B-H.
On Wed, 7 Dec 2011 08:39:30 -0700 (MST) Warren Block wrote: > On Wed, 7 Dec 2011, Zane C. B-H. wrote: > > > Still you will want to investigate what I've mentioned. It will > > drastically simplify permission stuff as well as make automatic. > > The devfs stuff is just not boottime only, but will

Re: umass to /dev/da* mapping

2011-12-07 Thread Warren Block
On Wed, 7 Dec 2011, Zane C. B-H. wrote: Still you will want to investigate what I've mentioned. It will drastically simplify permission stuff as well as make automatic. The devfs stuff is just not boottime only, but will be applied to any new device added etc post boot. Are you sure of that?

Re: umass to /dev/da* mapping

2011-12-07 Thread Zane C. B-H.
On Wed, 7 Dec 2011 12:51:47 + Mike Clarke wrote: > On Wednesday 07 December 2011, Zane C. B-H. wrote: > > > Why are you using a custom Perl script for this instead of the > > built in tools for this? > > > > Below is how I have it setup on my system... > > > > In /etc/devfs.rules... > > > >

Re: umass to /dev/da* mapping

2011-12-07 Thread Mike Clarke
On Wednesday 07 December 2011, Zane C. B-H. wrote: > Why are you using a custom Perl script for this instead of the built > in tools for this? > > Below is how I have it setup on my system... > > In /etc/devfs.rules... > > [localrules=10] > add path 'da*s*' mode 0660 group 5001 Because devfs only

Re: umass to /dev/da* mapping

2011-12-07 Thread Zane C. B-H.
On Mon, 5 Dec 2011 17:08:15 + Mike Clarke wrote: > > I have a fairly simple perl script which is run by devd when I plug > in a USB memory stick. The script sets up some permissions and a > link to make life easy for a user to mount the memory stick. > > This normally works fine but there a

Re: umass to /dev/da* mapping

2011-12-05 Thread Mike Clarke
On Monday 05 December 2011, Polytropon wrote: > On Mon, 5 Dec 2011 17:08:15 +, Mike Clarke wrote: [snip] > > Is there any convenient way for my script to determine which da* > > devices correspond to the umass device name? > > Maybe you could use a matching against > > match "bus" "0x?

Re: umass to /dev/da* mapping

2011-12-05 Thread Polytropon
On Mon, 5 Dec 2011 17:08:15 +, Mike Clarke wrote: > > I have a fairly simple perl script which is run by devd when I plug in a > USB memory stick. The script sets up some permissions and a link to > make life easy for a user to mount the memory stick. > > This normally works fine but there

umass to /dev/da* mapping

2011-12-05 Thread Mike Clarke
I have a fairly simple perl script which is run by devd when I plug in a USB memory stick. The script sets up some permissions and a link to make life easy for a user to mount the memory stick. This normally works fine but there are problems if the memory stick is already inserted before booti