X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/224c87aea0e899e313cb9bb6f62221d8a9fcab7e..308f5555dc4e49e2e2c734e03f7875bb9220f700:/host/usr/sbin/invirt-lvm diff --git a/host/usr/sbin/invirt-lvm b/host/usr/sbin/invirt-lvm index 78ce700..a2a6cc9 100755 --- a/host/usr/sbin/invirt-lvm +++ b/host/usr/sbin/invirt-lvm @@ -67,8 +67,8 @@ if subcommand == "lvremove": # it. There's not really anything sane to do with errors (since # this is running non-interactively), so let's just drop them on # the floor for now. - if os.fork() != 0: - call(["/bin/dd", "if=/dev/zero", "of=%s" % new_lvpath]) + if os.fork() == 0: + call(["/usr/bin/ionice", "-c", "2", "-n", "7", "/bin/dd", "if=/dev/zero", "of=%s" % new_lvpath]) call(["/sbin/lvchange", "-a", "n", new_lvpath]) call(["/sbin/lvchange", "-a", "ey", new_lvpath]) call(["/sbin/lvremove", "--force", new_lvpath])