1. 13 3月, 2019 11 次提交
  2. 12 3月, 2019 5 次提交
  3. 11 3月, 2019 5 次提交
  4. 08 3月, 2019 3 次提交
    • P
      conf: fix title and description for virDomainSetMetadata API · e387afeb
      Pavel Hrdina 提交于
      If we pass XML to virDomainDefineXML API with these two elements:
      
          ...
          <title></title>
          <description></description>
          ...
      
      libvirt correctly ignores these two elements and they will not appear
      in the parsed XML.
      
      However, if we use virDomainSetMetadata API and with "" as value for
      title or description we will end up with the parsed XML that contains
      these empty elements.
      
      Let's fix the behavior of this API to behave the same as
      virDomainDefineXML.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1518042Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      e387afeb
    • E
      snapshot: Give virDomainSnapshotDefFormat its own flags · c5029559
      Eric Blake 提交于
      virDomainSnapshotDefFormat currently takes two sets of knobs:
      an 'unsigned int flags' argument that can currently just be
      VIR_DOMAIN_DEF_FORMAT_SECURE, and an 'int internal' argument used as
      a bool to determine whether to output an additional element.  It
      then reuses the 'flags' knob to call into virDomainDefFormatInternal(),
      which takes a different set of flags. In fact, prior to commit 0ecd6851
      (1.2.12), the 'flags' argument actually took the public
      VIR_DOMAIN_XML_SECURE, which was even more confusing.  Let's borrow
      from the style of that earlier commit, by introducing a function
      for translating from the public flags (VIR_DOMAIN_SNAPSHOT_XML_SECURE
      was just recently introduced) into a new enum specific to snapshot
      formatting, and adjust all callers to use snapshot-specific enum
      values when formatting, and where the formatter now uses a new
      variable 'domainflags' to make it obvious when we are translating
      from snapshot flags back to domain flags.  We don't even have to
      use the conversion function for drivers that don't accept the
      public VIR_DOMAIN_SNAPSHOT_XML_SECURE flag.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      c5029559
    • A
      util: Make virStringStripSuffix() return bool · 956817ef
      Andrea Bolognani 提交于
      While this function is not, strictly speaking, a predicate,
      it still mostly behaves like one as evidenced by the vast
      majority of its callers, so using bool rather than int as
      the return type makes sense.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      ACKed-by: NPeter Krempa <pkrempa@redhat.com>
      956817ef
  5. 07 3月, 2019 11 次提交
  6. 06 3月, 2019 1 次提交
  7. 05 3月, 2019 4 次提交