1. 13 5月, 2019 6 次提交
    • M
      virsh: Don't leak disk targets in cmdDomBlkError · d55be922
      Michal Privoznik 提交于
      The virDomainGetDiskErrors() API copies disk targets into @disks
      array that we allocate. But we forgot to free it:
      
      ==140828== 16 bytes in 4 blocks are definitely lost in loss record 41 of 242
      ==140828==    at 0x4C2F08F: malloc (vg_replace_malloc.c:299)
      ==140828==    by 0x8C406D9: strdup (in /lib64/libc-2.28.so)
      ==140828==    by 0x5377DD3: virStrdup (virstring.c:966)
      ==140828==    by 0x54C112F: testDomainGetDiskErrors (test_driver.c:3068)
      ==140828==    by 0x55C863D: virDomainGetDiskErrors (libvirt-domain.c:10988)
      ==140828==    by 0x15D1FA: cmdDomBlkError (virsh-domain-monitor.c:1215)
      ==140828==    by 0x17F1A8: vshCommandRun (vsh.c:1335)
      ==140828==    by 0x13489E: main (virsh.c:920)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      d55be922
    • I
      test_driver: implement virDomainGetDiskErrors · 89320788
      Ilias Stamatis 提交于
      Return the number of disks present in the configuration of the test
      domain when called with @errors as NULL and @maxerrors as 0.
      
      Otherwise report an error for every second disk, assigning available
      error codes in a cyclic order.
      Signed-off-by: NIlias Stamatis <stamatis.iliass@gmail.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      89320788
    • A
      examples: Install under $(docdir) · 4faaaa8b
      Andrea Bolognani 提交于
      Our build system doesn't currently install the various
      example programs provided along libvirt; however, both the
      upstream .spec file and the Debian packaging go out of
      their way to make sure these useful demos are included in
      the respective documentation packages.
      
      Moreover, doing so without help from the upstream build
      system is easy to get wrong: the libvirt-docs RPM package,
      for example, ends up missing one of the examples and
      including a bunch of empty .deps/ directories.
      
      Install the examples in $(docdir) as part of our regular
      procedure, so that users and downstreams don't have to do
      anything special about them.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      4faaaa8b
    • A
      docs: Install documentation under $(docdir) · 6716c997
      Andrea Bolognani 提交于
      At the moment we allow the user to specify exactly where
      they want the HTML documentation to be installed with an
      extreme level of precision through the --with-html-dir and
      --with-html-subdir configure options.
      
      Most of the time, of course, the user will stick with the
      default, that is $(datadir)/doc/$(PACKAGE)-$(VERSION)/html.
      
      So close to $(docdir)! Including the version number in
      the path, specifically, seems entirely unnecessary since
      different releases of libvirt are not going to be able to
      coexist on the same system anyway.
      
      Drop all these custom flexibilty for flexibilty's sake
      shenaningans in favor of the standard, well understood
      $(docdir).
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      6716c997
    • A
      docs: Introduce $(devhelphtml_generated) · ca6f6025
      Andrea Bolognani 提交于
      Our XSLT magic generates one Devhelp-compatible HTML file
      per documentation module, but so far we have only shipped
      and installed documentation for virterror.
      
      Now that we have $(modules), however, we can generate the
      list of files the same way we do for regular documentation
      and make sure we always ship and install everything.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      ca6f6025
    • A
      docs: Introduce $(modules) · 78b748b9
      Andrea Bolognani 提交于
      This variable contains a lists of documentation modules,
      in a neutral format.
      
      Right now is only used to define $(apihtml_generated), but
      later on we're gonna reuse it.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      78b748b9
  2. 10 5月, 2019 6 次提交
  3. 09 5月, 2019 19 次提交
  4. 07 5月, 2019 4 次提交
  5. 06 5月, 2019 5 次提交