Skip to content
Snippets Groups Projects
  1. Jan 26, 2013
    • Nikos Skalkotos's avatar
      Ommit using os.path.relpath · 29274f83
      Nikos Skalkotos authored
      The method has different behaviour in python 2.6 and python 2.7.
      In python 2.6, os.path.relpath('/proc', '/) will output '../proc'
      where in python 2.7 it will output 'proc'.
      29274f83
    • Nikos Skalkotos's avatar
      Support pyparted 3.4 · e62eb365
      Nikos Skalkotos authored
      Use length instead of getLength() to get the size in sectors of a
      device.
      e62eb365
  2. Jan 22, 2013
  3. Jan 21, 2013
  4. Jan 18, 2013
    • Nikos Skalkotos's avatar
      Completely exclude mpoints when running rsync · 252b2b5d
      Nikos Skalkotos authored
      We used to exclude mount point from rsync with options like this:
      
       --exclude mount/point/*
      
      This will copy the directory and leave out all files under it. In
      some cases, this causes problems because rsync will fail if it
      cannot stat the directory and some mount point will only return
      stat info to their owner and not root. Even if this wasn't the
      case, we cannot determine the real directory attributes. The stat
      syscall will return the attributes associated with the mount
      options. It's better to completely exclude those mpoints in rsync
      and create them explicitly after the command runs. We make them
      inherit the mode and the ownership of their parent directory.
      252b2b5d
    • Nikos Skalkotos's avatar
      Fix a bug in tmp dir removal · f6ea8d02
      Nikos Skalkotos authored
      snf-image-creator removed /var/tmp if the directory was empty
      f6ea8d02
    • Nikos Skalkotos's avatar
      Add missing rsync dependency in docs · aab4b154
      Nikos Skalkotos authored
      Add missing rsync dependency dependency in the install section of
      the documentation
      aab4b154
  5. Jan 16, 2013
  6. Jan 14, 2013
  7. Jan 11, 2013
  8. Jan 10, 2013
  9. Jan 04, 2013
  10. Jan 03, 2013
  11. Dec 31, 2012
    • Nikos Skalkotos's avatar
      Fix pep8 errors · 6228d45e
      Nikos Skalkotos authored
      6228d45e
    • Nikos Skalkotos's avatar
      Fix bugs in rsync module · d15368cc
      Nikos Skalkotos authored
       * Fix a bug where the parent process did not wait on the child
         processes.
       * Make sure that when updating the copy progress bar, at least
         0.1 seconds have passed. This guarantees that we do not experience
         any flickering in the progress bar.
      d15368cc
  12. 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
Loading