mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cachevol: use writethrough for partial removal
Instead of using 'noflush' option, switch cache_mode into WRITETHROUGH which does not require flushing, when user confirmed he does not want flushing for WRITEBACK (because of (partially) missing caching PV)
This commit is contained in:
parent
77deadd3af
commit
8d8047883e
@ -1875,7 +1875,8 @@ static int _lvconvert_split_and_keep_cachevol(struct cmd_context *cmd,
|
||||
return 0;
|
||||
}
|
||||
|
||||
noflush = 1;
|
||||
/* Switch internally to WRITETHROUGH which does not require flushing */
|
||||
cache_seg->cache_mode = CACHE_MODE_WRITETHROUGH;
|
||||
}
|
||||
|
||||
if (!lv_detach_cache_vol(lv, noflush))
|
||||
|
Loading…
x
Reference in New Issue
Block a user