LVM2 ./WHATS_NEW doc/example.conf.in lib/activ ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-03-02 21:49:44
Modified files:
. : WHATS_NEW doc : example.conf.in lib/activate : dev_manager.c lib/config : defaults.h
Log message:
Add support for thin check
Use libdm callback to execute thin_check before activation thin pool and after deactivation as well.
Supporting thin_check_executable which may pass in extra options for the tool.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2333&r2=1.2334
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/doc/example.conf.in.diff?cvsroot=lvm2&r1=1.44&r2=1.45
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/dev_manager.c.diff?cvsroot=lvm2&r1=1.272&r2=1.273
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/defaults.h.diff?cvsroot=lvm2&r1=1.96&r2=1.97
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.94 - ==================================== + Add support to execute thin_check with each de/active of thin pool. Fix automatic estimation of metadata device size for thin pool. Test for alloc fail from _alloc_pv_segment() in _extend_pv(). Check for alloc fail from get_segtype_from_string() in _lvcreate_params().
doc/example.conf.in +10 -0
@@ -650,6 +650,16 @@ thin_pool_autoextend_threshold = 100 thin_pool_autoextend_percent = 20 + # Full path of the utility called to check that a thin metadata device + # is in a state that allows it to be used. + # Each time a thin pool needs to be activated, this utility is executed. + # The activation will only proceed if the utility has an exit status of 0. + # Set to "" to skip this check. (Not recommended.) + # The thin tools are available as part of the device-mapper-persistent-data + # package from https://github.com/jthornber/thin-provisioning-tools. + # + thin_check_executable = "/sbin/thin_check -q" + # While activating devices, I/O to devices being (re)configured is # suspended, and as a precaution against deadlocks, LVM2 needs to pin # any memory it is using so it is not paged out. Groups of pages that
lib/activate/dev_manager.c +95 -3
130 lines not on this page · raw message
lib/config/defaults.h +1 -0
@@ -64,6 +64,7 @@#define DEFAULT_DMEVENTD_MONITOR 1#define DEFAULT_BACKGROUND_POLLING 1 +#define DEFAULT_THIN_CHECK_EXECUTABLE "/sbin/thin_check -q"#define DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS 0#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024)/* KB */ #define DEFAULT_THIN_POOL_MIN_METADATA_SIZE 2048/* KB */