1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha 661406a417 config: fix use of last config check status if creating CFG_DEF_TREE_MISSING tree
When CFG_DEF_TREE_MISSING is created, it needs to know the status
of the check done on the tree used (the CFG_USED flag).

This bug was introduced with f1c292cc38
"make it possible to run several instances of configuration check at
once". This patch separated the CFG_USED and CFG_VALID flags in
a separate 'status' field in struct cft_check_handle.

However, when creating some trees, like CFG_DEF_TREE_MISSING,
we need this status to do a comparison with full config definition
to determine which items are missing and for which default values
were used. Otherwise, all items would be considered missing.

So, pass this status in a new field called 'check_status' in
struct config_def_tree_spec that defines how the (dumpconfig) tree
should be constructed (and this struct is passed to
config_def_create_tree fn then).
2013-07-08 15:57:49 +02:00
..
activate snapshot: Rename snapshot segment returning methods from find_*_cow to find_*_snapshot 2013-07-02 16:26:03 -04:00
cache sigint: improve logic on for sigint reaction 2013-07-03 14:46:42 +02:00
commands lvresize: separate validation from action 2013-07-06 03:28:21 +01:00
config config: fix use of last config check status if creating CFG_DEF_TREE_MISSING tree 2013-07-08 15:57:49 +02:00
datastruct Switch to return void 2012-02-08 12:52:58 +00:00
device config: add profile arg to find_config_tree_node 2013-07-02 15:19:09 +02:00
display snapshot: Rename snapshot segment returning methods from find_*_cow to find_*_snapshot 2013-07-02 16:26:03 -04:00
error cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
filters config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +02:00
format1 cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
format_pool cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
format_text metadata: add support for storing profile name in metadata (during vgcreate/lvcreate) 2013-07-02 15:19:09 +02:00
freeseg cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
label logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
locking locking: unlock memory on error path 2013-07-08 14:02:49 +02:00
log cleanup: introduce return_ECMD_FAILED macro 2013-07-01 23:10:33 +02:00
metadata lvresize: separate validation from action 2013-07-06 03:28:21 +01:00
mirror config: add profile arg to find_config_tree_str 2013-07-02 15:19:09 +02:00
misc lvm2app: Move percent_of_extents to lvm-percent.[h|c] 2013-07-02 14:24:33 -05:00
mm config: add profile arg to find_config_tree_bool 2013-07-02 15:19:09 +02:00
raid config: add profile arg to find_config_tree_str 2013-07-02 15:19:09 +02:00
replicator cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
report lvm2app: Add thin and thin pool lv creation V5 2013-07-02 14:24:33 -05:00
snapshot config: add profile arg to find_config_tree_str 2013-07-02 15:19:09 +02:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin config: add profile arg to find_config_tree_str 2013-07-02 15:19:09 +02:00
unknown cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02: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 cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
Makefile.in refactor: move lib/device/device.c -> lib/device/dev-type.c 2013-06-12 11:54:37 +02:00