Re: FBWF corrupts files during a commit. Possible BUG
- From: "Milong Sabandith [MS]" <milongs@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Feb 2007 23:32:11 -0800
Hi David,
This is a timing issue bug. I've opened a bug in our database.
I'll post again when i have more information.
Thank you for bringing this to our attention..
-milong
"David Robinson" <David Robinson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3086CF1B-F9CE-4C5A-8C11-470C711AA41B@xxxxxxxxxxxxxxxx
Hi,
I have recently built an embedded XP image for a customer that
incorporates
the new "File based write filter" to protect a Compact flash drive (Drive
C).
Our customer has experienced a problem while writing their software that
may
be a bug with the write filter. The problem leads to files becoming
corrupt
or more accurately empty during a commit. The problem seems to arise when
a
file is read, written, and then committed quickly.
Below is an example batch file that reproduces the problem:
Rem ------------------------------------------------------
Rem Perform a read operation on the file first
copy C:\file1.exe NUL
Rem Then immediately do the copy operation
Copy /Y C:\file2.exe C:\file1.exe
FBWFMGR /commit c: \file1.exe
Rem ------------------------------------------------------
After running this batch file the copied file (file1.exe) is all 0's at
byte level.
The problem can be avoided by adding a pause between the read and write
operation. An example is below.
Rem ------------------------------------------------------
Rem Perform a read operation on the file first
copy C:\file1.exe NUL
Rem sleep for 1 second
sleep 1
Rem Then immediately do the copy operation
Copy /Y C:\file2.exe C:\file1.exe
FBWFMGR /commit c: \file1.exe
Rem ------------------------------------------------------
Adding the one second pause as above makes the file copy and commit as
expected.
It seems to me that if a file is read and then written to quickly it
becomes
corrupt (or empty) at the FBWF overlay layer as if the file is not
committed
the file copies as expected. At least until the OS is rebooted and changes
are lost.
Any help with this issue would be much appreciated.
.
- Follow-Ups:
- Re: FBWF corrupts files during a commit. Possible BUG
- From: Milong Sabandith [MS]
- Re: FBWF corrupts files during a commit. Possible BUG
- Prev by Date: Re: Problems with Domain Join for XPE FP2007
- Next by Date: Doing preparation of CFs automated?
- Previous by thread: Re: Local Users and Groups: invalid systax
- Next by thread: Re: FBWF corrupts files during a commit. Possible BUG
- Index(es):
Relevant Pages
|