From 90bbed325544365efa177a9823019c44f5109dbb Mon Sep 17 00:00:00 2001 From: Jonathan Brassow Date: Mon, 27 Jan 2014 05:27:16 -0600 Subject: 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. --- lib/commands/toolcontext.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/commands') 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() && -- cgit v1.2.1