From: Alasdair Kergon Date: Wed, 26 Oct 2005 14:13:52 +0000 (+0000) Subject: switch in new suspend code (untested) X-Git-Tag: v2_02_91~4723 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b427ecee79371850cff0428f00ffb1c12f6627d4;p=lvm2.git switch in new suspend code (untested) --- diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 2ade5a459..e18fcfed7 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -2185,11 +2185,6 @@ int dev_manager_activate(struct dev_manager *dm, struct logical_volume *lv) return _action(dm, lv, ACTIVATE); } -int dev_manager_suspend(struct dev_manager *dm, struct logical_volume *lv) -{ - return _action(dm, lv, SUSPEND); -} - int dev_manager_lv_mknodes(const struct logical_volume *lv) { char *name; @@ -2330,6 +2325,7 @@ out: return r; } + int dev_manager_deactivate(struct dev_manager *dm, struct logical_volume *lv) { int r; @@ -2341,6 +2337,11 @@ int dev_manager_deactivate(struct dev_manager *dm, struct logical_volume *lv) return r; } +int dev_manager_suspend(struct dev_manager *dm, struct logical_volume *lv) +{ + return _tree_action(dm, lv, SUSPEND); +} + /* * Does device use VG somewhere in its construction? * Returns 1 if uncertain.