The product I'm developing allows video recording directly onto removable USB media. When recording is finished I call the C function "umount" from within the application and supposedly the user can remove the USB flashdrive. But sometimes the file recorded is corrupted or incomplete. I also see this if the user deletes a file from the USB flashdrive then I umount it and it's removed - sometimes it is not completely deleted. I suspect this is due to write behind caching because if we "umount" then wait a while before removing the USB flashdrive all is OK. How can I tell after executing the "umount" function that all files have actually been written/updated to the USB flashdrive and the drive is effectively dead and can be "safely removed"? (I'm using DM355 dvsdk_1_30_00_40 and mv-4-0-1) Thanks.