Power loss and non EWF NTFS CF

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Noticed a strange problem with zeros being added to the end of a file
we are writing data to if power drops out. System is one EWF protected
CF and one non EWF protected CF. We are logging data to a file.
Basically we open file write 20 bytes of data and close file this is
done about every 5msecs until power drops out. What happens is when
power drops out a bunch of zeros get appended to the end of the file.
Also the amount of zeros is dividable by 20, the amount of data we
have been writing. I would expect to lose some data at the end when
power drops but not have zeros added. Any one seen something like this
?

Thanks
Jay
 
Yes Registry based EWF and Pretec 512 Meg CF as an IDE drive. We may also
have a second manufacturer I will have to check tomorrow. Our first thought
was it was a function of the CF hardware. Our software can strip off the
extra data at the end of the file if need be. We are just want to
understand what is going on to make sure our solution is correvt.
 
Back
Top