PERFORCE change 169682 for review

Aditya Sarawgi truncs at FreeBSD.org
Thu Oct 22 16:52:50 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=169682

Change 169682 by truncs at aditya on 2009/10/22 16:52:01

	Put the error details in the panic message itself.
	Ref: http://svn.freebsd.org/viewvc/base?view=revision&revision=160859

Affected files ...

.. //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_lookup.c#6 edit

Differences ...

==== //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_lookup.c#6 (text+ko) ====

@@ -684,10 +684,13 @@
 	struct mount *mp;
 
 	mp = ITOV(ip)->v_mount;
+	if ((mp->mnt_flag & MNT_RDONLY) == 0)
+		panic("ext2_dirbad: %s: bad dir ino %lu at offset %ld: %s\n",
+			mp->mnt_stat.f_mntonname, (u_long)ip->i_number,(long)offset, how);
+	else
 	(void)printf("%s: bad dir ino %lu at offset %ld: %s\n",
-	    mp->mnt_stat.f_mntonname, (u_long)ip->i_number, (long)offset, how);
-	if ((mp->mnt_flag & MNT_RDONLY) == 0)
-		panic("ext2_dirbad: bad dir");
+            mp->mnt_stat.f_mntonname, (u_long)ip->i_number, (long)offset, how);
+
 }
 
 /*


More information about the p4-projects mailing list