File Corruption copying to a DMG
File Corruption copying to a DMG
- Subject: File Corruption copying to a DMG
- From: Steve Gehrman <email@hidden>
- Date: Thu, 07 Oct 2010 05:00:54 -0700
I've been seeing some random corruption of files when copying to a DMG. At first I thought maybe my DMG was corrupted, so I created a new one, and I still get random corruption. Looking in a hex editor, I can see that the files size looks OK, but at some point the contents become garbage, or a recognizable contents of another file.
One clue is that in the cases I've seen, it's always a single file that it bad, not multiple files. So that might help diagnose it.
Anyone have ideas on what is going on? One thought was that maybe the DMG wasn't being flushed out to disk when it's ejected. I'm using FSEjectVolumeAsync to eject the DMG when it's done copying. Do I need to unmount it first and then call FSEjectVolumeAsync to be safe?
I've been seeing this off and on for at least a year, but I wasn't sure what was causing the corruption until I was able to narrow it down to the copy to the DMG.
Any comments?
-steve |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden