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
|