[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Sometimes sync-then-close-then-delete works better than...
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv16220/lib/mixminion
Modified Files:
Common.py
Log Message:
Sometimes sync-then-close-then-delete works better than close-then-delete for wiping
Index: Common.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Common.py,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- Common.py 30 Jul 2003 22:38:03 -0000 1.103
+++ Common.py 9 Aug 2003 02:53:31 -0000 1.104
@@ -655,6 +655,8 @@
blocks = ceilDiv(size, sz)
for _ in xrange(blocks):
os.write(fd, nil)
+ if hasattr(os, 'fsync'):
+ os.fsync(fd)
finally:
os.close(fd)