1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-13 17:18:32 +03:00
lvm2/lib
Peter Rajnoha f9213d84e4 Suppress low-level locking errors and warnings while using --sysinit.
Today, we use "suppress_messages" flag (set internally in init_locking fn based
on 'ignorelockingfailure() && getenv("LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES")'.
This way, we can suppress high level messages like "File-based locking
initialisation failed" or "Internal cluster locking initialisation failed".

However, each locking has its own sequence of initialization steps and these
could log some errors as well. It's quite misleading for the user to see such
errors and warnings if the "--sysinit" is used (and so the ignorelockingfailure
&& LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES environment variable). Errors and
warnings from these intermediary steps should be suppressed as well if requested.

This patch propagates the "suppress_messages" flag deeper into locking init
functions. I've also added these flags for other locking types for consistency,
though it's not actually used for no_locking and readonly_locking.
2011-08-09 11:44:57 +00:00
..
activate Add basic RAID segment type(s) support. 2011-08-02 22:07:20 +00:00
cache Slightly refactor the config code to allow better reuse (no functional change). 2011-07-18 13:26:08 +00:00
commands Add basic RAID segment type(s) support. 2011-08-02 22:07:20 +00:00
config Add basic RAID segment type(s) support. 2011-08-02 22:07:20 +00:00
datastruct Revert the #include changes. Need to fix this at the #include site for now, and 2011-07-18 14:34:33 +00:00
device Fix warning for pvcreate over MD linear. 2011-07-08 15:53:59 +00:00
display Fix some compile warnings on RHEL5 2011-03-01 20:17:56 +00:00
error Add lv_activate_opts structure 2011-06-17 14:14:19 +00:00
filters Add and use dev_open_readonly and variations. 2011-05-24 13:36:57 +00:00
format1 Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
format_pool Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary. 2011-05-28 09:48:14 +00:00
format_text Add basic RAID segment type(s) support. 2011-08-02 22:07:20 +00:00
freeseg Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
label Report sector containing label in verbose message. 2011-06-01 15:30:36 +00:00
locking Suppress low-level locking errors and warnings while using --sysinit. 2011-08-09 11:44:57 +00:00
log Suppress low-level locking errors and warnings while using --sysinit. 2011-08-09 11:44:57 +00:00
metadata Remove unused 'origin' variable in lv_remove_single function. 2011-08-05 09:21:13 +00:00
mirror Use lv_activate_opts struct instead of ACTIVATE_EXCL status flag. 2011-06-17 14:17:16 +00:00
misc Remove meaningless const type qualifiers on cast type 2011-08-04 14:30:51 +00:00
mm Maintain a count of the number of suspended devices in libdevmapper 2011-06-13 03:32:45 +00:00
raid Add basic RAID segment type(s) support. 2011-08-02 22:07:20 +00:00
replicator Add lv_activate_opts structure 2011-06-17 14:14:19 +00:00
report Remove meaningless const type qualifiers on cast type 2011-08-04 14:30:51 +00:00
snapshot Use lv_activate_opts struct instead of ACTIVATE_EXCL status flag 2011-06-17 14:22:48 +00:00
striped Add lv_activate_opts structure 2011-06-17 14:14:19 +00:00
unknown Slightly refactor the config code to allow better reuse (no functional change). 2011-07-18 13:26:08 +00:00
uuid Revert the #include changes. Need to fix this at the #include site for now, and 2011-07-18 14:34:33 +00:00
zero Add lv_activate_opts structure 2011-06-17 14:14:19 +00:00
Makefile.in Add basic RAID segment type(s) support. 2011-08-02 22:07:20 +00:00