Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Wedges enabled on -current



agrier%poofygoof.com@localhost ("Aaron J. Grier") writes:

>generate links to devices (or wedges as the case may be) in
>/dev/disk/by-* at boot time, and mount with those.

I can offer:

  12676      2 drwxr-xr-x    3 root              wheel                   512 
Aug 24 12:43 /dev/wedges/
  12104      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/72a45a52-09c5-11df-bed3-001cc4d779ed -> /dev/dk5
  12119      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/72a45a70-09c5-11df-bed3-001cc4d779ed -> /dev/dk6
  12120      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/bla%20bla -> /dev/dk7
  12121      0 lrwxr-xr-x    1 root              wheel                     8 
Aug 24 12:43 /dev/wedges/vnd0a -> /dev/dk8
  12124      0 lrwxr-xr-x    1 root              wheel                     8 
Aug 24 12:43 /dev/wedges/vnd0b -> /dev/dk9
  12849      0 lrwxr-xr-x    1 root              wheel                     9 
Aug 24 12:43 /dev/wedges/vnd0e -> /dev/dk10
  12042      2 drwxr-xr-x    2 root              wheel                   512 
Jul 10 20:41 /dev/wedges/pussyfoot
  12039      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/pussyfoot/a -> /dev/dk0
  12076      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/pussyfoot/b -> /dev/dk1
  12090      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/pussyfoot/e -> /dev/dk2
  12091      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/pussyfoot/f -> /dev/dk3
  12102      0 lrwxr-xr-x    1 root              wheel                     8 
Jul 10 20:41 /dev/wedges/pussyfoot/g -> /dev/dk4
  12850      0 lrwxr-xr-x    1 root              wheel                     9 
Aug 24 12:43 /dev/wedges/vnd0f -> /dev/dk11

That's the script /libexec/devpubd-hooks/02-wedgenames that maintains
links for all wedges. The major issue with this is that while it
creates a full set of links at startup, devpubd doesn't see later
changes to the partitioning, just device attach/detach events
like the wedge autodiscover code.

The script is already on your system, you just have to run devpubd.

The other issue is, that devpubd runs too late in the boot sequence.
The links are persistent, so this might be still "good enough" for
your purpose once the links are created, but I'd still use the
NAME= syntax for fstab.



Home | Main Index | Thread Index | Old Index