in reply to overwrite a file
I'm not familiar with the implementations of OS disk caching, but it seems to me there's no guarantee that any but the last call to overwrite_file makes it to disk from the system's cache. Even then... With a particularly good cache, absolutely nothing would be written to disk.
Remember, sys* disables user-land caching. It doesn't prevent OS caching. FILE_FLAG_NO_BUFFERING would do that in Windows, but I see no reference to it in win32/win32io.c in perl.git.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: overwrite a file
by varian (Chaplain) on Apr 26, 2007 at 06:19 UTC | |
by andreas1234567 (Vicar) on Jun 18, 2007 at 08:58 UTC | |
|
Re^2: overwrite a file
by jdporter (Paladin) on Jun 17, 2007 at 16:58 UTC |