Re: XFS: how to NOT null files on fsck?
From: Chris Wedgwood
Date: Tue Jul 13 2004 - 15:34:40 EST
On Tue, Jul 13, 2004 at 03:33:23PM +0200, Anton Ertl wrote:
> If the owner of the file is not the former owner of the block, the FS
> certainly should not put the block in the file.
sorry, i dont understand that
> How do you test?
running the code and pressing reset or similar
> We are balancing three things: making the file system nicer; working
> around non-nice file-systems in the applications; and losing data
> (even if it's just annoying rather than life-threatening). IMO losing
> data is the worst of these alternatives, and making file system nicer
> is the best one.
all these things have trade-offs, plenty of people are happy with the
current balance
for those that are not you can use something else
> Right, but that's not sufficient. I am not an expert on ext3, but
> from the description I have read that's all it guarantees. If an
> application does a meta-data update, and then a data update, the
> disk state on crash might be that the data update was done and the
> meta-data update was not, which is not any of the states that ever
> existed logically.
i don't see how for ordered updates that can occur, otherwise they
wouldn't be ordered
> Applications can be tested against that relatively easily by killing
> the application and seeing if the files are ok.
i've seen both KDE emacs loose data by crashing, does the fix for that
belong in the fs too?
> I am talking about ways that data can be lost because the file
> system does not have the nice semantics of a fully synchronous one.
mount -o sync
> The in-order guarantee is something that can be implemented
> relatively efficiently
let's see a patch, please give details of performance differences
i don't think the current situation is all bad or even undesirable,
yes, it is a balance and i think it's fine as-is
what you want a much more high-level semantics in the filesystem which
possibly will have large performance implications. im not sure such
semantics are *required* to be in the fs or should be there
also, this is fixing the relatively rare case where the system
crashes, which to be quite honest is a bigger concern, why no seek
solutinos that deal with more common failure modes like applications
crashing or bahaving badly?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/