I have written RDBSS-based miniredirector and now I am testing it with
IFSTest. There are some things in its output that I don’t understand.
One of them follows.
The problem with OverwriteFileAllocTest. According to docs
When the file create function is used with the file overwrite
disposition, an existing file is required. The existing file is
truncated so the end-of-file pointer is set to the beginning of the
file.
The test is performed with an allocation size specified to the file
create function. The allocation size is queried and verified to be a
multiple of the minimum allocation size.
According to my logs file opcreatp\ovwraloc.dat is created with size
10000 bytes that is 2710 hex. Its allocation size is returned as 10240
bytes (multiple of 512).
Out of this output I can’t understand what’s wrong.
Any ideas?
+++Microsoft (R) Installable File System Test for Windows
NT/2000/XP/2003+++:: Probe-Header: :
Test :Probe
Group :IfsTestRtl
Status :C000001E (IFSTEST_TEST_NTAPI_FAILURE_CODE)
LastNtStatus :C000000D STATUS_INVALID_PARAMETER
ExpectedNtStatus :00000000 STATUS_SUCCESS
Group: OpenCreateParameters
OverwriteFileAllocTestTest :OverwriteFileAllocTest
Group :OpenCreateParameters
Status :C0000014 (IFSTEST_TEST_ALLOCATION_SIZE_ERROR)
ExpectedGeneralValue :00002710
Description :{Msg# OpCreatP!ovwraloc!13} The allcoation size of
the file \ in the directory \ was not large enough
to encompass the requested allocation.
Lookup Query :
http://www.microsoft.com/ContentRedirect.asp?prd=IFSKit&id=OpCreatP!ovwr
aloc!13&pver=2195