Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 1999 14:20:07 -0400
From:      "Kelly Yancey" <kbyanc@alcnet.com>
To:        <dwhite@resnet.uoregon.edu>
Cc:        <freebsd-hackers@freebsd.org>
Subject:   Re: Proposal for the kill-list (userland nfs)
Message-ID:  <001e01bf10f0$961f6aa0$291c453f@kbyanc.alcnet.com>

next in thread | raw e-mail | index | archive | help
> Date: Tue, 5 Oct 1999 12:33:24 -0700 (PDT)
> From: Doug White <dwhite@resnet.uoregon.edu>
> Subject: Re: Proposal for the kill-list (userland nfs)
>
> On Tue, 5 Oct 1999, Martin Blapp wrote:
>
> > > If you want to do this, I suggest a round of releases that have mount
> > > complain about the @ syntax before you kill it. POLA, you know.
> > >
> > > A complaint such as:
> > >
> > > WARNING: path@server syntax is deprecated, use server:path
> > >
> > > would be sufficient.
> >
> > A good idea, but how can one make a difference between delimitors
> > and path-components ? This would be impossible in some cases.
>
> Well, the current code must differentiate in some way, so attach the
> warning to that.

  Looking at the code (on 3.2-STABLE) it looks like the suggested warning
could be added but inserting
warnx("WARNING: path@server syntax is deprecated, use server:path");
  before line 667 of /usr/src/sbin/mount_nfs.c. But I don't see anywhere
where it differentiates between delimitors and path-components. It is just a
simple strchr() and the first @ or : it finds is assumed the be the
delimitor. If you meant it as a path-component, you are SOL. In light of
that, I think that adding the warning on line 667 then would be all that is
needed. Unfortunately, this is just from my read of that section of code, as
I don't have NFS running anywhere to test the actual behavior.

  Kelly
 ~kbyanc@posi.net~
  FreeBSD - The Power To Serve - http://www.freebsd.org/
  Join Team FreeBSD - http://www.posi.net/freebsd/Team-FreeBSD/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001e01bf10f0$961f6aa0$291c453f>