Re: knowing when file is flushed to disk

2006-08-10 Thread Slawomir Nowaczyk
On Wed, 09 Aug 2006 16:13:19 + (GMT) John Pote <[EMAIL PROTECTED]> wrote: #> Is there some way from my Python script to know when the data is actually on #> the disk. BTW server OS is Linux. Presumably calling flush() and close() on #> the output file will initiate the disk write, but do the

Re: knowing when file is flushed to disk

2006-08-10 Thread John Pote
Thanks for the replies. I guessed the situation would be flush() and trust. The probability of a crash between flush() returning and data actually written resulting in a trashed disk must be very small. But if you can be certain without too much effort it's got to be a good idea, so I thought I'

Re: knowing when file is flushed to disk

2006-08-09 Thread Neil Hodgson
John Pote: > Is there some way from my Python script to know when the data is actually on > the disk. BTW server OS is Linux. Presumably calling flush() and close() on > the output file will initiate the disk write, but do they wait for the > actual disk write or immediately return leaving the

Re: knowing when file is flushed to disk

2006-08-09 Thread [EMAIL PROTECTED]
John Pote wrote: > Is there some way from my Python script to know when the data is actually on > the disk. BTW server OS is Linux. Presumably calling flush() and close() on > the output file will initiate the disk write, but do they wait for the > actual disk write or immediately return leaving th