009_backport_mount.h-update.patch 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. From 76ff037059f6d387bde9d540f7e27a2b376d7cd7 Mon Sep 17 00:00:00 2001
  2. From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  3. Date: Fri, 18 Jan 2013 11:12:49 +0100
  4. Subject: [PATCH] mount.h: update
  5. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  6. ---
  7. include/sys/mount.h | 45 +++++++++++++++++++++++++++++++++++----------
  8. 1 file changed, 35 insertions(+), 10 deletions(-)
  9. diff --git a/include/sys/mount.h b/include/sys/mount.h
  10. index fbd61fd..c0e7b84 100644
  11. --- a/include/sys/mount.h
  12. +++ b/include/sys/mount.h
  13. @@ -1,5 +1,5 @@
  14. /* Header file for mounting/unmount Linux filesystems.
  15. - Copyright (C) 1996,1997,1998,1999,2000,2004 Free Software Foundation, Inc.
  16. + Copyright (C) 1996-2000, 2004, 2010, 2012 Free Software Foundation, Inc.
  17. This file is part of the GNU C Library.
  18. The GNU C Library is free software; you can redistribute it and/or
  19. @@ -46,23 +46,46 @@ enum
  20. #define MS_REMOUNT MS_REMOUNT
  21. MS_MANDLOCK = 64, /* Allow mandatory locks on an FS. */
  22. #define MS_MANDLOCK MS_MANDLOCK
  23. - S_WRITE = 128, /* Write on file/directory/symlink. */
  24. -#define S_WRITE S_WRITE
  25. - S_APPEND = 256, /* Append-only file. */
  26. -#define S_APPEND S_APPEND
  27. - S_IMMUTABLE = 512, /* Immutable file. */
  28. -#define S_IMMUTABLE S_IMMUTABLE
  29. + MS_DIRSYNC = 128, /* Directory modifications are synchronous. */
  30. +#define MS_DIRSYNC MS_DIRSYNC
  31. MS_NOATIME = 1024, /* Do not update access times. */
  32. #define MS_NOATIME MS_NOATIME
  33. MS_NODIRATIME = 2048, /* Do not update directory access times. */
  34. #define MS_NODIRATIME MS_NODIRATIME
  35. MS_BIND = 4096, /* Bind directory at different place. */
  36. #define MS_BIND MS_BIND
  37. + MS_MOVE = 8192,
  38. +#define MS_MOVE MS_MOVE
  39. + MS_REC = 16384,
  40. +#define MS_REC MS_REC
  41. + MS_SILENT = 32768,
  42. +#define MS_SILENT MS_SILENT
  43. + MS_POSIXACL = 1 << 16, /* VFS does not apply the umask. */
  44. +#define MS_POSIXACL MS_POSIXACL
  45. + MS_UNBINDABLE = 1 << 17, /* Change to unbindable. */
  46. +#define MS_UNBINDABLE MS_UNBINDABLE
  47. + MS_PRIVATE = 1 << 18, /* Change to private. */
  48. +#define MS_PRIVATE MS_PRIVATE
  49. + MS_SLAVE = 1 << 19, /* Change to slave. */
  50. +#define MS_SLAVE MS_SLAVE
  51. + MS_SHARED = 1 << 20, /* Change to shared. */
  52. +#define MS_SHARED MS_SHARED
  53. + MS_RELATIME = 1 << 21, /* Update atime relative to mtime/ctime. */
  54. +#define MS_RELATIME MS_RELATIME
  55. + MS_KERNMOUNT = 1 << 22, /* This is a kern_mount call. */
  56. +#define MS_KERNMOUNT MS_KERNMOUNT
  57. + MS_I_VERSION = 1 << 23, /* Update inode I_version field. */
  58. +#define MS_I_VERSION MS_I_VERSION
  59. + MS_STRICTATIME = 1 << 24, /* Always perform atime updates. */
  60. +#define MS_STRICTATIME MS_STRICTATIME
  61. + MS_ACTIVE = 1 << 30,
  62. +#define MS_ACTIVE MS_ACTIVE
  63. + MS_NOUSER = 1 << 31
  64. +#define MS_NOUSER MS_NOUSER
  65. };
  66. /* Flags that can be altered by MS_REMOUNT */
  67. -#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_NOATIME \
  68. - |MS_NODIRATIME)
  69. +#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION)
  70. /* Magic mount flag number. Has to be or-ed to the flag values. */
  71. @@ -99,8 +122,10 @@ enum
  72. #define MNT_FORCE MNT_FORCE
  73. MNT_DETACH = 2, /* Just detach from the tree. */
  74. #define MNT_DETACH MNT_DETACH
  75. - MNT_EXPIRE = 4 /* Mark for expiry. */
  76. + MNT_EXPIRE = 4, /* Mark for expiry. */
  77. #define MNT_EXPIRE MNT_EXPIRE
  78. + UMOUNT_NOFOLLOW = 8 /* Don't follow symlink on umount. */
  79. +#define UMOUNT_NOFOLLOW UMOUNT_NOFOLLOW
  80. };
  81. --
  82. 1.9.1