As I do not have hardware nor sufficient knowledge about it I hardly can fix it. It appears ide-floppy does not implement media change detection at all - the only thing it does is fake media change on driver ->open. It means supermount never detects any disk change of course.
Anyone could get a look? The right thing is probably add sense code decoding to idefloppy_analyze_error and use some innocent command like TEST_UNIT_READY in idefloppy_media_change. what our kernel gurus on cooker say? :) -andrey ---------- Forwarded Message ---------- Subject: Re: Supermount / Zip100 bug Date: Monday 27 October 2003 23:19 From: Andrey Borzenkov <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: Paul Bristow <[EMAIL PROTECTED]> On Monday 27 October 2003 06:21, you wrote: > Andrey, > I downloaded your supermount-ng and successfully > patched it into kernel 2.4.22. While testing it, I > found out almost the same problem I used to have when > I had mandrake in my machine: when I eject a disk, the > device is not automatically unmounted. Then, when I > insert a new disk and cd the /mnt/zip dir, the old > disk tree is still mounted. So, to access another > disk, I must manually umount and mount it, which would > make supermount useless. > Maybe I commited some configuration mistake, or there > is a bug, but I hope you can help me with this. Hmm ... now when I got a look it appears that ide-floppy really does not dynamically check for media presence. The only case when MEDIA_CHANGED flag is set is on device open and even in this case it is blindly set without ever consulting real device. So we just assume on every open that media has been changed. Paul, is it possible to fix it? I assume it amounts to calling something like request sense or possibly idefloppy_get_capacity() out of idefloppy_media_change() except that idefloppy_get_capacity() should then set IDEFLOPPY_MEDIA_CHANGED if this is the case. This is the same for both 2.4 and 2.6 trees. Both need fixing to really support supermount. Rodrigo, till it is fixed for 2.4 you can use ide-scsi. For 2.6 it was badly broken last time I checked, do not know exact status now. Hopefully Paul fixes ide-floppy ... > My scsi-cdwriter works really fine with supermount. > I'd say you are doing a fine job. good. Just use ide-scsi for Zip as well. -andrey -------------------------------------------------------
