Whamcloud - gitweb
b=20595
[fs/lustre-release.git] / lustre / kernel_patches / patches / iopen-misc-2.6-suse.patch
1 Index: linux-2.6.4-51.0/Documentation/filesystems/ext2.txt
2 ===================================================================
3 --- linux-2.6.4-51.0.orig/Documentation/filesystems/ext2.txt    2004-05-06 22:21:26.000000000 -0400
4 +++ linux-2.6.4-51.0/Documentation/filesystems/ext2.txt 2004-05-06 22:24:42.000000000 -0400
5 @@ -35,6 +35,22 @@
6  
7  sb=n                           Use alternate superblock at this location.
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.4-51.0/fs/dcache.c
29 ===================================================================
30 --- linux-2.6.4-51.0.orig/fs/dcache.c   2004-05-06 22:24:42.000000000 -0400
31 +++ linux-2.6.4-51.0/fs/dcache.c        2004-05-06 22:58:37.000000000 -0400
32 @@ -1195,7 +1195,7 @@
33   * dcache entries should not be moved in this way.
34   */
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 @@ -1253,6 +1252,8 @@
42         write_sequnlock(&rename_lock);
43  }
44  
45 +EXPORT_SYMBOL(d_move_locked);
46 +
47  /**
48   * d_move - move a dentry
49   * @dentry: entry to move
50 Index: linux-2.6.4-51.0/include/linux/dcache.h
51 ===================================================================
52 --- linux-2.6.4-51.0.orig/include/linux/dcache.h        2004-05-06 22:24:42.000000000 -0400
53 +++ linux-2.6.4-51.0/include/linux/dcache.h     2004-05-06 23:03:43.000000000 -0400
54 @@ -234,6 +234,7 @@
55   * This adds the entry to the hash queues.
56   */
57  extern void d_rehash(struct dentry *);
58 +extern void d_rehash_cond(struct dentry *, int lock);
59  
60  /**
61   * d_add - add dentry to hash queues
62 @@ -252,6 +253,7 @@
63  
64  /* used for rename() and baskets */
65  extern void d_move(struct dentry *, struct dentry *);
66 +extern void d_move_locked(struct dentry *, struct dentry *);
67  
68  /* appendix may either be NULL or be used for transname suffixes */
69  extern struct dentry * d_lookup(struct dentry *, struct qstr *);