=================================================================== RCS file: /MkLinux/floppy-darwin/floppy_blkdev.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- floppy-darwin/floppy_blkdev.cpp 2002/03/16 08:16:32 1.7 +++ floppy-darwin/floppy_blkdev.cpp 2002/03/20 07:58:30 1.8 @@ -164,9 +164,10 @@ BSStorePtr infoStore; #endif OSStatus ret; - + + IOLog("Polling swim3\n"); ret=FloppyPluginGetInfo(NULL, &info); - + if (info.curState == kBSOnline) *mediaPresent = true; else @@ -177,6 +178,12 @@ else *changedState = false; + media_present = mediaPresent; + + IOLog("mediaPresent = %s, changedState = %s\n", + (*mediaPresent == true) ? "true" : "false", + (*changedState == true) ? "true" : "false"); + if (ret == E_BSSuccess) return kIOReturnSuccess; else @@ -197,7 +204,7 @@ IOReturn org_mklinux_iokit_swim3_driver::reportRemovability(bool *isRemovable) { -*isRemovable=true; +*isRemovable=false; return kIOReturnSuccess; }