]> sourceware.org Git - lvm2.git/commit
liblvm: allow config settings to be read without full lvm cmd
authorDavid Teigland <teigland@redhat.com>
Tue, 17 May 2016 16:54:13 +0000 (11:54 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 18 May 2016 14:04:25 +0000 (09:04 -0500)
commit7fd4119d24eee55323e888dd78c70257d7c97a15
treefb316a861f43f66038baee92d5ce739c3dd2f0e6
parentba9b7b69d9200d9d977089a0b813f508961fcbee
liblvm: allow config settings to be read without full lvm cmd

A program may be using liblvm2app for simply checking a config
setting in lvm.conf.  In this case, a full lvm context is not
needed, only cmd->cft (which are the config settings read from
lvm.conf).

lvm_config_find_bool() can now be passed a NULL lvm context
in which case it will only create cmd->cft, check the config
setting asked for, and destroy the cmd.
lib/commands/toolcontext.c
lib/commands/toolcontext.h
liblvm/lvm_base.c
This page took 0.039167 seconds and 5 git commands to generate.