mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
improve comment
This commit is contained in:
parent
25d1410592
commit
fd7d09e39a
@ -1454,7 +1454,12 @@ out:
|
|||||||
return r;
|
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)
|
int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s, unsigned origin_only, unsigned exclusive)
|
||||||
{
|
{
|
||||||
struct lv_activate_opts laopts = {
|
struct lv_activate_opts laopts = {
|
||||||
@ -1541,17 +1546,18 @@ out:
|
|||||||
return r;
|
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,
|
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 = {
|
struct lv_activate_opts laopts = {
|
||||||
.origin_only = origin_only,
|
.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,
|
.exclusive = exclusive,
|
||||||
.revert = revert
|
.revert = revert
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user