Michael Cerrato:
> I get a kernel oops in inode_permission:

it is unionfs bug.
the parameter 'nd' may be null.

--- inode.c     5 Feb 2006 06:21:15 -0000       1.1
+++ inode.c     7 Feb 2006 17:01:40 -0000
@@ -838,7 +838,7 @@ static int inode_permission(struct inode
                retval = inode->i_op->permission(inode, submask, nd);
                if ((retval == -EACCES) && (submask & MAY_WRITE) &&
                    (!strcmp("nfs", (inode)->i_sb->s_type->name)) &&
-                   (branchperms(nd->mnt->mnt_sb, bindex) & MAY_NFSRO)) {
+                   (branchperms(inode->i_sb, bindex) & MAY_NFSRO)) {
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
                        retval = vfs_permission(inode, submask);
 #else


> My goal is to have diskless machines NFS mount a read-only root and a
> read-write /.snapshot, and then unionfs the two for /etc and a few
> subdirectories of /var.  (Exporting a unionfs from the NFS server is
> not an option in this case.)  Using "nfsro" on the bottom file system
> doesn't change things.

very similar to my goal.

Junjiro Okajima
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to