devfs
[Top] [All Lists]

Re: error calling: "symlink" in "GLOBAL"

To: Meunier <0@xxxxxxxxxxxxxx>
Subject: Re: error calling: "symlink" in "GLOBAL"
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Tue, 31 Jul 2001 12:59:13 -0600
Cc: devfs@xxxxxxxxxxx
In-reply-to: <20010408113044.I111@pervalidus.net>
References: <20010406023231.W111@pervalidus> <200104080526.f385QU906141@mobilix.atnf.CSIRO.AU> <20010408113044.I111@pervalidus.net>
Sender: owner-devfs@xxxxxxxxxxx
0@xxxxxxxxxxxxxx writes:
> On Sun, Apr 08, 2001 at 03:26:30PM +1000, Richard Gooch wrote:
> > 0@xxxxxxxxxxxxxx writes:
> > > Hi. I'm using
> > > 
> > > #REGISTER        vc/.*           MKOLDCOMPAT
> > > #UNREGISTER      vc/.*           RMOLDCOMPAT
> > > 
> > > and want to create some symlinks instead. Using
> > > 
> > > REGISTER       vc/1    CFUNCTION GLOBAL symlink vc/1 tty1
> > > UNREGISTER     vc/1    CFUNCTION GLOBAL unlink  tty1
> > > 
> > > works but I get the following messages:
> > > 
> > > Started device management daemon for /dev
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > error calling: "symlink" in "GLOBAL"
> > > 
> > > What's wrong ? I'm a bit confused about the devfsd man page
> > > syntax for symlinks:
> > > 
> > > REGISTER     mydir/mydev  CFUNCTION GLOBAL symlink $devname mydev
> > > UNREGISTER   mydir/mydev  CFUNCTION GLOBAL unlink  mydev
> > 
> > What version of devfsd are you running?
> 
> I'm using devfsd 1.3.11 on 2.4.3 Kernel.

The problem may be due to your two lines:
        REGISTER       vc/1    CFUNCTION GLOBAL symlink vc/1 tty1
        UNREGISTER     vc/1    CFUNCTION GLOBAL unlink  tty1

It's possible that you're repeating the "symlink vc/1 tty1" action
many times, because the "vc/1" regular expression will match "vc/10",
"vc/11" and so on, as well as the intended "vc/1". You have a number
of alternatives:
        REGISTER       vc/1$   CFUNCTION GLOBAL symlink vc/1 tty1
        UNREGISTER     vc/1$   CFUNCTION GLOBAL unlink  tty1

this will anchor the '1' at the end of the path. Or, much better to do
this:
        REGISTER        vc/1$          MKOLDCOMPAT
        UNREGISTER      vc/1$          RMOLDCOMPAT

which will use the recommended MKOLDCOMPAT and RMOLDCOMPAT actions.
Even better is to just use:

        REGISTER        vc/.*          MKOLDCOMPAT
        UNREGISTER      vc/.*          RMOLDCOMPAT

like the sample config file recommends. Why would you want to do
anything else?

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Re: error calling: "symlink" in "GLOBAL", Richard Gooch <=