Whamcloud - gitweb
Branch b1_8
[fs/lustre-release.git] / lustre / kernel_patches / patches / iopen-misc-2.6.22-vanilla.patch
1 Index: linux-2.6.22.5/Documentation/filesystems/ext2.txt
2 ===================================================================
3 --- linux-2.6.22.5.orig/Documentation/filesystems/ext2.txt      2007-08-22 17:23:54.000000000 -0600
4 +++ linux-2.6.22.5/Documentation/filesystems/ext2.txt   2008-02-21 00:57:02.000000000 -0700
5 @@ -58,6 +58,22 @@
6  
7  xip                            Use execute in place (no caching) if possible
8  
9 +iopen                          Makes an invisible pseudo-directory called 
10 +                               __iopen__ available in the root directory
11 +                               of the filesystem.  Allows open-by-inode-
12 +                               number.  i.e., inode 3145 can be accessed
13 +                               via /mntpt/__iopen__/3145
14 +
15 +iopen_nopriv                   This option makes the iopen directory be
16 +                               world-readable.  This may be safer since it
17 +                               allows daemons to run as an unprivileged user,
18 +                               however it significantly changes the security
19 +                               model of a Unix filesystem, since previously
20 +                               all files under a mode 700 directory were not
21 +                               generally avilable even if the
22 +                               permissions on the file itself is
23 +                               world-readable.
24 +
25  grpquota,noquota,quota,usrquota        Quota options are silently ignored by ext2.
26  
27  
28 Index: linux-2.6.22.5/fs/dcache.c
29 ===================================================================
30 --- linux-2.6.22.5.orig/fs/dcache.c     2008-02-21 00:56:29.000000000 -0700
31 +++ linux-2.6.22.5/fs/dcache.c  2008-02-21 00:57:02.000000000 -0700
32 @@ -1537,7 +1537,7 @@
33   * Update the dcache to reflect the move of a file name. Negative
34   * dcache entries should not be moved in this way.
35   */
36 -static void d_move_locked(struct dentry * dentry, struct dentry * target)
37 +void d_move_locked(struct dentry * dentry, struct dentry * target)
38  {
39         struct hlist_head *list;
40  
41 @@ -1595,6 +1595,7 @@
42         spin_unlock(&dentry->d_lock);
43         write_sequnlock(&rename_lock);
44  }
45 +EXPORT_SYMBOL(d_move_locked);
46  
47  /**
48   * d_move - move a dentry
49 Index: linux-2.6.22.5/include/linux/dcache.h
50 ===================================================================
51 --- linux-2.6.22.5.orig/include/linux/dcache.h  2008-02-21 00:56:29.000000000 -0700
52 +++ linux-2.6.22.5/include/linux/dcache.h       2008-02-21 00:57:02.000000000 -0700
53 @@ -251,6 +251,7 @@
54   * This adds the entry to the hash queues.
55   */
56  extern void d_rehash(struct dentry *);
57 +extern void d_rehash_cond(struct dentry *, int lock);
58  
59  /**
60   * d_add - add dentry to hash queues
61 @@ -286,6 +287,7 @@
62  
63  /* used for rename() and baskets */
64  extern void d_move(struct dentry *, struct dentry *);
65 +extern void d_move_locked(struct dentry *, struct dentry *);
66  
67  /* appendix may either be NULL or be used for transname suffixes */
68  extern struct dentry * d_lookup(struct dentry *, struct qstr *);