1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Remove unused internal flag ACTIVATE_EXCL from the code

This commit is contained in:
Zdenek Kabelac 2011-06-17 14:30:58 +00:00
parent f50a76379a
commit 93a98c2672
5 changed files with 1 additions and 11 deletions

View File

@ -1,5 +1,6 @@
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.
Use lv_activate_opts struct instead of MERGING status flag.
Use lv_activate_opts struct instead of ACTIVATE_EXCL status flag.

View File

@ -1293,14 +1293,6 @@ static int _lv_resume(struct cmd_context *cmd, const char *lvid_s,
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))
goto_out;

View File

@ -62,7 +62,6 @@ static const struct flag _lv_flags[] = {
{VIRTUAL, NULL, 0},
{SNAPSHOT, NULL, 0},
{MERGING, NULL, 0},
{ACTIVATE_EXCL, NULL, 0},
{CONVERTING, NULL, 0},
{PARTIAL_LV, NULL, 0},
{POSTORDER_FLAG, NULL, 0},

View File

@ -62,7 +62,6 @@
#define MIRROR_LOG 0x00020000U /* LV */
#define MIRROR_IMAGE 0x00040000U /* LV */
#define LV_NOTSYNCED 0x00080000U /* LV */
//#define ACTIVATE_EXCL 0x00100000U /* LV - internal use only */
//#define PRECOMMITTED 0x00200000U /* VG - internal use only */
#define CONVERTING 0x00400000U /* LV */

View File

@ -71,7 +71,6 @@
//#define MIRROR_LOG 0x00020000U /* LV */
//#define MIRROR_IMAGE 0x00040000U /* LV */
//#define MIRROR_NOTSYNCED 0x00080000U /* LV */
#define ACTIVATE_EXCL 0x00100000U /* LV - internal use only */
#define PRECOMMITTED 0x00200000U /* VG - internal use only */
//#define CONVERTING 0x00400000U /* LV */