I echo Mark's sentiments, though for a different reason.

Softraid crypto volumes take time to fsck, yet are useful to use.

In my case I can wait 20+min for my personal laptop to be useful, or I
can wait 5min and let the rest fsck while I get to be productive.  The
laptop has /usr, /var, /tmp, /home, /usr/obj, /usr/src, /usr/ports
amongst other partitions.  I've marked all but the first four as
'noauto' and then use the hotplug attach routine to fsck and mount the
rest, which are not necessary for me to be productive and check email.

Since this change, I've hardcoded the scripts, but would definately
prefer the prior behavior.

Thanks,

Penned by Mark Kettenis on 20101213  6:41.17, we have:
| > Date: Mon, 13 Dec 2010 12:48:55 +0100
| > From: MERIGHI Marcus <mcmer-open...@tor.at>
| > 
| > > That sounds good.  I was aware of the change, but didn't think anybody
| > > would notice. :)
| 
| A bit late to the game, but I don't really agree with Tedu that the
| changed behaviour is an improvement.  Say I have configured
| hotplugd(8) such that it automatically mounts things when I plug in my
| camera.  Now I reboot my machine, without unplugging the camera.
| Previously hotplugd(8) would remount things upon boot.  Now suddenly
| it doesn't and I have to unplug and replug the camera.
| 
| > Index: share/man/man4/hotplug.4
| > ===================================================================
| > RCS file: /cvs/src/share/man/man4/hotplug.4,v
| > retrieving revision 1.3
| > diff -u -r1.3 hotplug.4
| > --- share/man/man4/hotplug.4        31 May 2007 19:19:50 -0000      1.3
| > +++ share/man/man4/hotplug.4        13 Dec 2010 11:29:30 -0000
| > @@ -31,7 +31,8 @@
| >  .Nm
| >  pseudo-device passes device attachment and detachment events to
| >  userland.
| > -When a device attaches or detaches, the corresponding event is queued.
| > +Once the device is opened by userland, when a device attaches or detaches, 
| > +the corresponding event is queued.
| >  The events can then be obtained from the queue through the
| >  .Xr read 2
| >  call on the
| 
| That looks like an improvement to me.
| 
| > Index: usr.sbin/hotplugd/hotplugd.8
| > ===================================================================
| > RCS file: /cvs/src/usr.sbin/hotplugd/hotplugd.8,v
| > retrieving revision 1.10
| > diff -u -r1.10 hotplugd.8
| > --- usr.sbin/hotplugd/hotplugd.8    20 Mar 2009 17:53:14 -0000      1.10
| > +++ usr.sbin/hotplugd/hotplugd.8    13 Dec 2010 11:26:51 -0000
| > @@ -26,9 +26,11 @@
| >  .Sh DESCRIPTION
| >  The
| >  .Nm
| > -daemon monitors the
| > +daemon opens the
| >  .Xr hotplug 4
| > -pseudo-device, acting on signaled events by executing the scripts in the
| > +pseudo-device and thus enables event signaling.
| > +It then monitors the device, acting on signaled events by executing the 
| > +scripts in the
| >  .Pa /etc/hotplug
| >  directory.
| >  By default it uses the
| 
| But this just seems to change the wording without actually changing
| the meaning.  I think the existing wording is better.
| 
| > Index: sys/dev/hotplug.c
| > ===================================================================
| > RCS file: /cvs/src/sys/dev/hotplug.c,v
| > retrieving revision 1.10
| > diff -u -r1.10 hotplug.c
| > --- sys/dev/hotplug.c       2 Dec 2010 04:12:35 -0000       1.10
| > +++ sys/dev/hotplug.c       13 Dec 2010 11:41:59 -0000
| > @@ -89,6 +89,13 @@
| >             printf("hotplug: event lost, queue full\n");
| >             return (1);
| >     }
| > +
| > +   /* 
| > +    * Do not queue events prior to hotplugopen anymore. This prevents 
| > +    * problems where the device is both attached and detached before 
| > +    * the device is opened.
| > +    */
| 
| Adding comments like this, describing historical behaviour really
| isn't such a good idea.

-- 
Todd Fries .. t...@fries.net

 _____________________________________________
|                                             \  1.636.410.0632 (voice)
| Free Daemon Consulting, LLC                 \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com             \  1.866.792.3418 (FAX)
| 2525 NW Expy #525, Oklahoma City, OK 73112  \  sip:freedae...@ekiga.net
| "..in support of free software solutions."  \  sip:4052279...@ekiga.net
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt

Reply via email to