Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.os.linux.development.apps Subject: Re: file I/O: writ to disk in parallel? Date: Thu, 21 Jun 2012 14:17:56 +0100 Lines: 9 Message-ID: <87vcikercr.fsf@sapphire.mobileactivedefense.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net DWSzCkhxeIeUEX4uzIu5LAygJbDE4pd0jH0gEL37Epuv8hjUc2wP9rd57IGKCQDW4= Cancel-Lock: sha1:i2wzIhnqAqvhyss2Cnd21m5Ai3E= sha1:jxQFiEmGGi60fKZLXR51m7/oM54= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Xref: csiph.com comp.os.linux.development.apps:489 lmike writes: > Say an application code calls fwrite/write etc. to write a very long > string "aaa ... 123 ... ccc" to a disk file, is it ever possible > that the app/box crashes in the middle of the write operation, then > it leaves a garbage like "aaa ... @#$@#$ ... ccc" or "@#$%@#$ > ... 123 ... ccc" in the disk file? Trivially, yes. Even the shortest actual write needs a finite amount of time and 'something bad' could happen during this time.