From 3e8e48f9d0b424e4850666823ec178a8ad4279fa Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 20 Jan 2012 03:46:52 +0000 Subject: [PATCH] improve comment --- lib/activate/activate.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/activate/activate.c b/lib/activate/activate.c index e33d46945..edb9fa964 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -1454,7 +1454,12 @@ out: return r; } -/* Returns success if the device is not active */ +/* + * In a cluster, set exclusive to indicate that only one node is using the + * device. Any preloaded tables may then use non-clustered targets. + * + * Returns success if the device is not active + */ int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s, unsigned origin_only, unsigned exclusive) { struct lv_activate_opts laopts = { @@ -1541,17 +1546,18 @@ out: return r; } -/* Returns success if the device is not active */ +/* + * In a cluster, set exclusive to indicate that only one node is using the + * device. Any tables loaded may then use non-clustered targets. + * + * Returns success if the device is not active + */ int lv_resume_if_active(struct cmd_context *cmd, const char *lvid_s, - unsigned origin_only, unsigned exclusive, unsigned revert) + unsigned origin_only, unsigned exclusive, + unsigned revert) { struct lv_activate_opts laopts = { .origin_only = origin_only, - /* - * When targets are activated exclusively in a cluster, the - * non-clustered target should be used. This only happens - * if exclusive is set. - */ .exclusive = exclusive, .revert = revert };