From: Francesc A. <fa...@py...> - 2004-09-30 07:56:37
|
A Dijous 30 Setembre 2004 09:32, Norbert Nemec va escriure: > Even though: I would strongly hope that it is not necessary. Does > h5file.close() do anything on the file but flush() it and then close the > physical file? In other words: is there any danger of file corruption if the > python program is just shut down cold without a chance to save anything? Like > - when the file is written via NFS and the computer running the program is > switched off hard? I'm not completely sure, but muy guts say that this would not be a problem. If your program crashes (or is shut down) and there are buffers that are not written yet, then the file will miss this information, but will not get corrupted. The only problem may appear if you shut down the program *during* a write process. In that case I guess you will end with a corrupted file, as there are no provision of I/O transactions yet. Cheers, -- Francesc Alted |