[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Safe File Update (atomic)



On Thu, Jan 6, 2011 at 1:54 AM, Ted Ts'o <tytso@mit.edu> wrote:
>> I was thinking, doesn't ext have this kind of dependency tracking already?
>> It has to write the inode after writing the data, otherwise the inode
>> might point to garbage.
>
> No, it doesn't.  We use journaling, and forced data writeouts, to
> ensure consistency.

Suppose I append one byte to an existing file, I don't use fsync.
Will it commit the inode with the increased size before the data byte
is written?
In that case, garbage might show up in my file.

Olaf


Reply to: