Re: Xfs_repair and journalling

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

 



Am Montag, 18. März 2013 schrieb Ben Myers:
> Hi Subranshu,
[…]
> > In case of EXT4, journal will not be replayed on performing mount. One
> > need to invoke fsck which performs journal playback and then other
> > corruption checks/recovery.
> 
> I can't speak for ext4.  I do think that your expectation that
> fsck/repair be able to replay a journal is pretty reasonable.  That's
> just not how it is implemented here.  In xfs, log recovery is in the
> kernel and xfs_repair knows just enough about the log to avoid
> clobbering your precious metadata when it needs to be recovered.  There
> was some discussion in the past about making xfs_repair able to recover
> the log but I wouldn't expect that any time soon.

Yes, fsck.ext4 is able to replay the journal, and also able to *just* replay 
the journal and do nothing else. I just checked its manpage.

Thanks for not speaking for Ext4 unless you really think you know it.

Being able to replay in userspace might help when the filesystem cannot be 
mounted correctly due to reasons laying outside the journal. Cause then one 
can attempt to replay the journal in userspace and run a repair on the 
filesystem then.

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs



[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux