Strange CopyFile API

Hi. Developers.

CopyFile API is strange. CopyFile API correctly read/write tow big
files. But too small file(< 256Byte) is not read from source file and
write distination file.
When does API read? What is read’s IRP?

> CopyFile API is strange. CopyFile API correctly read/write tow

CopyFile maps the source file to memory and then writes data from
this memory to the destination file.

Max

That is because the data of small file is residented in its File Record
directly.
and the system doesn’t allocate another disk space for it.

----- Original Message -----
From: “$BEOJULP><(B”
To: “File Systems Developers”
Sent: Thursday, March 16, 2000 9:30 PM
Subject: [ntfsd] Strange CopyFile API

> Hi. Developers.
>
> CopyFile API is strange. CopyFile API correctly read/write tow big
> files. But too small file(< 256Byte) is not read from source file and
> write distination file.
> When does API read? What is read’s IRP?
>
>
>
> —
> You are currently subscribed to ntfsd as: weafon@ms.chttl.com.tw
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>

Thank for your advice.
How do I modify read data?

weafon wrote:

That is because the data of small file is residented in its File Record
directly.
and the system doesn’t allocate another disk space for it.