devfs
[Top] [All Lists]

RE: Removeable Media, partitions and devfs?

To: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Subject: RE: Removeable Media, partitions and devfs?
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Fri, 7 Dec 2001 10:44:42 -0700
Cc: "'Paul Bristow'" <paul@xxxxxxxxxxxxxxx>, "'Kevin P. Fleming'" <kevin@xxxxxxxxxxxxx>, mfedyk@xxxxxxxxxxxxx, devfs@xxxxxxxxxxx
In-reply-to: <000201c17f1d$a2dd5d40$21c9ca95@xxxxxxxxxxxxxx>
References: <200112070708.fB778bo09456@xxxxxxxxxxxxxxxxxxxxxxxx> <000201c17f1d$a2dd5d40$21c9ca95@xxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Borsenkow Andrej writes:
> > 
> > > 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).

So something has broken since then. So someone with a removable media
drive should go in and insert printk()'s so this problem can be
tracked down.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

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