Skip to contentSkip to conversation

fs/inode.c: add dev-id and inode number for debugging in init_special_inode()

PATCH New [email protected] 1 participant 1 message May 12, 2009 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 fs/inode.c: add dev-id and inode number for debugging in init_special_inode()

From: Manish Katiyar <[email protected]>

Add device-id and inode number for better debugging. This was suggested by Andreas in one of the threads
http://article.gmane.org/gmane.comp.file-systems.ext4/12062 .

"If anyone has a chance, fixing this error message to be not-useless would be good... Including the device name and the inode number would help track down the source of the problem."

---

 fs/inode.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
fs/inode.c renamed from fs/inode.c~fs-inodec-add-dev-id-and-inode-number-for-debugging-in-init_special_inode +3 -2
diff -puN fs/inode.c~fs-inodec-add-dev-id-and-inode-number-for-debugging-in-init_special_inode fs/inode.c
@@ -1541,7 +1541,8 @@ void init_special_inode(struct inode *in
 	else if (S_ISSOCK(mode))
 		inode->i_fop = &bad_sock_fops;
 	else
-		printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n",
-		       mode);
+		printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o) for"
+				  " inode %s:%lu\n", mode, inode->i_sb->s_id,
+				  inode->i_ino);
 }
 EXPORT_SYMBOL(init_special_inode);

_