[oe-commits] Drew Moseley : systemd: Check for HAVE_POSIX_FALLOCATE

git at git.openembedded.org git at git.openembedded.org
Wed Apr 30 15:40:06 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 7e498c4c17e2c1b6928d4c1fd127977bb588991f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7e498c4c17e2c1b6928d4c1fd127977bb588991f

Author: Drew Moseley <drew_moseley at mentor.com>
Date:   Mon Apr 28 11:38:57 2014 -0400

systemd: Check for HAVE_POSIX_FALLOCATE

The check for the config variable is using the wrong define
resulting in the #else always being used.

Signed-off-by: Drew Moseley <drew_moseley at mentor.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-core/systemd/systemd/systemd-pam-fix-fallocate.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd/systemd-pam-fix-fallocate.patch b/meta/recipes-core/systemd/systemd/systemd-pam-fix-fallocate.patch
index de73be9..d25acef 100644
--- a/meta/recipes-core/systemd/systemd/systemd-pam-fix-fallocate.patch
+++ b/meta/recipes-core/systemd/systemd/systemd-pam-fix-fallocate.patch
@@ -27,7 +27,7 @@ Index: systemd-209/src/journal/journal-file.c
          /* Note that the glibc fallocate() fallback is very
             inefficient, hence we try to minimize the allocation area
             as we can. */
-+#ifdef HAVE_POSIX_ALLOCATE
++#ifdef HAVE_POSIX_FALLOCATE
          r = posix_fallocate(f->fd, old_size, new_size - old_size);
          if (r != 0)
                  return -r;
@@ -66,7 +66,7 @@ Index: systemd-209/src/journal/journald-kmsg.c
          }
 -
 -        if (posix_fallocate(fd, 0, sizeof(uint64_t)) < 0) {
-+#ifdef HAVE_POSIX_ALLOCATE
++#ifdef HAVE_POSIX_FALLOCATE
 +        r = posix_fallocate(fd, 0, sizeof(uint64_t));
 +#else
 +	/* Use good old method to write zeros into the journal file



More information about the Openembedded-commits mailing list