Disabling Windows read caching on the drive

All,

I would like to know how to disable the Windows’ cache for both read/write
to the drive.

best regards,
Peter

You can’t disable caching for a whole drive, you can do it only for a
specific file.

Alexei.

“Peter Teng” wrote in message news:xxxxx@ntdev…
>
> All,
>
> I would like to know how to disable the Windows’ cache for both read/write
> to the drive.
>
> best regards,
> Peter
>
>
>

Peter,

you wrote on Friday, September 5, 2003, 00:34:44:

PT> I would like to know how to disable the Windows’ cache for both
PT> read/write to the drive.

Try IOCTL_DISK_SET_CACHE_INFORMATION.

Ralf.

“Alexei Jelvis” wrote in message news:xxxxx@ntdev…
>
> You can’t disable caching for a whole drive, you can do it only for a
> specific file.
>

That is, without writing a file system filter driver.

Peter
OSR

“Ralf Buschmann” wrote in message news:xxxxx@ntdev…
>
>
> Try IOCTL_DISK_SET_CACHE_INFORMATION.
>

Whoa! That raises a good point. Are we talking about “caching” in the
Windows file-system sense (as in the cache manager) or “caching” in the “the
disk drive might keep stuff around in its hardware before its written”
sense?

Peter
OSR

Peter,

you wrote on Friday, September 5, 2003, 14:26:11:

> Try IOCTL_DISK_SET_CACHE_INFORMATION.

PV> Whoa! That raises a good point. Are we talking about “caching” in
PV> the Windows file-system sense (as in the cache manager) or “caching”
PV> in the “the disk drive might keep stuff around in its hardware
PV> before its written” sense?

I think I misunderstood the OP. He asked about the “windows cache” while
this IOCTL deals with the disk’s hardware cache. Sorry.

Ralf.