Skip to contentSkip to conversation

master - Remove lvm1 and pool disk formats

PATCH David Teigland 1 participant 1 message Apr 30, 2018 Library code

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c1cd18f21ef233fa19e948cf130e97c005a349ad
Commit:        c1cd18f21ef233fa19e948cf130e97c005a349ad
Parent:        029a76b4f830750cc312c062d77cdaa4d1a1bba9
Author:        David Teigland <[email protected]>
AuthorDate:    Fri Apr 27 16:22:46 2018 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Mon Apr 30 16:55:02 2018 -0500

Remove lvm1 and pool disk formats

There are likely more bits of code that can be removed, e.g. lvm1/pool-specific bits of code that were identified using FMT flags.

The vgconvert command can likely be reduced further.

The lvm1-specific config settings should probably have some other fields set for proper deprecation.

---
 configure.ac                      |   58 ---
 daemons/clvmd/clvmd-command.c     |    1 -
 daemons/clvmd/lvm-functions.c     |   10 -
 daemons/clvmd/lvm-functions.h     |    1 -
 daemons/lvmetad/lvmetad-client.h  |    1 -
 daemons/lvmetad/lvmetad-core.c    |    9 +-
 lib/Makefile.in                   |   29 --
 lib/activate/activate.c           |   13 -
 lib/activate/activate.h           |    1 -
 lib/cache/lvmcache.c              |    4 -
 lib/cache/lvmetad.c               |   23 +-
 lib/commands/toolcontext.c        |   22 -
 lib/config/config_settings.h      |   20 +-
 lib/display/display.c             |    9 +-
 lib/format1/.exported_symbols     |    1 -
 lib/format1/Makefile.in           |   33 --
 lib/format1/disk-rep.c            |  761 -------------------------------------
 lib/format1/disk-rep.h            |  250 ------------
 lib/format1/format1.c             |  631 ------------------------------
 lib/format1/format1.h             |   29 --
 lib/format1/import-export.c       |  680 ---------------------------------
 lib/format1/import-extents.c      |  377 ------------------
 lib/format1/layout.c              |  172 ---------
 lib/format1/lvm1-label.c          |  129 -------
 lib/format1/lvm1-label.h          |   23 --
 lib/format1/vg_number.c           |   60 ---
 lib/format_pool/.exported_symbols |    1 -
 lib/format_pool/Makefile.in       |   30 --
 lib/format_pool/disk_rep.c        |  409 --------------------
 lib/format_pool/disk_rep.h        |  156 --------
 lib/format_pool/format_pool.c     |  338 ----------------
 lib/format_pool/format_pool.h     |   28 --
 lib/format_pool/import_export.c   |  285 --------------
 lib/format_pool/pool_label.c      |  104 -----
 lib/format_pool/pool_label.h      |   23 --
 lib/format_pool/sptype_names.h    |   42 --
 lib/format_text/export.c          |    2 -
 lib/format_text/format-text.c     |    4 +-
 lib/format_text/import_vsn1.c     |    9 +-
 lib/locking/locking.c             |   40 --
 lib/metadata/lv_manip.c           |   26 --
 lib/metadata/metadata-exported.h  |   10 +-
 lib/metadata/metadata.c           |   18 +-
 lib/metadata/segtype.h            |    2 +-
 lib/metadata/snapshot_manip.c     |   11 -
 lib/metadata/vg.c                 |   17 +-
 lib/metadata/vg.h                 |    1 -
 lib/report/report.c               |    4 +-
 lib/striped/striped.c             |    2 +-
 man/vgconvert.8_des               |    7 +-
 test/shell/format-lvm1.sh         |   38 --
 test/shell/lvm1-basic.sh          |   36 --
 test/shell/snapshot-lvm1.sh       |   35 --
 tools/args.h                      |    3 +-
 tools/lvconvert.c                 |    5 -
 tools/lvmcmdline.c                |   58 +---
 tools/pvscan.c                    |    5 +-
 tools/stub.h                      |    1 -
 tools/toollib.c                   |   29 +--
 tools/vals.h                      |    4 +-
 tools/vgchange.c                  |   10 -
 tools/vgconvert.c                 |   53 +--
 tools/vgscan.c                    |    4 +-
 63 files changed, 51 insertions(+), 5146 deletions(-)
