[Ocfs2-devel] [PATCH] correctly set inode->i_rdev
Rusty Lynch
rusty at linux.co.intel.com
Fri Mar 26 21:16:51 CST 2004
The following minimal patch fixes bug #52. For some reason we were
always setting the inode->i_rdev to the super block's dev while
populating the inode.
--rusty
Index: src/inode.c
===================================================================
--- src/inode.c (revision 813)
+++ src/inode.c (working copy)
@@ -260,7 +260,7 @@
goto bail;
}
- OCFS_SET_INODE_DEV(sb, inode);
+ inode->i_rdev = MKDEV (fe->dev_major, fe->dev_minor);
inode->i_mode = mode;
inode->i_uid = fe->uid;
inode->i_gid = fe->gid;
More information about the Ocfs2-devel
mailing list