Once a particular homebrew turned on usbmass and allow the user to use a PC to copy some files to the MS. Upon completion, the homebrew turned off usbmass. At this moment, the memory stick driver cache (consists of FAT table, etc) on the PSP is out of date and if the homebrew modify files on the MS, the memory stick will be corrupted. To avoid corruption, you'll need to invalidate the MS driver cache after unmounting usbmass, like this.
Code: Select all
sceIoDevctl("fatms0:", 0x0240D81E, NULL, 0, NULL, 0 );