Subject: Re: mounting by wedge name
To: None <tech-userlevel@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: tech-userlevel
Date: 12/24/2007 16:43:08
On Mon, Dec 24, 2007 at 03:54:50PM +0100, Bernd Ernesti wrote:
> On Mon, Dec 24, 2007 at 10:35:56AM +0200, Alan Barrett wrote:
> > On Sun, 23 Dec 2007, Christos Zoulas wrote:
> > > I am not sure this is the right way to do things, since I will not be
> > > able to mount from a host called "wedge" :) Perhaps a better syntax is
> > > to use [wedgename].
> >
> > Why would you be unable to mount from a host called wedge? Even if
> > "mount wedge:/foo mnt" would no longer guess that you meant to do an NFS
> > mount, I had assumed that "mount_nfs wedge:/foo /mnt" would still treat
> > "wedge" as a host name, and similarly for other ways of invoking the
> > same operation ("mount -t nfs", "nfs" in third column of /etc/fstab).
> >
> > (I like the "wedge:" syntax.)
>
> I like the idea, but not that we add more 'magic' here.
> Using mount for nfs mounts with hostname:/xx used to work and I see no
> reason to break it, even if this is a very minor case where it could break.
>
> How does other OS handle such mounts?
Linux has GUID=foo, and might have a way to mount by name. I don't know.
Andrew