summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/busybox-1.20.2
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-03-22 15:50:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-26 22:43:02 +0000
commitc2aab97e961ce719ba95409c64433ab2df4ecff8 (patch)
tree0f3fe2ff9d9c6e991c14f14cf5efc054c632c4f8 /meta/recipes-core/busybox/busybox-1.20.2
parent58a6a7c056ff86d69b25528f8235b3bbc8cd8c12 (diff)
downloadast2050-yocto-poky-c2aab97e961ce719ba95409c64433ab2df4ecff8.zip
ast2050-yocto-poky-c2aab97e961ce719ba95409c64433ab2df4ecff8.tar.gz
busybox: add strictatime support to mount
systemd uses strictatime when mounting tmpfs. Luckily this is already supported upstream, so backport the patch from git. (From OE-Core rev: 7379a5a2035ef670329551783c372d9310ddd983) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox/busybox-1.20.2')
-rw-r--r--meta/recipes-core/busybox/busybox-1.20.2/strict-atime.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox-1.20.2/strict-atime.patch b/meta/recipes-core/busybox/busybox-1.20.2/strict-atime.patch
new file mode 100644
index 0000000..8696427
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox-1.20.2/strict-atime.patch
@@ -0,0 +1,49 @@
+Add support for the "strictatime" mount option.
+
+Upstream-Status: Backport [9ad8979ff15e1b894ee1f4bb6a2535a1a2c20d65]
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+Index: busybox-1.20.2/util-linux/mount.c
+===================================================================
+--- busybox-1.20.2.orig/util-linux/mount.c 2012-07-02 15:08:25.000000000 +0100
++++ busybox-1.20.2/util-linux/mount.c 2013-03-22 15:37:31.340277463 +0000
+@@ -113,6 +113,12 @@
+ #ifndef MS_RELATIME
+ # define MS_RELATIME (1 << 21)
+ #endif
++#ifndef MS_STRICTATIME
++# define MS_STRICTATIME (1 << 24)
++#endif
++
++/* Any ~MS_FOO value has this bit set: */
++#define BB_MS_INVERTED_VALUE (1u << 31)
+
+ #include "libbb.h"
+ #if ENABLE_FEATURE_MOUNT_LABEL
+@@ -239,6 +245,7 @@
+ /* "nomand" */ ~MS_MANDLOCK,
+ /* "relatime" */ MS_RELATIME,
+ /* "norelatime" */ ~MS_RELATIME,
++ /* "strictatime" */ MS_STRICTATIME,
+ /* "loud" */ ~MS_SILENT,
+ /* "rbind" */ MS_BIND|MS_RECURSIVE,
+
+@@ -295,6 +302,7 @@
+ "nomand\0"
+ "relatime\0"
+ "norelatime\0"
++ "strictatime\0"
+ "loud\0"
+ "rbind\0"
+
+@@ -466,8 +474,8 @@
+ // Find this option in mount_options
+ for (i = 0; i < ARRAY_SIZE(mount_options); i++) {
+ if (strcasecmp(option_str, options) == 0) {
+- long fl = mount_options[i];
+- if (fl < 0)
++ unsigned long fl = mount_options[i];
++ if (fl & BB_MS_INVERTED_VALUE)
+ flags &= fl;
+ else
+ flags |= fl;
OpenPOWER on IntegriCloud