linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about possibility of data loss in Ext2/3 file system
@ 2006-02-22 21:56 Xin Zhao
  2006-02-22 22:00 ` Arjan van de Ven
  0 siblings, 1 reply; 11+ messages in thread
From: Xin Zhao @ 2006-02-22 21:56 UTC (permalink / raw)
  To: linux-kernel, linux-fsdevel

As far as I know, in Ext2/3 file system, data blocks to be flushed to
disk are usually marked as dirty and wait for kernel thread to flush
them lazily. So data blocks of a file could be flushed even after this
file is closed.

Now consider this scenario: suppose data block 2,3 and 4 of file A are
marked to be flushed out. At time T1, block 2 and 3 are flushed, and
file A is closed. However, at time T2, system experiences power outage
and failed to flushed block 4. Does that mean we will end up with
getting a partially flushed file?  Is there any way to provide better
guarantee on file integrity?

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-02-28 16:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 21:56 question about possibility of data loss in Ext2/3 file system Xin Zhao
2006-02-22 22:00 ` Arjan van de Ven
2006-02-22 22:34   ` Xin Zhao
2006-02-22 23:07     ` Andreas Dilger
2006-02-23  4:58     ` Theodore Ts'o
2006-02-23 19:46       ` Sam Vilain
2006-02-24 16:29         ` Theodore Ts'o
2006-02-26 21:27           ` Sam Vilain
2006-02-27  7:38             ` Xin Zhao
2006-02-28 16:56               ` Phillip Susi
2006-02-23 12:52     ` linux-os (Dick Johnson)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).