xfs
[Top] [All Lists]

Gaurenteed file write??

To: xfs mailing list <linux-xfs@xxxxxxxxxxx>
Subject: Gaurenteed file write??
From: Greg Freemyer <freemyer@xxxxxxxxxxxxxxxxx>
Date: Tue, 15 Oct 2002 14:03:21 -0400
Organization: The NorcrossGroup
Sender: linux-xfs-bounce@xxxxxxxxxxx
All,

I have an iteration counter that I update every night.

    echo $ITERATION > /backup/iteration

Recently this file was reset to 0.

I suspect it was a case of the "zero filled file".

For this specific file and shell script, what extra logic can I add that would 
give me the highest likelihood of a successful disk write.

i.e. Would sync; sync;  increase my odds of always successfully writing this 
file out?

TIA
Greg Freemyer



<Prev in Thread] Current Thread [Next in Thread>