Re: Funky file contents when os.rename or os.remove are interrupted



Thanks, guys... this has all been very useful information.

The machine this is happening on is already running NTFS.

The good news is that we just discovered/remembered that there is a
write-caching option (in device manager -> HDD -> properties ->
Policies tab) available in XP. The note right beside the
write-cache-enable checkbox says:

"This setting enables write caching to improve disk performance, but a
power outage or equipment failure might result in data loss or
corruption."

Well waddya know... write-caching was enabled on the machine. It is
now disabled and we'll be power-cycle testing to see if it happens
again.

Regarding the comment on journaling file systems, I looked into it and
it looks like NTFS actually does do journaling to some extent, and some
effort was expended to make NTFS less susceptible to the exact problem
I'm experiencing. I'm currently hopeful that the corrupted files we've
seen are entirely due to the mistake of having write-caching enabled
(the default).

Then, Windows has nothing to do with it, either. It calls the routines
of the file system driver rather directly.

It looks like that is not entirely true... this write-caching appears
to sit above the file system itself. In any case, it is certainly not
a Python issue!

One last non-python question... a few things I read seemed to vaguely
indicate that the journaling feature of NTFS is an extension/option.
Wording could also indicate a simple feature, though. Are there
options you can set on your file system (aside from block size and
partition)?! I've certainly never heard of that, but want to be sure.
I definitely need this system to be as crash-proof as possible.

Thanks again,
Russ

.



Relevant Pages

  • Re: "Resistenz" bei Hard Reset
    ... Wer WinXP mit NTFS ... die besseren Karten (Journaling). ... | NTFS is a journaling file system that uses database-like logging ... | quickly rolls back the uncommitted transactions and so is quickly ...
    (microsoft.public.de.german.windowsxp.sonstiges)
  • Re: Funky file contents when os.rename or os.remove are interrupted
    ... indicate that the journaling feature of NTFS is an extension/option. ... NTFS is a journaling file system. ...
    (comp.lang.python)
  • Re: XP Less Secure than 98 for Sharing Files
    ... >folders & shares such that I don't have to bother with individual ... and requires NTFS; ... >> can't formally scan for malware, ... recovery and non-automated file system repair. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Windows XP Pro
    ... NTFS and is compatible with both. ... The young man who put the Windows XP Pro on her system ... >>> installed Windows XP Pro as a FAT 32 file system. ... >> - Open ONE copy of Internet Explorer. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Sorry to have to ask this.
    ... The file system on a CD is CDFS which can be read by other OS'es.. ... MVP - Windows Shell/User ... >>> dilemma of whether or not to go with NTFS or stick with FAT32. ...
    (microsoft.public.windowsxp.general)