mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Remove unused internal flag ACTIVATE_EXCL from the code
This commit is contained in:
parent
f50a76379a
commit
93a98c2672
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.86 -
|
Version 2.02.86 -
|
||||||
=================================
|
=================================
|
||||||
|
Remove unused internal flag ACTIVATE_EXCL from the code.
|
||||||
Remove useless test of ACTIVATE_EXCL in lv_add_mirrors() clustered code path.
|
Remove useless test of ACTIVATE_EXCL in lv_add_mirrors() clustered code path.
|
||||||
Use lv_activate_opts struct instead of MERGING status flag.
|
Use lv_activate_opts struct instead of MERGING status flag.
|
||||||
Use lv_activate_opts struct instead of ACTIVATE_EXCL status flag.
|
Use lv_activate_opts struct instead of ACTIVATE_EXCL status flag.
|
||||||
|
@ -1293,14 +1293,6 @@ static int _lv_resume(struct cmd_context *cmd, const char *lvid_s,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* When targets are activated exclusively in a cluster, the
|
|
||||||
* non-clustered target should be used. This only happens
|
|
||||||
* if ACTIVATE_EXCL is set in lv->status.
|
|
||||||
*/
|
|
||||||
if (laopts->exclusive)
|
|
||||||
lv->status |= ACTIVATE_EXCL;
|
|
||||||
|
|
||||||
if (!_lv_activate_lv(lv, laopts))
|
if (!_lv_activate_lv(lv, laopts))
|
||||||
goto_out;
|
goto_out;
|
||||||
|
|
||||||
|
@ -62,7 +62,6 @@ static const struct flag _lv_flags[] = {
|
|||||||
{VIRTUAL, NULL, 0},
|
{VIRTUAL, NULL, 0},
|
||||||
{SNAPSHOT, NULL, 0},
|
{SNAPSHOT, NULL, 0},
|
||||||
{MERGING, NULL, 0},
|
{MERGING, NULL, 0},
|
||||||
{ACTIVATE_EXCL, NULL, 0},
|
|
||||||
{CONVERTING, NULL, 0},
|
{CONVERTING, NULL, 0},
|
||||||
{PARTIAL_LV, NULL, 0},
|
{PARTIAL_LV, NULL, 0},
|
||||||
{POSTORDER_FLAG, NULL, 0},
|
{POSTORDER_FLAG, NULL, 0},
|
||||||
|
@ -62,7 +62,6 @@
|
|||||||
#define MIRROR_LOG 0x00020000U /* LV */
|
#define MIRROR_LOG 0x00020000U /* LV */
|
||||||
#define MIRROR_IMAGE 0x00040000U /* LV */
|
#define MIRROR_IMAGE 0x00040000U /* LV */
|
||||||
#define LV_NOTSYNCED 0x00080000U /* LV */
|
#define LV_NOTSYNCED 0x00080000U /* LV */
|
||||||
//#define ACTIVATE_EXCL 0x00100000U /* LV - internal use only */
|
|
||||||
//#define PRECOMMITTED 0x00200000U /* VG - internal use only */
|
//#define PRECOMMITTED 0x00200000U /* VG - internal use only */
|
||||||
#define CONVERTING 0x00400000U /* LV */
|
#define CONVERTING 0x00400000U /* LV */
|
||||||
|
|
||||||
|
@ -71,7 +71,6 @@
|
|||||||
//#define MIRROR_LOG 0x00020000U /* LV */
|
//#define MIRROR_LOG 0x00020000U /* LV */
|
||||||
//#define MIRROR_IMAGE 0x00040000U /* LV */
|
//#define MIRROR_IMAGE 0x00040000U /* LV */
|
||||||
//#define MIRROR_NOTSYNCED 0x00080000U /* LV */
|
//#define MIRROR_NOTSYNCED 0x00080000U /* LV */
|
||||||
#define ACTIVATE_EXCL 0x00100000U /* LV - internal use only */
|
|
||||||
#define PRECOMMITTED 0x00200000U /* VG - internal use only */
|
#define PRECOMMITTED 0x00200000U /* VG - internal use only */
|
||||||
//#define CONVERTING 0x00400000U /* LV */
|
//#define CONVERTING 0x00400000U /* LV */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user