On Thu, 15 Jan 2009 19:10:19 +0100, "Milos Jana" wrote:
> Nilfs-utils compiled properly with patch after following instructions from
> your previous post. Here is what came out:
>
> u...@laptop:~$ sudo fsck0.nilfs2 /dev/sdb
> Super-block:
> revision = 2.0, checksum = OK
> blocksize = 4096
> write time = 2008-12-28 09:48:42
> indicated partial segment: blocknr = 4263936
> segnum = 2082, seq = 11746, cno=6661
>
> Clean FS.
>
> u...@laptop:~$ sudo mount /media/pendrive/
> mount.nilfs2: Error while mounting /dev/sdb on /media/pendrive: Invalid
> argument
Hmm, that's weird.
The partition was cleanly unmounted, but the final segment seems not
to be written to the disk.
Maybe, we need 'force' option to treat such situation.
In the meatime, could you try the following (additional) patch?
Regards,
Ryusuke
--
diff --git a/sbin/mkfs/fsck0.nilfs2.c b/sbin/mkfs/fsck0.nilfs2.c
index d3d335f..0d51e54 100644
--- a/sbin/mkfs/fsck0.nilfs2.c
+++ b/sbin/mkfs/fsck0.nilfs2.c
@@ -905,10 +905,12 @@ static void nilfs_fsck(const char *device)
print_pseg_message(&pseg_ref, " indicated partial segment");
fputc('\n', stderr);
+#if 0
if (le16_to_cpu(sb.s_state) & NILFS_VALID_FS) {
fprintf(stderr, "Clean FS.\n");
goto out_clean;
}
+#endif
if (nilfs_do_recovery(devfd, &pseg_ref) == 0)
goto out;
_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users