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

2006-10-11 Thread Fredrik Lundh
Russell Warren wrote: > One last non-python question... a few things I read seemed to vaguely > indicate that the journaling feature of NTFS is an extension/option. http://www.microsoft.com/whdc/system/winpreinst/ntfs-preinstall.mspx NTFS is a journaling file system. NTFS writes a log of chan

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

2006-10-11 Thread Russell Warren
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 b

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

2006-10-10 Thread Martin v. Löwis
Russell Warren schrieb: > Any insight from someone with knowledge of the internal operations of > os.remove and/or os.rename would be greatly appreciated, although I > expect the crux may be at the os level and not in python. Just to confirm what others have said: Python has nothing to do with tha

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

2006-10-10 Thread hg
Russell Warren wrote: > I've got a case where I'm seeing text files that are either all null > characters, or are trailed with nulls due to interrupted file access > resulting from an electrical power interruption on the WinXP pc. > > In tracking it down, it seems that what is being interrupted is

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

2006-10-10 Thread Sybren Stuvel
Russell Warren enlightened us with: > On first pass I would think that both of those calls are single step > operations (removing/changing an entry in the FAT, or FAT-like > thing, on the HDD) and wouldn't result in an intermediate, > null-populated, step, but the evidence seems to indicate I'm > w