Here's the problem:
Customer needs to be able to just plug, and unplug USB drive WITHOUT
unmount, or sync.
The drive is being used to log data.
I was thinking about doing write ahead logging, but then it occurs to
me that the only issue with disk corruption is when re-arranging the
structure of the disk
ie doing deletes, creating, removing directories
So my idea is to simply create n files named 0001-nnnn where n is the
size of the flash/size of each file before hand and then simply write
into those files.
My expectation is that the worst thing that will happen is I will
lose one file worth of data if it is pulled out before synching the
disk.
I' will also write 0's to the files before putting the data on them.
thoughts ?
Dave
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|