Re: [PATCH 4/4] jbd: fix error handling for checkpoint io (rebased)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hidehiro Kawai
Date: Tuesday, May 20, 2008 - 6:34 pm

Hi,

Jan Kara wrote:

A checkpointing failure is a bit special.  If the journal is aborted
by journal_commit_transaction(), the integrity of the filesystem is
ensured although the latest changes will be lost.  However, if the
journal is aborted by log_do_checkpoint() and the replay also failed,
the filesystem may be corrupted because some of the metadata blocks
are in old states.  In this case, the user will have to recover the
filesystem manually and carefully.  So I think printing the special
message is needed to inform users about that.
 


I can understand your concern as the current JBD updates the journal
super block even if a checkpoint has failed.  I think it will be
improved by adding a comment to journal_update_superblock().
For example: don't invoke this function if checkpointing has
failed, otherwise unwritten-back journaled data can be lost.

Or we may stop both modifying j_tail and updating the super block
when the journal has aborted (especially for a reason of checkpoint
failure).  Of course, __journal_abort_soft() still updates the
super block once.

Thanks,
-- 
Hidehiro Kawai
Hitachi, Systems Development Laboratory
Linux Technology Center

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/4] jbd: ordered data integrity fix (rebased), Hidehiro Kawai, (Tue May 13, 9:48 pm)
Re: [PATCH 2/4] jbd: ordered data integrity fix (rebased), Hidehiro Kawai, (Fri May 16, 3:25 am)
Re: [PATCH 3/4] jbd: abort when failed to log metadata ..., Hidehiro Kawai, (Fri May 16, 3:26 am)
Re: [PATCH 3/4] jbd: abort when failed to log metadata ..., Hidehiro Kawai, (Tue May 20, 6:33 pm)
Re: [PATCH 4/4] jbd: fix error handling for checkpoint io ..., Hidehiro Kawai, (Tue May 20, 6:34 pm)