1. 24 6月, 2017 1 次提交
    • J
      util: Force reading of meta data to get encryption capacity value · 5431055d
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1371892
      
      As it turns out the volume create, build, and refresh path was not peeking
      at the meta data, so immediately after a create operation the value displayed
      for capacity was still incorrect. However, if a pool refresh was done the
      correct value was fetched as a result of a meta data peek.
      
      The reason is it seems historically if the file type is RAW then peeking
      at the file just took the physical value for the capacity. However, since
      we know if it's an encrypted file, then peeking at the meta data will be
      required in order to get a true capacity value.
      
      So check for encryption in the source and if present, use the meta data
      in order to fill in the capacity value and set the payload_offset.
      5431055d
  2. 23 6月, 2017 1 次提交
  3. 22 6月, 2017 5 次提交
  4. 20 6月, 2017 10 次提交
  5. 19 6月, 2017 3 次提交
  6. 16 6月, 2017 1 次提交
  7. 14 6月, 2017 1 次提交
  8. 13 6月, 2017 1 次提交
  9. 12 6月, 2017 1 次提交
  10. 08 6月, 2017 1 次提交
  11. 05 6月, 2017 1 次提交
    • 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
  12. 02 6月, 2017 2 次提交
  13. 30 5月, 2017 1 次提交
  14. 27 5月, 2017 1 次提交
  15. 26 5月, 2017 2 次提交
  16. 25 5月, 2017 1 次提交
  17. 23 5月, 2017 1 次提交
  18. 22 5月, 2017 1 次提交
  19. 19 5月, 2017 1 次提交
  20. 18 5月, 2017 4 次提交