-L looks useful too. Although I like a filesystem independant solution.
> To implement this, we would need a fairly simple way to get this data...
> perhaps by extending struct statfs to have more feilds, and making it kosher
> to statfs non-mounted fses?
ext2fs havs volume labels. And finding somewhere in the partition table or
on a reserved sector on the disk would be a better place.
All you'd need to do is fiddle fdisk a bit so it doesn't use the last (or
second, or whatever) sector on the disk. (hey most disks waste a few
sectors anyway so that partitions can start and end on cylinder boundaries)
You stick a magic marker at the front of that sector and if the kernel disk
probe finds that sector, it reads names out of there and creates devices
based on that. fstab says where to mount them. And it's compatible with DOS
and Windows as long as you do the fdisk from Linux, or persuade Win to
leave some space free.
-- [======================================================================] [ Kevin Lentin Email: K.Lentin@cs.monash.edu.au ] [ finger kevinl@fangorn.cs.monash.edu.au for PGP public key block. ] [ KeyId: 06808EED FingerPrint: 6024308DE1F84314 811B511DBA6FD596 ] [======================================================================]