OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

212 lines
7.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../unionfs/vserver.diff
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./inode.c.orig 2006-10-08 07:37:22.000000000 -0400
  17. +++ ./inode.c 2006-10-08 07:40:11.000000000 -0400
  18. @@ -258,7 +258,7 @@
  19. dbstart(new_dentry)))) {
  20. err =
  21. vfs_unlink(hidden_dir_dentry->d_inode,
  22. - whiteout_dentry);
  23. + whiteout_dentry, NULL);
  24. }
  25. fist_copy_attr_times(dir, hidden_dir_dentry->d_inode);
  26. dir->i_nlink = get_nlinks(dir);
  27. @@ -286,7 +286,7 @@
  28. if (!(err = is_robranch(old_dentry)))
  29. err =
  30. vfs_link(hidden_old_dentry, hidden_dir_dentry->d_inode,
  31. - hidden_new_dentry);
  32. + hidden_new_dentry, NULL);
  33. unlock_dir(hidden_dir_dentry);
  34. docopyup:
  35. @@ -310,7 +310,7 @@
  36. err =
  37. vfs_link(hidden_old_dentry,
  38. hidden_dir_dentry->d_inode,
  39. - hidden_new_dentry);
  40. + hidden_new_dentry, NULL);
  41. unlock_dir(hidden_dir_dentry);
  42. goto check_link;
  43. }
  44. @@ -389,7 +389,7 @@
  45. if (!(err = is_robranch_super(dentry->d_sb, bstart))) {
  46. err =
  47. vfs_unlink(hidden_dir_dentry->d_inode,
  48. - whiteout_dentry);
  49. + whiteout_dentry, NULL);
  50. }
  51. DPUT(whiteout_dentry);
  52. @@ -435,7 +435,7 @@
  53. mode = S_IALLUGO;
  54. err =
  55. vfs_symlink(hidden_dir_dentry->d_inode,
  56. - hidden_dentry, symname, mode);
  57. + hidden_dentry, symname, mode, NULL);
  58. }
  59. unlock_dir(hidden_dir_dentry);
  60. @@ -514,7 +514,7 @@
  61. if (!(err = is_robranch_super(dentry->d_sb, bstart))) {
  62. err =
  63. vfs_unlink(hidden_parent_dentry->d_inode,
  64. - whiteout_dentry);
  65. + whiteout_dentry, NULL);
  66. }
  67. DPUT(whiteout_dentry);
  68. @@ -553,7 +553,7 @@
  69. if (!(err = is_robranch_super(dentry->d_sb, bindex))) {
  70. err =
  71. vfs_mkdir(hidden_parent_dentry->d_inode,
  72. - hidden_dentry, mode);
  73. + hidden_dentry, mode, NULL);
  74. }
  75. unlock_dir(hidden_parent_dentry);
  76. @@ -649,7 +649,7 @@
  77. //found a.wh.foo entry, remove it then do vfs_mkdir
  78. if (!(err = is_robranch_super(dentry->d_sb, bstart)))
  79. err = vfs_unlink(hidden_parent_dentry->d_inode,
  80. - whiteout_dentry);
  81. + whiteout_dentry, NULL);
  82. DPUT(whiteout_dentry);
  83. unlock_dir(hidden_parent_dentry);
  84. @@ -683,7 +683,7 @@
  85. }
  86. if (!(err = is_robranch_super(dentry->d_sb, bindex))) {
  87. err = vfs_mknod(hidden_parent_dentry->d_inode,
  88. - hidden_dentry, mode, dev);
  89. + hidden_dentry, mode, dev, NULL);
  90. }
  91. /* XXX this could potentially return a negative hidden_dentry! */
  92. if (err || !hidden_dentry->d_inode) {
  93. --- ./copyup.c.orig 2006-09-16 22:03:39.000000000 -0400
  94. +++ ./copyup.c 2006-10-08 16:38:54.000000000 -0400
  95. @@ -216,10 +216,10 @@
  96. current->fsgid = new_hidden_parent_dentry->d_inode->i_gid;
  97. if (S_ISDIR(old_hidden_dentry->d_inode->i_mode)) {
  98. err = vfs_mkdir(new_hidden_parent_dentry->d_inode,
  99. - new_hidden_dentry, S_IRWXU);
  100. + new_hidden_dentry, S_IRWXU, NULL);
  101. } else if (S_ISLNK(old_hidden_dentry->d_inode->i_mode)) {
  102. err = vfs_symlink(new_hidden_parent_dentry->d_inode,
  103. - new_hidden_dentry, symbuf, S_IRWXU);
  104. + new_hidden_dentry, symbuf, S_IRWXU, NULL);
  105. } else if (S_ISBLK(old_hidden_dentry->d_inode->i_mode)
  106. || S_ISCHR(old_hidden_dentry->d_inode->i_mode)
  107. || S_ISFIFO(old_hidden_dentry->d_inode->i_mode)
  108. @@ -227,7 +227,7 @@
  109. err = vfs_mknod(new_hidden_parent_dentry->d_inode,
  110. new_hidden_dentry,
  111. old_hidden_dentry->d_inode->i_mode,
  112. - old_hidden_dentry->d_inode->i_rdev);
  113. + old_hidden_dentry->d_inode->i_rdev, NULL);
  114. } else if (S_ISREG(old_hidden_dentry->d_inode->i_mode)) {
  115. err = vfs_create(new_hidden_parent_dentry->d_inode,
  116. new_hidden_dentry, S_IRWXU, NULL);
  117. @@ -354,7 +354,7 @@
  118. * or something else happened so let's unlink; we don't
  119. * really care about the return value of vfs_unlink */
  120. vfs_unlink(new_hidden_parent_dentry->d_inode,
  121. - new_hidden_dentry);
  122. + new_hidden_dentry, NULL);
  123. goto out_dir;
  124. }
  125. @@ -660,7 +660,7 @@
  126. current->fsuid = hidden_parent_dentry->d_inode->i_uid;
  127. current->fsgid = hidden_parent_dentry->d_inode->i_gid;
  128. err = vfs_mkdir(hidden_parent_dentry->d_inode,
  129. - hidden_dentry, S_IRWXUGO);
  130. + hidden_dentry, S_IRWXUGO, NULL);
  131. current->fsuid = saved_uid;
  132. current->fsgid = saved_gid;
  133. if (!err)
  134. --- ./dirhelper.c.orig 2006-10-08 16:42:20.000000000 -0400
  135. +++ ./dirhelper.c 2006-10-08 16:44:22.000000000 -0400
  136. @@ -88,7 +88,7 @@
  137. break;
  138. }
  139. if (hidden_dentry->d_inode)
  140. - err = vfs_unlink(hidden_dir, hidden_dentry);
  141. + err = vfs_unlink(hidden_dir, hidden_dentry, NULL);
  142. DPUT(hidden_dentry);
  143. if (err)
  144. break;
  145. --- ./rename.c.orig 2006-10-08 16:48:20.000000000 -0400
  146. +++ ./rename.c 2006-10-08 16:48:50.000000000 -0400
  147. @@ -86,7 +86,7 @@
  148. if (!(err = is_robranch_super(old_dentry->d_sb, bindex))) {
  149. err =
  150. vfs_unlink(hidden_wh_dir_dentry->d_inode,
  151. - hidden_wh_dentry);
  152. + hidden_wh_dentry, NULL);
  153. }
  154. DPUT(hidden_wh_dentry);
  155. unlock_dir(hidden_wh_dir_dentry);
  156. @@ -211,7 +211,7 @@
  157. if (!(err = is_robranch_super(old_dir->i_sb, bindex))) {
  158. err =
  159. vfs_unlink(unlink_dir_dentry->d_inode,
  160. - unlink_dentry);
  161. + unlink_dentry, NULL);
  162. }
  163. fist_copy_attr_times(new_dentry->d_parent->d_inode,
  164. --- ./unlink.c.orig 2006-10-08 16:50:25.000000000 -0400
  165. +++ ./unlink.c 2006-10-08 16:50:58.000000000 -0400
  166. @@ -50,7 +50,7 @@
  167. DGET(hidden_dentry);
  168. if (!(err = is_robranch_super(dentry->d_sb, bindex)))
  169. err = vfs_unlink(hidden_dir_dentry->d_inode,
  170. - hidden_dentry);
  171. + hidden_dentry, NULL);
  172. DPUT(hidden_dentry);
  173. fist_copy_attr_times(dir, hidden_dir_dentry->d_inode);
  174. unlock_dir(hidden_dir_dentry);
  175. @@ -118,7 +118,7 @@
  176. /* avoid destroying the hidden inode if the file is in use */
  177. DGET(hidden_dentry);
  178. if (!(err = is_robranch_super(dentry->d_sb, bindex)))
  179. - err = vfs_unlink(hidden_dir_dentry->d_inode, hidden_dentry);
  180. + err = vfs_unlink(hidden_dir_dentry->d_inode, hidden_dentry, NULL);
  181. DPUT(hidden_dentry);
  182. fist_copy_attr_times(dir, hidden_dir_dentry->d_inode);
  183. unlock_dir(hidden_dir_dentry);
  184. @@ -197,7 +197,7 @@
  185. /* avoid destroying the hidden inode if the file is in use */
  186. DGET(hidden_dentry);
  187. if (!(err = is_robranch(dentry))) {
  188. - err = vfs_rmdir(hidden_dir_dentry->d_inode, hidden_dentry);
  189. + err = vfs_rmdir(hidden_dir_dentry->d_inode, hidden_dentry, NULL);
  190. }
  191. DPUT(hidden_dentry);
  192. --- ./commonfops.c.orig 2006-10-08 16:52:56.000000000 -0400
  193. +++ ./commonfops.c 2006-10-08 16:53:47.000000000 -0400
  194. @@ -149,7 +149,7 @@
  195. /* bring it to the same state as an unlinked file */
  196. hidden_dentry = dtohd_index(dentry, dbstart(dentry));
  197. hidden_dir_dentry = lock_parent(hidden_dentry);
  198. - err = vfs_unlink(hidden_dir_dentry->d_inode, hidden_dentry);
  199. + err = vfs_unlink(hidden_dir_dentry->d_inode, hidden_dentry, NULL);
  200. unlock_dir(hidden_dir_dentry);
  201. out: