[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 2/2] Pass --force to lvresize so it doesn't ask for confirmation.



Looks ok,

Regards,

Hans


On 05/29/2009 09:38 PM, David Lehman wrote:
---
  storage/devicelibs/lvm.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py
index 8cd6370..2196170 100644
--- a/storage/devicelibs/lvm.py
+++ b/storage/devicelibs/lvm.py
@@ -371,7 +371,7 @@ def lvremove(vg_name, lv_name):

  def lvresize(vg_name, lv_name, size):
      args = ["lvresize"] + \
-            ["-L", "%dm" % size] + \
+            ["--force", "-L", "%dm" % size] + \
              config_args + \
              ["%s/%s" % (vg_name, lv_name)]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]