[NILFS users] nilfs2 fails to mount after io/error

Ryusuke Konishi ryusuke at osrg.net
Fri Nov 28 16:43:00 JST 2008


Hi,

On Wed, 26 Nov 2008 19:22:12 +0100, Adrian Ulrich wrote:
> Hi,
> 
> I just had an usb-harddrive (with nilfs2 and ext3 mounted) throw some IO-Errors (Most likely due to a crappy usb controller)
> and now nilfs2 refuses to mount the partition:
> 
> NILFS warning: Sequence number mismatch
> NILFS: error searching super root.
> 
> (ext3 still works fine)
> 
> Any idea?

Hmm, this error seems to be caused by some kind of bug in NILFS2
write routines.  I'll verify their error handlings.

In the meantime, please try the contained patch as follows:

$ tar jxf nilfs-2.0.5.tar.bz2
$ cd nilfs-2.0.5
$ patch -p1 < this-mail.patch
$ make
$ sudo make install

It disables the check of sequence numbers and would allow you to
mount the partition.

With regards,
Ryusuke Konishi

--
diff --git a/fs/recovery.c b/fs/recovery.c
index bd8e175..1144609 100644
--- a/fs/recovery.c
+++ b/fs/recovery.c
@@ -240,10 +240,12 @@ load_segment_summary(struct nilfs_sb_info *sbi, sector_t pseg_start,
 		goto failed;
 	}
 	store_segsum_info(ssi, sum, sbi->s_super->s_blocksize);
+#if 0
 	if (seg_seq != ssi->seg_seq) {
 		ret = NILFS_SEG_FAIL_SEQ;
 		goto failed;
 	}
+#endif
 	if (full_check) {
 		offset = sizeof(sum->ss_datasum);
 		check_bytes =





More information about the users mailing list