arla 0.13

Jim Nance jim at sailboat.acs.uncwil.edu
Mon Oct 5 14:47:51 CEST 1998


I made this patch for xfs_follow_link() because a paramater got added
the the linux follow_link function around 2.1.123.  I am not really familiar
with the arla code, but this looks like the modification that was made
to the ext2 code, so I am assuming its correct.

Thanks,

Jim

diff -u arla-0.12/xfs/linux/xfs_inodeops.c jimsarla/xfs/linux/xfs_inodeops.c
--- arla-0.12/xfs/linux/xfs_inodeops.c  Tue Sep 29 11:38:43 1998
+++ jimsarla/xfs/linux/xfs_inodeops.c   Wed Sep 30 16:30:10 1998
@@ -151,7 +151,7 @@
                int flag, int mode, struct inode ** res_inode);
 #else
 static struct dentry *
-xfs_follow_link(struct dentry *, struct dentry *);
+xfs_follow_link(struct dentry *, struct dentry *, unsigned int);
 #endif /* LINUX2_1 */

 #ifndef LINUX2_1
@@ -1658,6 +1658,7 @@
 }

 #ifndef LINUX2_1
+#error the Linux define is wrong
 static int xfs_follow_link(struct inode * dir, struct inode * inode,
                           int flag, int mode, struct inode ** res_inode)
 {
@@ -1705,7 +1706,7 @@
 }
 #else
 static struct dentry *
-xfs_follow_link(struct dentry *dentry, struct dentry *base)
+xfs_follow_link(struct dentry *dentry, struct dentry *base, unsigned int follow
)
 {
     char *buffer;
     int error;
@@ -1731,7 +1732,7 @@
     if (error <= MAXPATHLEN)
        buffer[error]='\0';
     XFSDEB(XDEBVNOPS, ("xfs_follow_link linkname: %s\n", buffer));
-    base = lookup_dentry(buffer, base, 1);
+    base = lookup_dentry(buffer, base, follow);
     xfs_free(buffer);
     return base;
 }






More information about the Arla-drinkers mailing list