1. 05 10月, 2018 27 次提交
  2. 03 10月, 2018 1 次提交
  3. 02 10月, 2018 1 次提交
  4. 29 9月, 2018 1 次提交
  5. 27 9月, 2018 3 次提交
    • P
      vircgroupv1: fix build on non-linux OSes · 0615c843
      Pavel Hrdina 提交于
      Cgroups are linux specific and we need to make sure that the code is
      compiled only on linux.  On different OSes it fails the compilation:
      
      ../../src/util/vircgroupv1.c:65:19: error: variable has incomplete type 'struct mntent'
          struct mntent entry;
                        ^
      ../../src/util/vircgroupv1.c:65:12: note: forward declaration of 'struct mntent'
          struct mntent entry;
                 ^
      ../../src/util/vircgroupv1.c:74:12: error: implicit declaration of function 'getmntent_r' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          while (getmntent_r(mounts, &entry, buf, sizeof(buf)) != NULL) {
                 ^
      ../../src/util/vircgroupv1.c:814:39: error: use of undeclared identifier 'MS_NOSUID'
          if (mount("tmpfs", root, "tmpfs", MS_NOSUID|MS_NODEV|MS_NOEXEC, opts) < 0) {
                                            ^
      ../../src/util/vircgroupv1.c:814:49: error: use of undeclared identifier 'MS_NODEV'
          if (mount("tmpfs", root, "tmpfs", MS_NOSUID|MS_NODEV|MS_NOEXEC, opts) < 0) {
                                                      ^
      ../../src/util/vircgroupv1.c:814:58: error: use of undeclared identifier 'MS_NOEXEC'
          if (mount("tmpfs", root, "tmpfs", MS_NOSUID|MS_NODEV|MS_NOEXEC, opts) < 0) {
                                                               ^
      ../../src/util/vircgroupv1.c:841:65: error: use of undeclared identifier 'MS_BIND'
                  if (mount(src, group->legacy[i].mountPoint, "none", MS_BIND,
                                                                      ^
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      0615c843
    • P
      vircgroup: include system headers only on linux · 6ef37ed3
      Pavel Hrdina 提交于
      All the system headers are used only if we are compiling on linux
      and they all are present otherwise we would have seen build errors
      because in our tests/vircgrouptest.c we use only __linux__ to check
      whether to skip the cgroup tests or not.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      6ef37ed3
    • P
      vircgroup: remove VIR_CGROUP_SUPPORTED · 0df62669
      Pavel Hrdina 提交于
      tests/vircgrouptest.c uses #ifdef __linux__ for a long time and no
      failure was reported so far so it's safe to assume that __linux__ is
      good enough to guard cgroup code.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      0df62669
  6. 26 9月, 2018 4 次提交
  7. 25 9月, 2018 3 次提交