From c7b17836ea139ba7448f5a5c1d2fbe93676baa36 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 13 Aug 2012 19:44:10 +0200 Subject: Implement devices/global_filter. The global filter is applied first, and is also applied in pvscan --cache (which is called from udev rules to keep lvmetad updated). Cf. example.conf. --- doc/example.conf.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/example.conf.in b/doc/example.conf.in index 7b26bdc70..b4cda6f11 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -79,6 +79,14 @@ devices { # Use anchors if you want to be really specific # filter = [ "a|^/dev/hda8$|", "r/.*/" ] + # Since "filter" is often overriden from command line, it is not suitable + # for system-wide device filtering (udev rules, lvmetad). To hide devices + # from LVM-specific udev processing and/or from lvmetad, you need to set + # global_filter. The syntax is the same as for normal "filter" + # above. Devices that fail the global_filter are not even opened by LVM. + + # global_filter = [] + # The results of the filtering are cached on disk to avoid # rescanning dud devices (which can take a very long time). # By default this cache is stored in the @DEFAULT_SYS_DIR@/@DEFAULT_CACHE_SUBDIR@ directory -- cgit v1.2.1