Chris Wedgwood wrote: I think that we need one more stage in sync() behavior to make sure that the data is safely on the platter. For file systems with supported write barriers, the last IO should be wrapped with a barrier to flush the disk cache.On Thu, Jun 30, 2005 at 09:44:37PM +0200, J?rn Engel wrote:Or do you rather mean that a single sync() should block until all data currently present is hardened?Logically sync() should return only after all dirty buffers that existed before sync() was called are flushed. Anything more than this (i.e. waiting on newly (since sync was called but before it returns) dirtied buffers) could live-lock (actually, this used to happen sometimes, I don't know if that's the case). It doesn't seem that sync() does that in today's code. |
| Previous by Date: | Re: XFS corruption during power-blackout, Jens Axboe |
|---|---|
| Next by Date: | Re: XFS corruption during power-blackout, Ric Wheeler |
| Previous by Thread: | Re: XFS corruption during power-blackout, Nathan Scott |
| Next by Thread: | Re: XFS corruption during power-blackout, Jens Axboe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |