mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Return status from _lv_activate and friends.
Alasdair, I think this is right (and I need it) but you may like to check.
This commit is contained in:
parent
426bc429ef
commit
584404f8f4
@ -238,7 +238,7 @@ int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s)
|
||||
}
|
||||
|
||||
if (info.exists && !info.suspended)
|
||||
_lv_suspend(lv);
|
||||
return _lv_suspend(lv);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -262,7 +262,7 @@ int lv_resume_if_active(struct cmd_context *cmd, const char *lvid_s)
|
||||
}
|
||||
|
||||
if (info.exists && info.suspended)
|
||||
_lv_activate(lv);
|
||||
return _lv_activate(lv);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -286,7 +286,7 @@ int lv_deactivate(struct cmd_context *cmd, const char *lvid_s)
|
||||
}
|
||||
|
||||
if (info.exists)
|
||||
_lv_deactivate(lv);
|
||||
return _lv_deactivate(lv);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -310,7 +310,7 @@ int lv_activate(struct cmd_context *cmd, const char *lvid_s)
|
||||
}
|
||||
|
||||
if (!info.exists || info.suspended)
|
||||
_lv_activate(lv);
|
||||
return _lv_activate(lv);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user