diff options
author | Petr Rockai <prockai@redhat.com> | 2012-08-13 19:44:10 +0200 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2012-09-26 14:49:15 +0200 |
commit | c7b17836ea139ba7448f5a5c1d2fbe93676baa36 (patch) | |
tree | e588286f8a35aaef2e111975919d9e01d1407586 /doc | |
parent | ceb79c9a500f38ac31c8d79904c3730805feb3dc (diff) | |
download | lvm2-c7b17836ea139ba7448f5a5c1d2fbe93676baa36.tar.gz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/example.conf.in | 8 |
1 files changed, 8 insertions, 0 deletions
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 |