> 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/