Skip to content
Snippets Groups Projects
  1. Dec 17, 2014
  2. Dec 15, 2014
  3. Nov 04, 2014
    • Nikos Skalkotos's avatar
      Handle the case where qemu-nbd is missing · 430b2627
      Nikos Skalkotos authored
      If qemu-nbd is not present at the host system, only accept raw images
      as input media. This is a workaround for ancient systems like CentOS 6.x
      where the nbd module is not compiled in the default kernel and the qemu
      package does not include the qemu-nbd executable.
      430b2627
  4. Nov 03, 2014
  5. Sep 12, 2014
    • Nikos Skalkotos's avatar
      Reference disk.file in the begging of snapshot() · fed9ea24
      Nikos Skalkotos authored
      If you print the snapshotting message before disk.file is referenced,
      you may end up outputting messages like this:
      
      Snapshotting media source ... Examining source media `<image_file>' ...
      
      Instead of:
      
      Examining source media `<image_file>' ... looks like a block device
      Snapshotting media source ... done
      fed9ea24
  6. Sep 10, 2014
    • Nikos Skalkotos's avatar
      Use qcow2 to snapshot image files · d1000f25
      Nikos Skalkotos authored
      Only use the device mapper when snapshotting block devices. If the
      input media is a regular file, then create a qcow2 image and define
      the original media as backing_file.
      d1000f25
    • Nikos Skalkotos's avatar
      Make block device size equal to virtual size · b680d3a9
      Nikos Skalkotos authored
      When snapshotting make sure that the size of the underlying block
      device is equal to the input media's virtual size. If the input media
      is not raw, the QEMU image driver may grow the underlying image. The
      block device should be big enough to allow this kind of operations.
      b680d3a9
  7. Sep 09, 2014
  8. Sep 04, 2014
  9. Aug 05, 2014
  10. Jul 15, 2014
    • Nikos Skalkotos's avatar
      Add device attribute in Disk class · fcc4df5d
      Nikos Skalkotos authored
      This attribute hosts the block device associated with this Disk
      instance. This can be the original media if the source media is a block
      device, a loop device of the original media if the original media is a
      regular file or a loop device of a temporary object if the original
      media is a directory.
      fcc4df5d
  11. Jun 10, 2014
    • Nikos Skalkotos's avatar
      Switch license to GPLv3 · 822ccd58
      Nikos Skalkotos authored
      According to the decision of the GRNET Board of Directors,
      switch license to GPLv3.
      
      This commit will be propagated to the release
      and master branches based on git flow, and the next
      release will be licensed as GPLv3.
      822ccd58
  12. Jul 30, 2013
  13. Jun 11, 2013
    • Nikos Skalkotos's avatar
      Code Cleanup · 121f3bc0
      Nikos Skalkotos authored
       * Prefix all private methods with _
       * Write missing docstrings
       * Move all public methods above the private ones
       * Add module docstrings where missing
       * Define source code encodings on all modules
      121f3bc0
  14. May 27, 2013
  15. Apr 25, 2013
  16. Mar 28, 2013
  17. Mar 26, 2013
    • Nikos Skalkotos's avatar
      Rename DiskDevice class to Image · f5174d2c
      Nikos Skalkotos authored
      Rename DiskDevice class to Image and move it to a seperate module.
      Also, don't let the user access the os_type/* modules directly. In
      Image class create the `os' member variable that will host an
      appropriate instance of one of the OSBase classes.
      f5174d2c
  18. Mar 22, 2013
  19. Mar 06, 2013
  20. Jan 18, 2013
  21. Jan 16, 2013
    • Nikos Skalkotos's avatar
      Support python-sendfile 2.x · 717b0434
      Nikos Skalkotos authored
      Support both versions (1.2.x and 2.x) of python-sendfile. In
      v1.2.x (py-sendfile) the returning value of the sendfile function is a
      tuple, where in v2.x (pysendfile) it's a simple integer.
      717b0434
  22. Jan 10, 2013
  23. Jan 03, 2013
  24. Dec 31, 2012
  25. Dec 30, 2012
    • Nikos Skalkotos's avatar
      Retry cleanup commands if they fail · f3845095
      Nikos Skalkotos authored
      Add a new try_fail_repeat function that wraps cleanup system commands
      and retries them if they fail. There are cases where commands like
      dmsetup, umount and losetup -d may fail with device is busy. In most
      of the cases, sleeping for halve a second and retrying does the job.
      f3845095
    • Nikos Skalkotos's avatar
      567891a6
    • Nikos Skalkotos's avatar
      Remove progress bar for guestfs.launch() progress · 923d52df
      Nikos Skalkotos authored
      In Guestfs you get notifications about progress on some functions like
      launch() by registring callback functions. When using guestfs from python,
      this is fragile. If the callback functions raises an exception, you end up
      with segmentation fault. It is better to completely remove the progress
      monitoring from launch().
      923d52df
  26. Dec 28, 2012
  27. Dec 21, 2012
  28. Dec 20, 2012
  29. Dec 19, 2012
  30. Dec 13, 2012
  31. Dec 11, 2012
Loading