configure.ac +0 -58
index 69b97e0..811357f 100644
@@ -283,58 +283,6 @@ AC_MSG_RESULT($MANGLING)
 AC_DEFINE_UNQUOTED([DEFAULT_DM_NAME_MANGLING], $mangling, [Define default name mangling behaviour])
 
 ################################################################################
-dnl -- LVM1 tool fallback option
-AC_MSG_CHECKING(whether to enable lvm1 fallback)
-AC_ARG_ENABLE(lvm1_fallback,
-	      AC_HELP_STRING([--enable-lvm1_fallback],
-			     [use this to fall back and use LVM1 binaries if
-			      device-mapper is missing from the kernel]),
-	      LVM1_FALLBACK=$enableval, LVM1_FALLBACK=no)
-AC_MSG_RESULT($LVM1_FALLBACK)
-
-if test "$LVM1_FALLBACK" = yes; then
-	DEFAULT_FALLBACK_TO_LVM1=1
-	AC_DEFINE([LVM1_FALLBACK], 1, [Define to 1 if 'lvm' should fall back to using LVM1 binaries if device-mapper is missing from the kernel])
-else
-	DEFAULT_FALLBACK_TO_LVM1=0
-fi
-AC_DEFINE_UNQUOTED(DEFAULT_FALLBACK_TO_LVM1, [$DEFAULT_FALLBACK_TO_LVM1],
-		   [Fall back to LVM1 by default if device-mapper is missing from the kernel.])
-
-################################################################################
-dnl -- format1 inclusion type
-AC_MSG_CHECKING(whether to include support for lvm1 metadata)
-AC_ARG_WITH(lvm1,
-	    AC_HELP_STRING([--with-lvm1=TYPE],
-			   [LVM1 metadata support: internal/shared/none [internal]]),
-	    LVM1=$withval, LVM1=internal)
-
-AC_MSG_RESULT($LVM1)
-
-case "$LVM1" in
-  none|shared) ;;
-  internal) AC_DEFINE([LVM1_INTERNAL], 1,
-		      [Define to 1 to include built-in support for LVM1 metadata.]) ;;
-  *) AC_MSG_ERROR([--with-lvm1 parameter invalid]) ;;
-esac
-
-################################################################################
-dnl -- format_pool inclusion type
-AC_MSG_CHECKING(whether to include support for GFS pool metadata)
-AC_ARG_WITH(pool,
-	    AC_HELP_STRING([--with-pool=TYPE],
-			   [GFS pool read-only support: internal/shared/none [internal]]),
-	    POOL=$withval, POOL=internal)
-AC_MSG_RESULT($POOL)
-
-case "$POOL" in
-  none|shared) ;;
-  internal) AC_DEFINE([POOL_INTERNAL], 1,
-		      [Define to 1 to include built-in support for GFS pool metadata.]) ;;
-  *) AC_MSG_ERROR([--with-pool parameter invalid])
-esac
-
-################################################################################
 dnl -- cluster_locking inclusion type
 AC_MSG_CHECKING(whether to include support for cluster locking)
 AC_ARG_WITH(cluster,
@@ -2033,7 +1981,6 @@ AC_SUBST(DEFAULT_CACHE_SUBDIR)
 AC_SUBST(DEFAULT_DATA_ALIGNMENT)
 AC_SUBST(DEFAULT_DM_RUN_DIR)
 AC_SUBST(DEFAULT_LOCK_DIR)
-AC_SUBST(DEFAULT_FALLBACK_TO_LVM1)
 AC_SUBST(DEFAULT_MIRROR_SEGTYPE)
 AC_SUBST(DEFAULT_PID_DIR)
 AC_SUBST(DEFAULT_PROFILE_SUBDIR)
@@ -2064,8 +2011,6 @@ AC_SUBST(JOBS)
 AC_SUBST(LDDEPS)
 AC_SUBST(LIBS)
 AC_SUBST(LIB_SUFFIX)
-AC_SUBST(LVM1)
-AC_SUBST(LVM1_FALLBACK)
 AC_SUBST(LVM_VERSION)
 AC_SUBST(LVM_LIBAPI)
 AC_SUBST(LVM_MAJOR)
@@ -2082,7 +2027,6 @@ AC_SUBST(OCF)
 AC_SUBST(OCFDIR)
 AC_SUBST(ODIRECT)
 AC_SUBST(PKGCONFIG)
-AC_SUBST(POOL)
 AC_SUBST(M_LIBS)
 AC_SUBST(PTHREAD_LIBS)
 AC_SUBST(PYTHON2)
@@ -2186,8 +2130,6 @@ conf/command_profile_template.profile
 conf/metadata_profile_template.profile
 include/Makefile
 lib/Makefile
-lib/format1/Makefile
-lib/format_pool/Makefile
 lib/locking/Makefile
 include/lvm-version.h
 libdaemon/Makefile
daemons/clvmd/clvmd-command.c +0 -1
index 2971ecb..ce7f500 100644
@@ -108,7 +108,6 @@ int do_command(struct local_client *client, struct clvm_header *msg, int msglen,
 		lock_flags = args[1];
 		lockname = &args[2];
 		/* Check to see if the VG is in use by LVM1 */
-		status = do_check_lvm1(lockname);
 		do_lock_vg(lock_cmd, lock_flags, lockname);
 		break;
 
daemons/clvmd/lvm-functions.c +0 -10
index 7e7b992..3bb00d3 100644
@@ -639,16 +639,6 @@ int post_lock_lv(unsigned char command, unsigned char lock_flags,
 	return 0;
 }
 
-/* Check if a VG is in use by LVM1 so we don't stomp on it */
-int do_check_lvm1(const char *vgname)
-{
-	int status;
-
-	status = check_lvm1_vg_inactive(cmd, vgname);
-
-	return status == 1 ? 0 : EBUSY;
-}
-
 int do_refresh_cache(void)
 {
 	DEBUGLOG("Refreshing context\n");
daemons/clvmd/lvm-functions.h +0 -1
index eac966f..6785997 100644
@@ -25,7 +25,6 @@ extern int do_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
 extern const char *do_lock_query(char *resource);
 extern int post_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
 			char *resource);
-extern int do_check_lvm1(const char *vgname);
 extern int do_refresh_cache(void);
 extern int init_clvm(struct dm_hash_table *excl_uuid);
 extern void destroy_lvm(void);
daemons/lvmetad/lvmetad-client.h +0 -1
index a2adfe6..be2623a 100644
@@ -22,7 +22,6 @@
 #define LVMETAD_TOKEN_UPDATE_IN_PROGRESS "update in progress"
 
 #define LVMETAD_DISABLE_REASON_DIRECT		"DIRECT"
-#define LVMETAD_DISABLE_REASON_LVM1		"LVM1"
 #define LVMETAD_DISABLE_REASON_DUPLICATES	"DUPLICATES"
 #define LVMETAD_DISABLE_REASON_VGRESTORE	"VGRESTORE"
 #define LVMETAD_DISABLE_REASON_REPAIR		"REPAIR"
daemons/lvmetad/lvmetad-core.c +3 -6
index f4f5f42..72473d7 100644
@@ -200,12 +200,12 @@ struct vg_info {
 #define GLFL_INVALID                   0x00000001
 #define GLFL_DISABLE                   0x00000002
 #define GLFL_DISABLE_REASON_DIRECT     0x00000004
-#define GLFL_DISABLE_REASON_LVM1       0x00000008
+				    /* 0x00000008 */
 #define GLFL_DISABLE_REASON_DUPLICATES 0x00000010
 #define GLFL_DISABLE_REASON_VGRESTORE  0x00000020
 #define GLFL_DISABLE_REASON_REPAIR     0x00000040
 
-#define GLFL_DISABLE_REASON_ALL (GLFL_DISABLE_REASON_DIRECT | GLFL_DISABLE_REASON_REPAIR | GLFL_DISABLE_REASON_LVM1 | GLFL_DISABLE_REASON_DUPLICATES | GLFL_DISABLE_REASON_VGRESTORE)
+#define GLFL_DISABLE_REASON_ALL (GLFL_DISABLE_REASON_DIRECT | GLFL_DISABLE_REASON_REPAIR | GLFL_DISABLE_REASON_DUPLICATES | GLFL_DISABLE_REASON_VGRESTORE)
 
 #define VGFL_INVALID 0x00000001
 
@@ -2369,8 +2369,6 @@ static response set_global_info(lvmetad_state *s, request r)
 			reason_flags |= GLFL_DISABLE_REASON_DIRECT;
 		if (strstr(reason, LVMETAD_DISABLE_REASON_REPAIR))
 			reason_flags |= GLFL_DISABLE_REASON_REPAIR;
-		if (strstr(reason, LVMETAD_DISABLE_REASON_LVM1))
-			reason_flags |= GLFL_DISABLE_REASON_LVM1;
 		if (strstr(reason, LVMETAD_DISABLE_REASON_DUPLICATES))
 			reason_flags |= GLFL_DISABLE_REASON_DUPLICATES;
 		if (strstr(reason, LVMETAD_DISABLE_REASON_VGRESTORE))
@@ -2429,10 +2427,9 @@ static response get_global_info(lvmetad_state *s, request r)
 	pid = (int)daemon_request_int(r, "pid", 0);
 
 	if (s->flags & GLFL_DISABLE) {
-		snprintf(reason, REASON_BUF_SIZE, "%s%s%s%s%s",
+		snprintf(reason, REASON_BUF_SIZE, "%s%s%s%s",
 			 (s->flags & GLFL_DISABLE_REASON_DIRECT)     ? LVMETAD_DISABLE_REASON_DIRECT "," : "",
 			 (s->flags & GLFL_DISABLE_REASON_REPAIR)     ? LVMETAD_DISABLE_REASON_REPAIR "," : "",
-			 (s->flags & GLFL_DISABLE_REASON_LVM1)       ? LVMETAD_DISABLE_REASON_LVM1 "," : "",
 			 (s->flags & GLFL_DISABLE_REASON_DUPLICATES) ? LVMETAD_DISABLE_REASON_DUPLICATES "," : "",
 			 (s->flags & GLFL_DISABLE_REASON_VGRESTORE)  ? LVMETAD_DISABLE_REASON_VGRESTORE "," : "");
 	}
lib/Makefile.in +0 -29
index e532626..8b87662 100644
@@ -16,14 +16,6 @@ srcdir = @srcdir@
 top_srcdir = @top_srcdir@
 top_builddir = @top_builddir@
 
-ifeq ("@LVM1@", "shared")
-  SUBDIRS = format1
-endif
-
-ifeq ("@POOL@", "shared")
-  SUBDIRS += format_pool
-endif
-
 ifeq ("@CLUSTER@", "shared")
   SUBDIRS += locking
 endif
@@ -112,25 +104,6 @@ SOURCES =\
 	uuid/uuid.c \
 	zero/zero.c
 
-ifeq ("@LVM1@", "internal")
-  SOURCES +=\
-	format1/disk-rep.c \
-	format1/format1.c \
-	format1/import-export.c \
-	format1/import-extents.c \
-	format1/layout.c \
-	format1/lvm1-label.c \
-	format1/vg_number.c
-endif
-
-ifeq ("@POOL@", "internal")
-  SOURCES +=\
-	format_pool/disk_rep.c \
-	format_pool/format_pool.c \
-	format_pool/import_export.c \
-	format_pool/pool_label.c
-endif
-
 ifeq ("@CLUSTER@", "internal")
   SOURCES += locking/cluster_locking.c
 endif
@@ -167,8 +140,6 @@ LIB_STATIC = $(LIB_NAME).a
 
 ifeq ($(MAKECMDGOALS),distclean)
   SUBDIRS =\
-	format1 \
-	format_pool \
 	notify \
 	locking
 endif
lib/activate/activate.c +0 -13
index a7113f1..2d00dc6 100644
@@ -37,19 +37,6 @@
 
 #define _skip(fmt, args...) log_very_verbose("Skipping: " fmt , ## args)
 
-int lvm1_present(struct cmd_context *cmd)
-{
-	static char path[PATH_MAX];
-
-	if (dm_snprintf(path, sizeof(path), "%s/lvm/global", cmd->proc_dir)
-	    < 0) {
-		log_error("LVM1 proc global snprintf failed");
-		return 0;
-	}
-
-	return (path_exists(path)) ? 1 : 0;
-}
-
 int list_segment_modules(struct dm_pool *mem, const struct lv_segment *seg,
 			 struct dm_list *modules)
 {
lib/activate/activate.h +0 -1
index 2fc74ce..d2c6db7 100644
@@ -91,7 +91,6 @@ int activation(void);
 
 int driver_version(char *version, size_t size);
 int library_version(char *version, size_t size);
-int lvm1_present(struct cmd_context *cmd);
 
 int module_present(struct cmd_context *cmd, const char *target_name);
 int target_present_version(struct cmd_context *cmd, const char *target_name,
lib/cache/lvmcache.c +0 -4
index cb19030..8ba8b3c 100644
@@ -22,8 +22,6 @@
 #include "memlock.h"
 #include "str_list.h"
 #include "format-text.h"
-#include "format_pool.h"
-#include "format1.h"
 #include "config.h"
 
 #include "lvmetad.h"
@@ -481,8 +479,6 @@ void lvmcache_drop_metadata(const char *vgname, int drop_precommitted)
 	/* For VG_ORPHANS, we need to invalidate all labels on orphan PVs. */
 	if (!strcmp(vgname, VG_ORPHANS)) {
 		_drop_metadata(FMT_TEXT_ORPHAN_VG_NAME, 0);
-		_drop_metadata(FMT_LVM1_ORPHAN_VG_NAME, 0);
-		_drop_metadata(FMT_POOL_ORPHAN_VG_NAME, 0);
 	} else
 		_drop_metadata(vgname, drop_precommitted);
 }
lib/cache/lvmetad.c +2 -21
index ed0bcde..f21829c 100644
@@ -37,8 +37,6 @@ static const char *_lvmetad_socket = NULL;
 static struct cmd_context *_lvmetad_cmd = NULL;
 static int64_t _lvmetad_update_timeout;
 
-static int _found_lvm1_metadata = 0;
-
 static struct volume_group *_lvmetad_pvscan_vg(struct cmd_context *cmd, struct volume_group *vg, const char *vgid, struct format_type *fmt);
 
 static uint64_t _monotonic_seconds(void)
@@ -2279,18 +2277,6 @@ int lvmetad_pvscan_single(struct cmd_context *cmd, struct device *dev,
 	if (!baton.fid)
 		goto_bad;
 
-	if (fmt->features & FMT_OBSOLETE) {
-		fmt->ops->destroy_instance(baton.fid);
-		log_warn("WARNING: Disabling lvmetad cache which does not support obsolete (lvm1) metadata.");
-		lvmetad_set_disabled(cmd, LVMETAD_DISABLE_REASON_LVM1);
-		_found_lvm1_metadata = 1;
-		/*
-		 * return 1 (success) so that we'll continue to populate lvmetad
-		 * instead of leaving the update incomplete.
-		 */
-		return 1;
-	}
-
 	lvmcache_foreach_mda(info, _lvmetad_pvscan_single, &baton);
 
 	if (!baton.vg)
@@ -2452,11 +2438,9 @@ int lvmetad_pvscan_all_devs(struct cmd_context *cmd, int do_wait)
 	}
 
 	/*
-	 * If lvmetad is disabled, and no lvm1 metadata was seen and no
-	 * duplicate PVs were seen, then re-enable lvmetad.
+	 * If lvmetad is disabled, and no duplicate PVs were seen, then re-enable lvmetad.
 	 */
-	if (lvmetad_is_disabled(cmd, &reason) &&
-	    !lvmcache_found_duplicate_pvs() && !_found_lvm1_metadata) {
+	if (lvmetad_is_disabled(cmd, &reason) && !lvmcache_found_duplicate_pvs()) {
 		log_debug_lvmetad("Enabling lvmetad which was previously disabled.");
 		lvmetad_clear_disabled(cmd);
 	}
@@ -3072,9 +3056,6 @@ int lvmetad_is_disabled(struct cmd_context *cmd, const char **reason)
 		} else if (strstr(reply_reason, LVMETAD_DISABLE_REASON_REPAIR)) {
 			*reason = "a repair command was run";
 
-		} else if (strstr(reply_reason, LVMETAD_DISABLE_REASON_LVM1)) {
-			*reason = "LVM1 metadata was found";
-
 		} else if (strstr(reply_reason, LVMETAD_DISABLE_REASON_DUPLICATES)) {
 			*reason = "duplicate PVs were found";
 
lib/commands/toolcontext.c +0 -22
index a54f4d7..64c9b1a 100644
@@ -36,14 +36,6 @@
 #include "sharedlib.h"
 #endif
 
-#ifdef LVM1_INTERNAL
-#include "format1.h"
-#endif
-
-#ifdef POOL_INTERNAL
-#include "format_pool.h"
-#endif
-
 #include <locale.h>
 #include <sys/stat.h>
 #include <sys/syscall.h>
@@ -1341,20 +1333,6 @@ static int _init_formats(struct cmd_context *cmd)
 	const struct dm_config_node *cn;
 #endif
 
-#ifdef LVM1_INTERNAL
-	if (!(fmt = init_lvm1_format(cmd)))
-		return 0;
-	fmt->library = NULL;
-	dm_list_add(&cmd->formats, &fmt->list);
-#endif
-
-#ifdef POOL_INTERNAL
-	if (!(fmt = init_pool_format(cmd)))
-		return 0;
-	fmt->library = NULL;
-	dm_list_add(&cmd->formats, &fmt->list);
-#endif
-
 #ifdef HAVE_LIBDL
 	/* Load any formats in shared libs if not static */
 	if (!is_static() &&
lib/config/config_settings.h +4 -16
index b778f4c..d8db7df 100644
@@ -767,26 +767,14 @@ cfg(global_activation_CFG, "activation", global_CFG_SECTION, 0, CFG_TYPE_BOOL, D
 	"is not present in the kernel, disabling this should suppress\n"
 	"the error messages.\n")
 
-cfg(global_fallback_to_lvm1_CFG, "fallback_to_lvm1", global_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_TYPE_BOOL, DEFAULT_FALLBACK_TO_LVM1, vsn(1, 0, 18), "@DEFAULT_FALLBACK_TO_LVM1@", 0, NULL,
-	"Try running LVM1 tools if LVM cannot communicate with DM.\n"
-	"This option only applies to 2.4 kernels and is provided to help\n"
-	"switch between device-mapper kernels and LVM1 kernels. The LVM1\n"
-	"tools need to be installed with .lvm1 suffices, e.g. vgscan.lvm1.\n"
-	"They will stop working once the lvm2 on-disk metadata format is used.\n")
+cfg(global_fallback_to_lvm1_CFG, "fallback_to_lvm1", global_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_TYPE_BOOL, 0, vsn(1, 0, 18), NULL, 0, NULL,
+	"This setting setting no longer used.\n")
 
 cfg(global_format_CFG, "format", global_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_TYPE_STRING, DEFAULT_FORMAT, vsn(1, 0, 0), NULL, 0, NULL,
-	"The default metadata format that commands should use.\n"
-	"The -M 1|2 option overrides this setting.\n"
-	"#\n"
-	"Accepted values:\n"
-	"  lvm1\n"
-	"  lvm2\n"
-	"#\n")
+	"This setting is no longer used.\n")
 
 cfg_array(global_format_libraries_CFG, "format_libraries", global_CFG_SECTION, CFG_DEFAULT_UNDEFINED, CFG_TYPE_STRING, NULL, vsn(1, 0, 0), NULL, 0, NULL,
-	"Shared libraries that process different metadata formats.\n"
-	"If support for LVM1 metadata was compiled as a shared library use\n"
-	"format_libraries = \"liblvm2format1.so\"\n")
+	"This setting is no longer used.")
 
 cfg_array(global_segment_libraries_CFG, "segment_libraries", global_CFG_SECTION, CFG_DEFAULT_UNDEFINED, CFG_TYPE_STRING, NULL, vsn(1, 0, 18), NULL, 0, NULL, NULL)
 
lib/display/display.c +3 -6
index 9a928d9..9b4be88 100644
@@ -705,13 +705,10 @@ void vgdisplay_full(const struct volume_group *vg)
 
 	log_print("--- Volume group ---");
 	log_print("VG Name               %s", vg->name);
-	log_print("System ID             %s", (vg->system_id && *vg->system_id) ? vg->system_id : vg->lvm1_system_id ? : "");
+	log_print("System ID             %s", (vg->system_id && *vg->system_id) ? vg->system_id : "");
 	log_print("Format                %s", vg->fid->fmt->name);
-	if (vg->fid->fmt->features & FMT_MDAS) {
-		log_print("Metadata Areas        %d",
-			  vg_mda_count(vg));
-		log_print("Metadata Sequence No  %d", vg->seqno);
-	}
+	log_print("Metadata Areas        %d", vg_mda_count(vg));
+	log_print("Metadata Sequence No  %d", vg->seqno);
 	access_str = vg->status & (LVM_READ | LVM_WRITE);
 	log_print("VG Access             %s%s%s%s",
 		  access_str == (LVM_READ | LVM_WRITE) ? "read/write" : "",
lib/format1/.exported_symbols deleted +0 -1
deleted file mode 100644
index e9fac2e..0000000
@@ -1 +0,0 @@
-init_format
lib/format1/Makefile.in deleted +0 -33
deleted file mode 100644
index 4a905c0..0000000
@@ -1,33 +0,0 @@
-#
-# Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved.
-# Copyright (C) 2004-2010 Red Hat, Inc. All rights reserved.
-#
-# This file is part of LVM2.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-top_builddir = @top_builddir@
-
-SOURCES =\
-	disk-rep.c \
-	format1.c \
-	import-export.c \
-	import-extents.c \
-	layout.c \
-	lvm1-label.c \
-	vg_number.c
-
-LIB_SHARED = liblvm2format1.$(LIB_SUFFIX)
-LIB_VERSION = $(LIB_VERSION_LVM)
-
-include $(top_builddir)/make.tmpl
-
-install: install_lvm2_plugin
lib/format1/disk-rep.c deleted +0 -761

761 lines not on this page · raw message

lib/format1/disk-rep.h deleted +0 -250

250 lines not on this page · raw message

lib/format1/format1.c deleted +0 -631

631 lines not on this page · raw message

lib/format1/format1.h deleted +0 -29
deleted file mode 100644
index 42ddc66..0000000
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.  
- * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
- *
- * This file is part of LVM2.
- *
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License v.2.1.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef _LVM_FORMAT1_H
-#define _LVM_FORMAT1_H
-
-#include "metadata.h"
-#include "lvmcache.h"
-
-#define FMT_LVM1_NAME "lvm1"
-#define FMT_LVM1_ORPHAN_VG_NAME ORPHAN_VG_NAME(FMT_LVM1_NAME)
-
-#ifdef LVM1_INTERNAL
-struct format_type *init_lvm1_format(struct cmd_context *cmd);
-#endif
-
-#endif
lib/format1/import-export.c deleted +0 -680

680 lines not on this page · raw message

lib/format1/import-extents.c deleted +0 -377

240 lines not on this page · raw message

lib/format1/layout.c deleted +0 -172

172 lines not on this page · raw message

lib/format1/lvm1-label.c deleted +0 -129

129 lines not on this page · raw message

lib/format1/lvm1-label.h deleted +0 -23
deleted file mode 100644
index 27f2f51..0000000

Lines of this file are not shown. View the raw message.

lib/format1/vg_number.c deleted +0 -60

60 lines not on this page · raw message

lib/format_pool/.exported_symbols deleted +0 -1
deleted file mode 100644
index e9fac2e..0000000

Lines of this file are not shown. View the raw message.

lib/format_pool/Makefile.in deleted +0 -30
deleted file mode 100644
index 05d1b0c..0000000

Lines of this file are not shown. View the raw message.

lib/format_pool/disk_rep.c deleted +0 -409

409 lines not on this page · raw message

lib/format_pool/disk_rep.h deleted +0 -156

156 lines not on this page · raw message

lib/format_pool/format_pool.c deleted +0 -338

338 lines not on this page · raw message

lib/format_pool/format_pool.h deleted +0 -28
deleted file mode 100644
index 8ad7eb5..0000000

Lines of this file are not shown. View the raw message.

lib/format_pool/import_export.c deleted +0 -285

285 lines not on this page · raw message

lib/format_pool/pool_label.c deleted +0 -104

104 lines not on this page · raw message

lib/format_pool/pool_label.h deleted +0 -23
deleted file mode 100644
index 1a529a4..0000000

Lines of this file are not shown. View the raw message.

lib/format_pool/sptype_names.h deleted +0 -42

42 lines not on this page · raw message

lib/format_text/export.c +0 -2
index e535237..7866d56 100644

Lines of this file are not shown. View the raw message.

lib/format_text/format-text.c +2 -2
index 792d75a..5c7b72f 100644

Lines of this file are not shown. View the raw message.

lib/format_text/import_vsn1.c +1 -8
index e038a27..58f517e 100644

Lines of this file are not shown. View the raw message.

lib/locking/locking.c +0 -40
index f90bd2d..105419a 100644

Lines of this file are not shown. View the raw message.

lib/metadata/lv_manip.c +0 -26
index 7f9cf0b..8bf9379 100644

Lines of this file are not shown. View the raw message.

lib/metadata/metadata-exported.h +4 -6
index e8ecfd6..120dbb0 100644

Lines of this file are not shown. View the raw message.

lib/metadata/metadata.c +1 -17
index 5e376f3..d65daaf 100644

Lines of this file are not shown. View the raw message.

lib/metadata/segtype.h +1 -1
index 3941612..40b41ec 100644

Lines of this file are not shown. View the raw message.

lib/metadata/snapshot_manip.c +0 -11
index 8357ea0..76d78f3 100644

Lines of this file are not shown. View the raw message.

lib/metadata/vg.c +1 -16
index 1020a67..b8b1501 100644

Lines of this file are not shown. View the raw message.

lib/metadata/vg.h +0 -1
index 29d88f8..7ecfafe 100644

Lines of this file are not shown. View the raw message.

lib/report/report.c +1 -3
index 6d6289e..01ab627 100644

Lines of this file are not shown. View the raw message.

lib/striped/striped.c +1 -1
index e1de9c9..bca4c2c 100644

Lines of this file are not shown. View the raw message.

man/vgconvert.8_des +2 -5
index a0d34fd..8519063 100644

Lines of this file are not shown. View the raw message.

test/shell/format-lvm1.sh deleted +0 -38
deleted file mode 100644
index b88579f..0000000

Lines of this file are not shown. View the raw message.

test/shell/lvm1-basic.sh deleted +0 -36
deleted file mode 100644
index 93509c4..0000000

Lines of this file are not shown. View the raw message.

test/shell/snapshot-lvm1.sh deleted +0 -35
deleted file mode 100644
index 75c97cb..0000000

Lines of this file are not shown. View the raw message.

tools/args.h +1 -2
index b80b8da..603a0cf 100644

Lines of this file are not shown. View the raw message.

tools/lvconvert.c +0 -5
index abdcf2c..72f840a 100644

Lines of this file are not shown. View the raw message.

tools/lvmcmdline.c +1 -57

58 lines not on this page · raw message

tools/pvscan.c +2 -3
index 1fcf606..5796309 100644

Lines of this file are not shown. View the raw message.

tools/stub.h +0 -1
index f03e5d3..1d58387 100644

Lines of this file are not shown. View the raw message.

tools/toollib.c +2 -27
index b9e6bd2..53e7f9a 100644

Lines of this file are not shown. View the raw message.

tools/vals.h +2 -2
index 95dc8b2..79c48b5 100644

Lines of this file are not shown. View the raw message.

tools/vgchange.c +0 -10
index 61b78df..e231c86 100644

Lines of this file are not shown. View the raw message.

tools/vgconvert.c +15 -38

53 lines not on this page · raw message

tools/vgscan.c +2 -2
index 1ec9083..f9fa382 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.