master - thin: reworked thin feature detection
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5ec20e267fdc627e3bf50679b748c937fe3d79fb Commit: 5ec20e267fdc627e3bf50679b748c937fe3d79fb Parent: 99018b37ee9e916662ebd482ac8fe0f36bbd7ac8 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Dec 3 11:52:04 2012 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Dec 3 11:57:40 2012 +0100
thin: reworked thin feature detection
Rework thin feature detection to support runtime
section to allow to disable them selectively.
New lvm.conf option is born: global/thin_disabled_features
--- WHATS_NEW | 1 + doc/example.conf.in | 10 ++++++ lib/thin/thin.c | 91 ++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 76 insertions(+), 26 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Add lvm.conf option global/thin_disabled_features. Add lvconvert support to swap thin pool metadata volume. Implement internal function detach_pool_metadata_lv(). Fix lvm2app to return all property sizes in bytes.
doc/example.conf.in +10 -0
@@ -524,6 +524,16 @@ global { # String with options passed with thin_check command. By default, # option '-q' is for quiet output. thin_check_options = [ "-q" ] + + # If set, given features are not used by thin driver. + # This can be helpful not just for testing, but i.e. allows to avoid + # using problematic implementation of some thin feature. + # Features: + # block_size + # discards + # discards_non_power_2 + # + # thin_disabled_features = [ "discards", "block_size" ] } activation {
lib/thin/thin.c +65 -26
126 lines not on this page · raw message