From 0ff680d9b30ea7bc90a271045fb215abab75e83e Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Thu, 2 Apr 2009 01:48:08 -0400 Subject: [PATCH 1/1] In invirt-remote: * ionice the dd to wipe out deleted LVs so it doesn't hose the system. svn path=/trunk/packages/invirt-remote/; revision=2286 --- debian/changelog | 6 ++++++ debian/control | 2 +- host/usr/sbin/invirt-lvm | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 486cb64..e4b0d4d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-remote (0.3.12) unstable; urgency=low + + * ionice the dd to wipe out deleted LVs so it doesn't hose the system. + + -- Evan Broder Thu, 02 Apr 2009 01:46:38 -0400 + invirt-remote (0.3.11) unstable; urgency=low * Print errors to stderr on nocreate and nolvm so that the website diff --git a/debian/control b/debian/control index 50e6222..c683795 100644 --- a/debian/control +++ b/debian/control @@ -22,7 +22,7 @@ Description: Invirt remote-control server Package: invirt-remote-host Architecture: all Depends: ${misc:Depends}, remctl-server, invirt-console-host, - invirt-vnc-server, python-cjson, python-yaml + invirt-vnc-server, python-cjson, python-yaml, util-linux Description: Installs the Invirt host remctl configuration This is the remctl configuration for an Invirt host. It allows any commands to be run from the Invirt remote server 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]) -- 1.7.9.5