devfs
[Top] [All Lists]

RE: Removeable Media, partitions and devfs?

To: "'Richard Gooch'" <rgooch@xxxxxxxxxxxxxxx>, "'Paul Bristow'" <paul@xxxxxxxxxxxxxxx>
Subject: RE: Removeable Media, partitions and devfs?
From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Date: Fri, 7 Dec 2001 15:49:40 +0300
Cc: "'Kevin P. Fleming'" <kevin@xxxxxxxxxxxxx>, mfedyk@xxxxxxxxxxxxx, devfs@xxxxxxxxxxx
Importance: Normal
In-reply-to: <200112070708.fB778bo09456@vindaloo.ras.ucalgary.ca>
Sender: owner-devfs@xxxxxxxxxxx
> 
> > Now, the problem we still have is how to automatically revalidate
> > when a user tries to mount the a partition.  This is the most common
> > usage case for zip drives, and is not working on my system with the
> > patch below.
> >
> > i.e. attempting to do this
> >     mount /dev/ide/host0/bus1/target1/lun0/part4 /mnt/zip
> > with no disc inserted will fail, even with the
> > /dev/ide/host0/bus1/target1/lun0/disc entry present
> >
> > however, having a re-validation caused, which in ide-floppy does a
> > grok_partitions again should create the part4 entry so that the
mount
> > succeeds
> 
> ??? devfs_register_disc() should have created the "disc" entry with
> the DEVFS_FL_REMOVABLE flag. That in turn means that the directory is
> tagged as having removable media. So when you do an inode lookup or a
> readdir(3) on the directory, a media revalidation is performed.
>

Yes, that is the theory. But at least one user on Mandrake cooker list
reported that this does not work with my old patch (that faked media
size to force .../disc creation) so there must be some problem. It did
work when I wrote this patch, somewhere around 2.4.8 (shortly after
Mdk8.1 was released).


-andrej

<Prev in Thread] Current Thread [Next in Thread>