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.

53 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../aufs/aufs-vserver-inode-i_flags.diff
  5. # Copyright (C) 2014 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. This patch needs to be applied when trying to build aufs on top
  17. of a kernel with patched in linux vserver[1] support.
  18. The vserver patch changes the type of the 'i_flags' field within
  19. 'struct inode' from 'unsigned int' to 'unsigned short'.
  20. Initial build time test was done using following version:
  21. linux kernel: 3.10.2
  22. linux vserver patch: patch-3.10.9-vs2.3.6.6.diff [2]
  23. aufs3-standalone: 3.10-20130916
  24. [1] http://linux-vserver.org
  25. [2] http://vserver.13thfloor.at/Experimental/patch-3.10.9-vs2.3.6.6.diff
  26. --- a/fs/aufs/cpup.h
  27. +++ b/fs/aufs/cpup.h
  28. @@ -31,7 +31,7 @@
  29. struct file;
  30. struct au_pin;
  31. -void au_cpup_attr_flags(struct inode *dst, unsigned int iflags);
  32. +void au_cpup_attr_flags(struct inode *dst, unsigned short iflags);
  33. void au_cpup_attr_timesizes(struct inode *inode);
  34. void au_cpup_attr_nlink(struct inode *inode, int force);
  35. void au_cpup_attr_changeable(struct inode *inode);
  36. --- a/fs/aufs/cpup.c
  37. +++ b/fs/aufs/cpup.c
  38. @@ -24,7 +24,7 @@
  39. #include <linux/mm.h>
  40. #include "aufs.h"
  41. -void au_cpup_attr_flags(struct inode *dst, unsigned int iflags)
  42. +void au_cpup_attr_flags(struct inode *dst, unsigned short iflags)
  43. {
  44. const unsigned int mask = S_DEAD | S_SWAPFILE | S_PRIVATE
  45. | S_NOATIME | S_NOCMTIME | S_AUTOMOUNT;