Re: strange mounting problem

Guest section DW (dwguest@win.tue.nl)
Tue, 21 Sep 1999 23:12:02 +0200 (MET DST)


From toa@pop.agri.ch Tue Sep 21 20:29:03 1999

> You may check, just to be sure, that the kernel indeed sees
> the disk as removable. (It will say so in the boot messages.)

Ha, you're right, the kernel doesn't see the HP as removable, only the
sony is detected as a removable. (/var/log/dmesg)

Good. This explains why no check_media_change() was done.

> I seem to recall that you mentioned that this disk was SCSI-1
> and that things are fine for SCSI-2 compliant drives.

Yes.

> The ioctl BLKRRPART will do revalidate_scsidisk() which does
> the required invalidate_*().

This is somewhat Alan suggested to me. So I inserted the
ioctl(fd,BLKFLSBUF) directly into the eject code from Jeff Tranter.
This works so far.

Yes. I mentioned BLKRRPART and not BLKFLSBUF because the latter does
invalidate_buffers() but not invalidate_inodes(), and you want to do both,
I think.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/