1. 08 6月, 2017 7 次提交
  2. 07 6月, 2017 29 次提交
  3. 06 6月, 2017 1 次提交
  4. 05 6月, 2017 3 次提交
    • M
      virFDStreamThread: Make sure we won't exceed @length · 5004f121
      Michal Privoznik 提交于
      There's a problem with current streams after I switched them from
      iohelper to thread implementation. Previously, iohelper made sure
      not to exceed specified @length resulting in the pipe EOF
      appearing at the exact right moment (the pipe was used to tunnel
      the data from the iohelper to the daemon). Anyway, when switching
      to thread I had to write the I/O code from scratch. Whilst doing
      that I took an inspiration from the iohelper code, but since the
      usage of pipe switched to slightly different meaning, there was
      no 1:1 relationship between the codes.
      
      Moreover, after introducing VIR_FDSTREAM_MSG_TYPE_HOLE, the
      condition that should made sure we won't exceed @length was
      completely wrong.
      
      The fix is to:
      
      a) account for holes for @length
      b) cap not just data sections but holes too (if @length would be
      exceeded)
      
      For this purpose, the condition needs to be brought closer to the
      code that handles holes and data sections.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      5004f121
    • J
      conf: only format <controller> as a pair tag when needed · bb74c66e
      Ján Tomko 提交于
      Make the decision based on the usage of childBuf buffer.
      
      This fixes the oddity in the test case introduced by commit c1c4d0d5
      where we would format an empty pair tag.
      bb74c66e
    • J
      conf: use a separate buffer for the subelements of <controller> · 5b96f37f
      Ján Tomko 提交于
      We need to decide whether to format <controller> as a single tag
      or if it has any subelements.
      
      Rewrite the function to use a separate buffer for subelements,
      to make adding new options easier.
      5b96f37f