lkml.org 
[lkml]   [1998]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: disk naming proposal & devfs
On Sun, Jan 11, 1998 at 11:35:52PM -0500, James Mastros wrote:
> So before you start refering to it as /dev/root, you mount and then umount
> it there (using one of the other two naming schemes). Or you use tune2fs or
> the -M flag to mke2fs.

-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 ]
[======================================================================]

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.031 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site