1. 17 3月, 2016 11 次提交
  2. 16 3月, 2016 9 次提交
    • E
      virlog: Refactor virLogParseOutputs · 0b231195
      Erik Skultety 提交于
      The problem with the original virLogParseOutputs method was that the way it
      parsed the input, walking the string char by char and using absolute jumps
      depending on the virLogDestination type, was rather complicated to read.
      This patch utilizes virStringSplit method twice, first time to filter out any
      spaces and split the input to individual log outputs and then for each
      individual output to tokenize it by to the parts according to our
      PRIORITY:DESTINATION?(:DATA) format. Also, to STREQLEN for matching destination
      was replaced with virDestinationTypeFromString call.
      0b231195
    • E
      virlog: Introduce Type{To,From}String for virLogDestination · 034337fb
      Erik Skultety 提交于
      In order to refactor the ugly virLogParseOutputs method, this is a neat way of
      finding out whether the destination type (in the form of a string) user
      provided is a valid one. As a bonus, if it turns out it is valid, we get the
      actual enum which will later be passed to any of virLogAddOutput methods right
      away.
      034337fb
    • E
      tests: Add a new test for logging outputs parser · 6bd9758e
      Erik Skultety 提交于
      Test for parser's functionality.
      6bd9758e
    • E
      tests: Slightly tweak virlogtest · 814b2ec6
      Erik Skultety 提交于
      Patch adds a generic DO_TEST_FULL macro, some PASS/FAIL macros to better
      visually distinguish tests that should fail and tests that should pass. Also,
      some cosmetic changes like renames and direct call to fprintf is replaced with
      our VIR_TEST_DEBUG macro, as using testutils should be our preferred way of
      reporting errors in tests.
      814b2ec6
    • M
      nodedev: Shorten match condition · c1276177
      Martin Kletzander 提交于
      Just a cleanup I stumbled upon in one of my older branches I did when
      browsing through some code and forgot to send it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      c1276177
    • M
      qemu: Don't access uninitialized memory · 71fa2eb2
      Martin Kletzander 提交于
      In qemuConnectDomainXMLToNative() we set up the monitor, but we never
      memset() it to zeros.  Thanks to the introduction of the logfile
      parameter of chardevs (and the logfile member of the struct), we started
      checking whether that's non-NULL and that exposed this old error.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      71fa2eb2
    • C
      qemu: Don't overwrite DomainSave errors · 26f3d9c2
      Cole Robinson 提交于
      These functions already report fine grained errors, there's no
      benefit to overwriting the error here.
      26f3d9c2
    • D
      qemuDomainRevertToSnapshot: save domain configuration · c5e81090
      Dmitry Andreev 提交于
      Reverting to a snapshot may change domain configuration. New
      configuration should be saved if domain has persistent flag.
      
      VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT is emitted in case of
      configuration update.
      c5e81090
    • D
      Introduce new VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT sub-event · 8047d457
      Dmitry Andreev 提交于
      VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT event should be emitted
      when domain configuration was changed on revert to snapshot.
      8047d457
  3. 15 3月, 2016 11 次提交
  4. 14 3月, 2016 9 次提交