diff options
author | Alasdair G Kergon <agk@redhat.com> | 2016-03-22 17:46:15 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2016-03-22 17:46:15 +0000 |
commit | 1216efdf152043bd04e8db170b5b3fb569bef329 (patch) | |
tree | 12140edde6d763ebd7593c3d325cf04b5e52664b /lib/cache_segtype | |
parent | 94f78e0183e2517199e19d0473a7d5480660db0a (diff) | |
download | lvm2-1216efdf152043bd04e8db170b5b3fb569bef329.tar.gz |
activate: Use macros for target and module names.
Diffstat (limited to 'lib/cache_segtype')
-rw-r--r-- | lib/cache_segtype/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cache_segtype/cache.c b/lib/cache_segtype/cache.c index a645756a5..a65892e7f 100644 --- a/lib/cache_segtype/cache.c +++ b/lib/cache_segtype/cache.c @@ -230,10 +230,10 @@ static int _target_present(struct cmd_context *cmd, if (!_cache_checked) { _cache_checked = 1; - if (!(_cache_present = target_present(cmd, "cache", 1))) + if (!(_cache_present = target_present(cmd, TARGET_NAME_CACHE, 1))) return 0; - if (!target_version("cache", &maj, &min, &patchlevel)) + if (!target_version(TARGET_NAME_CACHE, &maj, &min, &patchlevel)) return_0; if ((maj < 1) || @@ -294,7 +294,7 @@ static int _modules_needed(struct dm_pool *mem, const struct lv_segment *seg __attribute__((unused)), struct dm_list *modules) { - if (!str_list_add(mem, modules, "cache")) { + if (!str_list_add(mem, modules, MODULE_NAME_CACHE)) { log_error("String list allocation failed for cache module."); return 0; } |