xfs
[Top] [All Lists]

Re: Gaurenteed file write??

To: Greg Freemyer <freemyer@xxxxxxxxxxxxxxxxx>
Subject: Re: Gaurenteed file write??
From: Steve Lord <lord@xxxxxxx>
Date: 15 Oct 2002 13:45:13 -0500
Cc: xfs mailing list <linux-xfs@xxxxxxxxxxx>
In-reply-to: <20021015180506.NXFR22240.imf13bis.bellsouth.net@Mother2>
References: <20021015180506.NXFR22240.imf13bis.bellsouth.net@Mother2>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Tue, 2002-10-15 at 13:03, Greg Freemyer wrote:
> 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
> 
> 

Write a little program which opens a file and calls fsync on it. sync
should do it too.

Steve

-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


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