]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: Check for HAVE_POSIX_FALLOCATE
authorDrew Moseley <drew_moseley@mentor.com>
Mon, 28 Apr 2014 15:38:57 +0000 (11:38 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 May 2014 12:42:05 +0000 (13:42 +0100)
The check for the config variable is using the wrong define
resulting in the #else always being used.

(From OE-Core rev: 7e498c4c17e2c1b6928d4c1fd127977bb588991f)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/systemd-pam-fix-fallocate.patch

index de73be96a7326b5eda515194c64a761ae76616d6..d25acefb59566a58756a9946d256e35733b72e44 100644 (file)
@@ -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