AnsweredAssumed Answered

MFS "Hot device uninstall"

Question asked by Nathan Kohler on Jul 11, 2014
Latest reply on Jul 17, 2014 by soledad

I read the release notes, and see the known issue about it, and am using the example code as my starting point for my MFS application.  I have it working such that if a file is open when the usb device is detached, it will close the file first, and then uninstall the file system.

 

The problem I'm having is if an active write or flush is occurring when the detach event happens, it gets stuck in an infinite loop waiting to uninstall the file system because it never seems to return from the write function to get to the point where I can close the file.  Is there a way to forcefully close an open file that was being written to when a detach occurred?

 

Thanks.

Outcomes