Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / iopen-misc-2.6.22-vanilla.patch
1 Index: linux-2.6/Documentation/filesystems/ext2.txt
2 ===================================================================
3 --- linux-2.6.orig/Documentation/filesystems/ext2.txt   2006-04-03 22:46:38.000000000 +0800
4 +++ linux-2.6/Documentation/filesystems/ext2.txt        2006-07-15 12:54:06.000000000 +0800
5 @@ -58,6 +58,22 @@ nobh                         Do not attach buffer_heads to fi
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/fs/dcache.c
29 ===================================================================
30 --- linux-2.6.orig/fs/dcache.c  2006-07-15 12:48:18.000000000 +0800
31 +++ linux-2.6/fs/dcache.c       2006-07-15 12:54:06.000000000 +0800
32 @@ -1608,6 +1608,12 @@
33         spin_unlock(&dcache_lock);
34  }
35  
36 +void __d_move(struct dentry * dentry, struct dentry * target)
37 +{
38 +       d_move_locked(dentry, target);
39 +}
40 +EXPORT_SYMBOL(__d_move);
41 +
42  /*
43   * Helper that returns 1 if p1 is a parent of p2, else 0
44   */
45 Index: linux-2.6/include/linux/dcache.h
46 ===================================================================
47 --- linux-2.6.orig/include/linux/dcache.h       2006-07-15 12:48:41.000000000 +0800
48 +++ linux-2.6/include/linux/dcache.h    2006-07-15 12:54:06.000000000 +0800
49 @@ -257,6 +257,7 @@ extern int have_submounts(struct dentry 
50   * This adds the entry to the hash queues.
51   */
52  extern void d_rehash(struct dentry *);
53 +extern void d_rehash_cond(struct dentry *, int lock);
54  
55  /**
56   * d_add - add dentry to hash queues
57 @@ -292,6 +293,7 @@ static inline struct dentry *d_add_uniqu
58  
59  /* used for rename() and baskets */
60  extern void d_move(struct dentry *, struct dentry *);
61 +extern void __d_move(struct dentry *, struct dentry *);
62  
63  /* appendix may either be NULL or be used for transname suffixes */
64  extern struct dentry * d_lookup(struct dentry *, struct qstr *);