FBWF corrupts files during a commit. Possible BUG

Posted: 02-23-2007, 02:25 PM
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.
Reply With Quote

Responses to "FBWF corrupts files during a commit. Possible BUG"

Milong Sabandith [MS]
Guest
Posts: n/a
 
Re: FBWF corrupts files during a commit. Possible BUG
Posted: 02-27-2007, 07:32 AM
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@discussions.microsoft.com> wrote in message
news:3086CF1B-F9CE-4C5A-8C11-470C711AA41B@microsoft.com...
> 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.

Reply With Quote
Milong Sabandith [MS]
Guest
Posts: n/a
 
Re: FBWF corrupts files during a commit. Possible BUG
Posted: 02-28-2007, 09:40 PM
So this problem occurs because we have a handle opened with read only access
and attempt to open the file again with write access.

I'm afraid there isn't a good workaround except the delay you are currently
using.
I'll make sure this makes it in our next release.

thanks
-milong

"Milong Sabandith [MS]" <milongs@online.microsoft.com> wrote in message
news:eRRNmFkWHHA.4668@TK2MSFTNGP04.phx.gbl...
> 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@discussions.microsoft.com> wrote in
> message news:3086CF1B-F9CE-4C5A-8C11-470C711AA41B@microsoft.com...
>> 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.
>
>

Reply With Quote
David Robinson
Guest
Posts: n/a
 
Re: FBWF corrupts files during a commit. Possible BUG
Posted: 03-01-2007, 10:42 AM
Hi Milong,

Do you have any estimates on when your next release will be? Our customer is
finding this problem frustrating as they have designed their software around
the file based write filter and this problem means they can not use it.

Regards

David Robinson


"Milong Sabandith [MS]" wrote:
> So this problem occurs because we have a handle opened with read only access
> and attempt to open the file again with write access.
>
> I'm afraid there isn't a good workaround except the delay you are currently
> using.
> I'll make sure this makes it in our next release.
>
> thanks
> -milong
>
> "Milong Sabandith [MS]" <milongs@online.microsoft.com> wrote in message
> news:eRRNmFkWHHA.4668@TK2MSFTNGP04.phx.gbl...
> > 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@discussions.microsoft.com> wrote in
> > message news:3086CF1B-F9CE-4C5A-8C11-470C711AA41B@microsoft.com...
> >> 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.
> >
> >
>
>
>
Reply With Quote
Milong Sabandith [MS]
Guest
Posts: n/a
 
Re: FBWF corrupts files during a commit. Possible BUG
Posted: 03-01-2007, 09:09 PM
We have just released Feature Perview 2008. We are gathering feedback from
this CTP and will determine the release date as a result of the feedback.

thanks
-milong


"David Robinson" <DavidRobinson@discussions.microsoft.com> wrote in message
news:92D9D1E0-7346-49F7-8D94-C87E2FB4C2AD@microsoft.com...
> Hi Milong,
>
> Do you have any estimates on when your next release will be? Our customer
> is
> finding this problem frustrating as they have designed their software
> around
> the file based write filter and this problem means they can not use it.
>
> Regards
>
> David Robinson
>
>
> "Milong Sabandith [MS]" wrote:
>
>> So this problem occurs because we have a handle opened with read only
>> access
>> and attempt to open the file again with write access.
>>
>> I'm afraid there isn't a good workaround except the delay you are
>> currently
>> using.
>> I'll make sure this makes it in our next release.
>>
>> thanks
>> -milong
>>
>> "Milong Sabandith [MS]" <milongs@online.microsoft.com> wrote in message
>> news:eRRNmFkWHHA.4668@TK2MSFTNGP04.phx.gbl...
>> > 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@discussions.microsoft.com> wrote in
>> > message news:3086CF1B-F9CE-4C5A-8C11-470C711AA41B@microsoft.com...
>> >> 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.
>> >
>> >
>>
>>
>>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EFS corrupts files tommazzo Windows Vista Security 4 06-28-2008 02:58 PM
Vista Defrag corrupts large files? Bob Windows Vista Performance & Maintenance 3 06-24-2008 01:30 AM
Vista strips info from pictures and corrupts files!! Greg Windows Vista File Management 0 06-19-2007 09:25 AM
Windows Explorer crashes/corrupts files/programs! Michael Jay Burke Windows XP Performance & Maintenance 0 11-17-2003 07:39 PM
xp prof burning software corrupts transfered files Frrikur Windows XP 2 07-19-2003 06:04 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90