X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/d2b35954e0ed62510c5cc8e24ab5e1de481d663e..0ff680d9b30ea7bc90a271045fb215abab75e83e:/host/usr/sbin/invirt-lvm?ds=sidebyside diff --git a/host/usr/sbin/invirt-lvm b/host/usr/sbin/invirt-lvm index 22a7805..bafcec7 100755 --- a/host/usr/sbin/invirt-lvm +++ b/host/usr/sbin/invirt-lvm @@ -68,7 +68,7 @@ if subcommand == "lvremove": # 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]) + call(["/usr/bin/ionice", "-c", "3", "/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])