Subject: Re: mounting by wedge name
To: None <tech-userlevel@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-userlevel
Date: 12/24/2007 16:04:28
On Mon, Dec 24, 2007 at 09:41:57AM -0700, Tim Rightnour wrote:
> 
> On 24-Dec-2007 Bernd Ernesti wrote:
> > Can we use a different delimiter instead of ':'?
> > 
> > Or what about only adding it to mount_ffs, but then we will lose again
> > some easy way to access it.
> 
> Could we do:
> 
> mount -w 89327910283787 /foo

It seems that we can give a variety of key/value pairs in a
backwards-compatible way with the syntax %<keyword>:value, e.g.,

mount -t ffs %wedge:b57b54a4-ad31-11dc-93e5-000c29746425 /mnt

Looking to the future, we may desire to choose a wedge by one or more
arbitrary device properties, such as a drive serial number, offset,
and size:

mount -t ffs %drive-serial-no:0123456789,%offset:256k,%size:32768M /mnt

I think that if we do change the syntax, the kernel's root prompt should
be kept consistent.  It uses the wedge: syntax right now.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24