Some issue found on mqx4.0/mfs/examples/mfs_usb:
The fatfs failed to be remounted if unplugging the USB disk when copying files. Actually, when unplugging, the files opened must be closed, otherwise the MFS failed to be unmount because its handle list is not empty. Since tracking all the files opened and then closing them is kind of troublesome, added a new IOCTL to close all open files. Please refer attachment for the code change.
And I recommand adding this feature to MFS.
Original Attachment has been moved to: Test.diff.svn000.tmp.diff.zip