just asking, windows applications behave pretty strange

Why would, wordpad, open, on save the file with FILE_OVERWRITE_IF ?
I tried it even on files like have 30 MB. Why would you overwrite this file,

[SORRY JUST PREMATURELY HIT SEND]

Why would, wordpad, open, on save the file with FILE_OVERWRITE_IF ?

I tried it even on files like have 110 MB. Why would you overwrite this
file. Isn’t it easier to just write down the modified content ?

And the most unexpected one. I opened the 110 MB file, and just hit save. It
overwrites it and rewrites the whole 110 MB file.
There must be a reason for this. Isn’t the “map the region and write down
modified pages” the most feasible way ?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Sunday, October 26, 2008 3:08 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] just asking, windows applications behave pretty strange

Why would, wordpad, open, on save the file with FILE_OVERWRITE_IF ?
I tried it even on files like have 30 MB. Why would you overwrite this file,


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@gmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> There must be a reason for this. Isn’t the "map the region and write down

modified pages" the most feasible way ?

No. This would require much more complex document file format. Only the
database files are using this approach, not document files of any popular
document-editing apps.

One exception: embedded OLE objects can be saved to the container file
without rewriting of the whole container.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com