fs/inode.c: add dev-id and inode number for debugging in init_special_inode()
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."
Signed-off-by Manish Katiyar <[email protected]>
Cc Andreas Dilger <[email protected]>
Cc Al Viro <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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
@@ -1541,7 +1541,8 @@ void init_special_inode(struct inode *inelse 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);
_