1. 03 1月, 2020 3 次提交
  2. 19 12月, 2019 3 次提交
  3. 10 12月, 2019 2 次提交
  4. 27 11月, 2019 1 次提交
  5. 19 11月, 2019 1 次提交
  6. 14 11月, 2019 4 次提交
  7. 13 11月, 2019 1 次提交
  8. 12 11月, 2019 2 次提交
  9. 23 10月, 2019 1 次提交
  10. 21 10月, 2019 3 次提交
  11. 16 10月, 2019 3 次提交
  12. 15 10月, 2019 1 次提交
  13. 14 10月, 2019 1 次提交
  14. 10 9月, 2019 1 次提交
    • D
      util: activate directory override when used from library · b1b878c5
      Daniel P. Berrangé 提交于
      The Perl bindings for libvirt use the test driver for unit tests. This
      tries to load the cpu_map/index.xml file, and when run from an
      uninstalled build will fail.
      
      The problem is that virFileActivateDirOverride is called by our various
      binaries like libvirtd, virsh, but is not called when a 3rd party app
      uses libvirt.so
      
      To deal with this we allow the LIBVIRT_DIR_OVERRIDE=1 env variable to be
      set and make virInitialize look for this. The 'run' script will set it,
      so now build using this script to run against an uninstalled tree we
      will correctly resolve files to the source tree.
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      b1b878c5
  15. 06 9月, 2019 1 次提交
    • J
      util: Set backing file name for LOOP_GET_STATUS64 queries. · 149bbc52
      Julio Faracco 提交于
      This is an issue for LXC loop devices when you are trying to get loop
      devices info using `ioctl`. Modern apps uses `/sys/dev/block` to grab
      information about devices, but if you use the method mention you won't
      be able to retrive the associated file with that loop device. See
      example below from cryptsetup sources:
      
          static char *_ioctl_backing_file(const char *loop)
          {
              struct loop_info64 lo64 = {0};
              int loop_fd;
      
              loop_fd = open(loop, O_RDONLY);
              if (loop_fd < 0)
                  return NULL;
      
              if (ioctl(loop_fd, LOOP_GET_STATUS64, &lo64) < 0) {
                  close(loop_fd);
                  return NULL;
              }
      
              lo64.lo_file_name[LO_NAME_SIZE-2] = '*';
              lo64.lo_file_name[LO_NAME_SIZE-1] = 0;
      
              close(loop_fd);
              return strdup((char*)lo64.lo_file_name);
          }
      
      It will return an empty string because lo_file_name was not set.
      Function `virFileLoopDeviceOpenSearch()` is using `ioctl` to query data,
      but it is not checking `lo_file_name` field.
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
      149bbc52
  16. 07 8月, 2019 3 次提交
  17. 19 7月, 2019 1 次提交
  18. 03 7月, 2019 3 次提交
  19. 10 4月, 2019 1 次提交
  20. 03 4月, 2019 1 次提交
  21. 14 3月, 2019 1 次提交
  22. 07 3月, 2019 2 次提交