From cec2a2dacca7ac0307153fd071df17d821e8461b Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Tue, 14 Jul 2009 02:19:19 +0000 Subject: [PATCH] Remove READ_REQUIRE_RESIZEABLE flag from vg_read() interface - no users. The checks for RESIZEABLE_VG should now be inside the various functions that have to do such operations. Signed-off-by: Dave Wysochanski Acked-by: Alasdair G Kergon --- WHATS_NEW | 1 + lib/metadata/metadata-exported.h | 1 - lib/metadata/metadata.c | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 1b40bd1a5..5c2b12338 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.49 - ================================ + Refactor vgsplit and vgextend to remove READ_REQUIRE_RESIZEABLE flag. Changed exit() to _exit() after fork(); avoid flushing libc buffers twice. Fixed invalid type being passed as printf argument on Sparc64. Make cmd->cmd_line const. diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h index 21b1c7ef0..b2fbeba37 100644 --- a/lib/metadata/metadata-exported.h +++ b/lib/metadata/metadata-exported.h @@ -104,7 +104,6 @@ struct pv_segment; /* vg_read and vg_read_for_update flags */ #define READ_ALLOW_INCONSISTENT 0x00010000U #define READ_ALLOW_EXPORTED 0x00020000U -#define READ_REQUIRE_RESIZEABLE 0x00040000U /* A meta-flag, useful with toollib for_each_* functions. */ #define READ_FOR_UPDATE 0x00100000U diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index eb1192da1..ef1b6ff01 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -2994,9 +2994,6 @@ vg_t *vg_read(struct cmd_context *cmd, const char *vg_name, if (flags & READ_ALLOW_EXPORTED) status &= ~EXPORTED_VG; - if (flags & READ_REQUIRE_RESIZEABLE) - status |= RESIZEABLE_VG; - return _vg_lock_and_read(cmd, vg_name, vgid, lock_flags, status, flags); }