From 12e8972ba1ccbb50ad158a9ac0a02c72c88ca0bb Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 7 Jan 2002 22:36:12 +0000 Subject: [PATCH] If a device somehow became suspended, lvchange -ay now reactivates it. --- tools/lvchange.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/lvchange.c b/tools/lvchange.c index 6224b27c3..78049753d 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -176,6 +176,12 @@ static int lvchange_availability(struct logical_volume *lv) } } + if (lv_suspended(lv)) { + log_verbose("Reactivating logical volume %s", lv->name); + if (!lv_reactivate(lv)) + return 0; + } + return 1; } -- 2.43.5