summaryrefslogtreecommitdiff
path: root/lib/commands
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2014-01-27 05:27:16 -0600
committerJonathan Brassow <jbrassow@redhat.com>2014-01-27 05:27:16 -0600
commit90bbed325544365efa177a9823019c44f5109dbb (patch)
tree2b5caa4d203fda64822b11e20d06e2ee09497aa6 /lib/commands
parent94377dfd5ee7bbbdeb8836eeeea2198bc32c07f5 (diff)
downloadlvm2-90bbed325544365efa177a9823019c44f5109dbb.tar.gz
cache: New 'cachepool' segment type
This patch adds the new cachepool segment type - the first of two necessary to eventually create 'cache' logical volumes. In addition to the new segment type, updates to makefiles, configure files, the lv_segment struct, and some necessary libdevmapper flags. The cachepool is the LV and corresponding segment type that will hold all information pertinent to the cache itself - it's size, cachemode, cache policy, core arguments (like migration_threshold), etc.
Diffstat (limited to 'lib/commands')
-rw-r--r--lib/commands/toolcontext.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 9d6ef5e28..a709284bc 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -1,6 +1,6 @@
- /*
+/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
- * Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2004-2014 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
@@ -1181,6 +1181,11 @@ static int _init_segtypes(struct cmd_context *cmd)
return 0;
#endif
+#ifdef CACHE_INTERNAL
+ if (!init_cache_segtypes(cmd, &seglib))
+ return 0;
+#endif
+
#ifdef HAVE_LIBDL
/* Load any formats in shared libs unless static */
if (!is_static() &&