Subject: Re: Work-in-progress "wedges" implementation
To: Daniel Carosone <dan@geek.com.au>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 09/22/2004 16:35:37
--Apple-Mail-34--522662758
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Sep 22, 2004, at 3:44 PM, Daniel Carosone wrote:

> Something like we do now. For the "just let me access whatever's in
> the drive, I don't want to have to know/care what particular disk it
> is" case.

Oh.  Well, eventually a whole-disk e.g. /dev/sd0 will be there.  The 
wedges are also named /dev/dk0, /dev/dk1, etc.  The /dev/dk/WegeName 
names are really intended to just be aliases.  If the wedge doesn't 
have a name, you can still access via the /dev/dkN path.

> Many flash usb widgets have an partition table on them, but its very
> rare that there's more than one whole-disk partition defined.

Understood.  Nevertheless, having that partition be named is very 
useful, so that your /etc/fstab entry always works, regardless of probe 
order, e.g.:

/dev/dk/DanFlashKey /frob msdos rw,noauto 0 0

As you said, this can be done using e.g. the MS-DOS volume name.

> Also, of course there'll be a bsd-disklabel wedge loader, and some
> kind of scheme to make compatible naming and migration easy, later.

Yes.  For the BSD disklabel wedge loader, my thought is to name the 
wedges like our existing partitions are named, e.g. "sd0a", "wd0e", 
etc.  So, there would be:

	/dev/dk/sd0a
	/dev/dk/wd0e
etc.

...and then some compatibility shim at the old major numbers that 
somehow "symlink" to the new names.

Or something.

         -- Jason R. Thorpe <thorpej@shagadelic.org>


--Apple-Mail-34--522662758
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBUgxNOpVKkaBm8XkRAlTIAJ9u9qQr37u6d9nm0oXr3jZzDI1CGQCggh1o
xsqpW2ss+Yb7yV0mBZub71k=
=lT+M
-----END PGP SIGNATURE-----

--Apple-Mail-34--522662758--