Added debian/ from 1:1.10.2-1 debian package
[busybox4maemo] / debian / patches / mount-relatime.patch
diff --git a/debian/patches/mount-relatime.patch b/debian/patches/mount-relatime.patch
new file mode 100644 (file)
index 0000000..5e5f899
--- /dev/null
@@ -0,0 +1,30 @@
+--- busybox.orig/util-linux/mount.c
++++ busybox/util-linux/mount.c
+@@ -26,6 +26,9 @@
+ /* For FEATURE_MOUNT_LABEL only */
+ #include "volume_id.h"
+ #endif
++#ifndef MS_RELATIME
++#define MS_RELATIME   (1 << 21)
++#endif
+ /* Needed for nfs support only */
+ #include <sys/utsname.h>
+@@ -136,6 +139,8 @@
+               /* "noatime"     */ MS_NOATIME,
+               /* "diratime"    */ ~MS_NODIRATIME,
+               /* "nodiratime"  */ MS_NODIRATIME,
++              /* "relatime"    */ MS_RELATIME,
++              /* "norelatime"  */ ~MS_RELATIME,
+               /* "loud"        */ ~MS_SILENT,
+               // action flags
+@@ -186,6 +191,8 @@
+               "noatime" "\0"
+               "diratime" "\0"
+               "nodiratime" "\0"
++              "relatime" "\0"
++              "norelatime" "\0"
+               "loud" "\0"
+               // action flags