* Matthew Jacob <[EMAIL PROTECTED]> [010311 12:19] wrote:
> On Sun, 11 Mar 2001, Alfred Perlstein wrote:
>
> > * Poul-Henning Kamp <[EMAIL PROTECTED]> [010311 12:02] wrote:
> > > In message <[EMAIL PROTECTED]>, Matthew
>Jacob writes:
> > > >
> > > >> Lastly make_dev_alias() is undocumented.
> > >
> > > Right, just like most of the rest of the kernel.
> > >
> > > >Really? That's a deficiency. It should be.
> > >
> > > Yes, ideally, yes.
>
> I've updated the man page.
>
> >
> > The problem with make_dev_alias() not being documented is that it would
> > have been an effort to figure out if duplicate make_dev_alias() calls
> > were idempotent, done with refcounts or a good way to panic your
> > machine.
>
> ...I'm not following this. Too many dime or more expensive words! What you at?
>
> >
> > There's also no destroy_dev_alias() that I can see. So when vinum
> > goes away I didn't realize how one unpopulates the /dev/vinum/ tree.
>
> The destroy_dev destroys all aliases.
Yeah... don't really need that. :)
In vinum's case there's a directory /dev/vinum/drive that points
to the device backing the vinum device:
/dev/vinum % ls -lR
total 7
brwx------ 1 root wheel 25, 0x40000001 Sep 26 1999 Control
brwx------ 1 root wheel 25, 0x40000002 Sep 26 1999 control
brwx------ 1 root wheel 25, 0x40000000 Sep 26 1999 controld
drwxr-xr-x 2 root wheel 512 Sep 26 1999 drive
drwxr-xr-x 2 root wheel 512 Sep 26 1999 plex
drwxr-xr-x 2 root wheel 512 Sep 26 1999 rplex
drwxr-xr-x 2 root wheel 512 Sep 26 1999 rsd
crwxr-xr-- 1 root wheel 91, 0 Sep 26 1999 rvinum0
drwxr-xr-x 2 root wheel 512 Sep 26 1999 rvol
drwxr-xr-x 2 root wheel 512 Sep 26 1999 sd
brwxr-xr-- 1 root wheel 25, 0 Sep 26 1999 vinum0
drwxr-xr-x 3 root wheel 512 Sep 26 1999 vol
./drive:
total 0
lrwxr-xr-x 1 root wheel 9 Sep 26 1999 vinumdrive0 -> /dev/da1e
lrwxr-xr-x 1 root wheel 11 Sep 26 1999 vinumdrive1 -> /dev/da2s1e
Ok, now is there a way to get rid of these symlinks when vinum goes
away? Ok, if there isn't a way to delete them, what if I unload
and reload vinum then try to make them again?
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message