diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-04-22 12:31:02 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-04-22 12:52:53 +0200 |
commit | 4ddf5a11cf333fdcf45eec907e12e10c41a9d578 (patch) | |
tree | 55ddb3452c9f284ce0830cc938431c4818b6896b | |
parent | 17ad8848361aa16ff227038068c3d0771771f095 (diff) | |
download | lvm2-4ddf5a11cf333fdcf45eec907e12e10c41a9d578.tar.gz |
cache: fix previous change and correct ()
412f09ca332c644e08421e289a3e8d54890971ba missed parentheses.
-rw-r--r-- | lib/metadata/cache_manip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/metadata/cache_manip.c b/lib/metadata/cache_manip.c index 1c51f6695..46cb6a8b0 100644 --- a/lib/metadata/cache_manip.c +++ b/lib/metadata/cache_manip.c @@ -47,11 +47,10 @@ const char *get_cache_mode_name(const struct lv_segment *seg) if (seg->feature_flags & DM_CACHE_FEATURE_WRITEBACK) return "writeback"; - if (!seg->feature_flags & DM_CACHE_FEATURE_WRITETHROUGH) { + if (!(seg->feature_flags & DM_CACHE_FEATURE_WRITETHROUGH)) log_error(INTERNAL_ERROR "LV %s has uknown feature flags %" PRIu64 ", " "returning writethrough instead.", display_lvname(seg->lv), seg->feature_flags); - } return "writethrough"; } |