[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] Sync devices when XHEject is called



On 02/01/14 18:04, David Gálvez wrote:
Hi,

in the EmuTOS list has been discussed that removable drives (SD-Card,
USB memory sticks) can loose data when MiNT's block cache is in
writeback mode, even if the user use the desktop eject option (Thing
has it).

EmuTOS thread:
http://sourceforge.net/p/emutos/mailman/message/31884346/

Attached there is a patch to sync all devices if XHEject XHDI function
is caught by the MiNT's XHDI handle.

I've tried to sync only the device being removed, but the functions to
do so are only usable by file system drivers and the block cache code.

Alan if nobody has any objection please commit.


Commit message:


Sync devices when the function XHEject is caught by XHDI handler.

Thanks David.

Alan.