mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cache: fix previous change and correct ()
412f09ca33
missed parentheses.
This commit is contained in:
parent
17ad884836
commit
4ddf5a11cf
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user