Hi All,
I am developing a nfsd.
I have problem for managing noncached write operation as belows.
I copied a file from local fsd to my nfsd. There were 3 write operations for
it.
- CachedIo
- NonCachedIo
- NonCachedIo => I can see this operation after 10 ~ 15seconds.
I found the data is not correct after 2nd write operation, but could be
fixed after 3rd write operation.
I have tried to copy the data as a file to my local disk to compare with the
data of 2nd and 3rd, but I got
STATUS_FILE_LOCK_CONFLICT after calling ZwWriteFile() for 2nd data. Is it a
clue for this problem ?
Any idea for this problem ?
thank you very much,
eddie
I found some more informations for this problem.
I’ve got FSRTL_CACHE_TOP_LEVEL_IRP for 2nd write, not a constant
,0x8xxxxxxx, for 3rd write.
Hi All,
I am developing a nfsd.
I have problem for managing noncached write operation as belows.
I copied a file from local fsd to my nfsd. There were 3 write operations
for it.
- CachedIo
- NonCachedIo 3. NonCachedIo => I can see this operation after 10 ~
15seconds.
I found the data is not correct after 2nd write operation, but could be
fixed after 3rd write operation.
I have tried to copy the data as a file to my local disk to compare with
the data of 2nd and 3rd, but I got
STATUS_FILE_LOCK_CONFLICT after calling ZwWriteFile() for 2nd data. Is it
a clue for this problem ?
Any idea for this problem ?
thank you very much,
eddie
> I found the data is not correct after 2nd write operation, but could be
fixed after 3rd write operation.
What data? Data written in a file or data in the IRP?
I have tried to copy the data as a file to my local disk to compare with
the data of 2nd and 3rd, but I got
STATUS_FILE_LOCK_CONFLICT after calling ZwWriteFile() for 2nd data. Is it
a clue for this problem
The Cache Manager tried to write beyond the Valid Data Length saved in FSD’s
structures. This is normal.
I found some more informations for this problem.
I’ve got FSRTL_CACHE_TOP_LEVEL_IRP for 2nd write, not a constant
,0x8xxxxxxx, for 3rd write
The 3rd write is a recursive request from the FSD. CcFlushCache or
CcZeroData was called inside the FSD. I think this is CcFlushCache called
from the IRP_MJ_CLEANUP handler.
–
Slava Imameyev, xxxxx@hotmail.com
“EddieShim” wrote in message news:xxxxx@ntfsd…
> Hi All,
>
> I am developing a nfsd.
> I have problem for managing noncached write operation as belows.
>
> I copied a file from local fsd to my nfsd. There were 3 write operations
> for it.
> 1. CachedIo
> 2. NonCachedIo
> 3. NonCachedIo => I can see this operation after 10 ~ 15seconds.
>
> I found the data is not correct after 2nd write operation, but could be
> fixed after 3rd write operation.
>
> I have tried to copy the data as a file to my local disk to compare with
> the data of 2nd and 3rd, but I got
> STATUS_FILE_LOCK_CONFLICT after calling ZwWriteFile() for 2nd data. Is it
> a clue for this problem ?
>
> Any idea for this problem ?
>
> thank you very much,
>
> eddie
>
>
>
>
>
>
>