FileOptions in FileStream ctor

  • Thread starter Rolandas Rudomanskis
  • Start date
R

Rolandas Rudomanskis

Hi guys,

My question is about unbuffered IO in FileStream.

According to this publication:
http://research.microsoft.com/research/pubs/view.aspx?tr_id=841

"There is no simple way to disable FileStream buffering in the V2 .NET
framework."

And from .NET framework 2.0 SDK documentation about FileOptions Enumeration:

"WriteThrough: Indicates that the system should write through any
intermediate cache and go directly to disk."

So, I am a bit confused. Could you enlighten me which statement is correct?

Thanks
 
W

Willy Denoyette [MVP]

Rolandas Rudomanskis said:
Hi guys,

My question is about unbuffered IO in FileStream.

According to this publication:
http://research.microsoft.com/research/pubs/view.aspx?tr_id=841

"There is no simple way to disable FileStream buffering in the V2 .NET framework."

And from .NET framework 2.0 SDK documentation about FileOptions Enumeration:

"WriteThrough: Indicates that the system should write through any intermediate cache and
go directly to disk."

So, I am a bit confused. Could you enlighten me which statement is correct?

Thanks


The SDK docs are right, the MS research article is outdated, the article was written based
on a beta of V2, the WriteThrough option was added in the RTM release.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top