summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox
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
parent58a6a7c056ff86d69b25528f8235b3bbc8cd8c12 (diff)
downloadpoky-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')
-rw-r--r--meta/recipes-core/busybox/busybox-1.20.2/strict-atime.patch49
-rw-r--r--meta/recipes-core/busybox/busybox_1.20.2.bb3
2 files changed, 51 insertions, 1 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 0000000000..8696427ee8
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox-1.20.2/strict-atime.patch
@@ -0,0 +1,49 @@
1Add support for the "strictatime" mount option.
2
3Upstream-Status: Backport [9ad8979ff15e1b894ee1f4bb6a2535a1a2c20d65]
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6Index: busybox-1.20.2/util-linux/mount.c
7===================================================================
8--- busybox-1.20.2.orig/util-linux/mount.c 2012-07-02 15:08:25.000000000 +0100
9+++ busybox-1.20.2/util-linux/mount.c 2013-03-22 15:37:31.340277463 +0000
10@@ -113,6 +113,12 @@
11 #ifndef MS_RELATIME
12 # define MS_RELATIME (1 << 21)
13 #endif
14+#ifndef MS_STRICTATIME
15+# define MS_STRICTATIME (1 << 24)
16+#endif
17+
18+/* Any ~MS_FOO value has this bit set: */
19+#define BB_MS_INVERTED_VALUE (1u << 31)
20
21 #include "libbb.h"
22 #if ENABLE_FEATURE_MOUNT_LABEL
23@@ -239,6 +245,7 @@
24 /* "nomand" */ ~MS_MANDLOCK,
25 /* "relatime" */ MS_RELATIME,
26 /* "norelatime" */ ~MS_RELATIME,
27+ /* "strictatime" */ MS_STRICTATIME,
28 /* "loud" */ ~MS_SILENT,
29 /* "rbind" */ MS_BIND|MS_RECURSIVE,
30
31@@ -295,6 +302,7 @@
32 "nomand\0"
33 "relatime\0"
34 "norelatime\0"
35+ "strictatime\0"
36 "loud\0"
37 "rbind\0"
38
39@@ -466,8 +474,8 @@
40 // Find this option in mount_options
41 for (i = 0; i < ARRAY_SIZE(mount_options); i++) {
42 if (strcasecmp(option_str, options) == 0) {
43- long fl = mount_options[i];
44- if (fl < 0)
45+ unsigned long fl = mount_options[i];
46+ if (fl & BB_MS_INVERTED_VALUE)
47 flags &= fl;
48 else
49 flags |= fl;
diff --git a/meta/recipes-core/busybox/busybox_1.20.2.bb b/meta/recipes-core/busybox/busybox_1.20.2.bb
index a02cd38f37..c09a492dbd 100644
--- a/meta/recipes-core/busybox/busybox_1.20.2.bb
+++ b/meta/recipes-core/busybox/busybox_1.20.2.bb
@@ -30,7 +30,8 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
30 file://stat-usr-bin.patch \ 30 file://stat-usr-bin.patch \
31 file://busybox-syslog.service.in \ 31 file://busybox-syslog.service.in \
32 file://busybox-klogd.service.in \ 32 file://busybox-klogd.service.in \
33 file://testsuite-du-du-k-works-fix-false-positive.patch" 33 file://testsuite-du-du-k-works-fix-false-positive.patch \
34 file://strict-atime.patch"
34 35
35SRC_URI[tarball.md5sum] = "e025414bc6cd79579cc7a32a45d3ae1c" 36SRC_URI[tarball.md5sum] = "e025414bc6cd79579cc7a32a45d3ae1c"
36SRC_URI[tarball.sha256sum] = "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882" 37SRC_URI[tarball.sha256sum] = "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882"