[lvm-devel] Re: [RFC PATCH 0/7] Introduce metadata cache feature
Takahiro Yasui
tyasui at redhat.com
Thu Apr 2 21:21:15 UTC 2009
Mike Snitzer wrote:
>> FUTURE WORKS
>> ============
> ...
>> * Add commandline option
>>
>> Add a new commandline option (ex --metadatacache y|n) to enable and
>> disable cache feature in order to override a setting of the lvm
>> configuration file.
>
> You should already be able to achieve that with:
>
> <lvm_command> ... --config 'backup{metadata_cache=1}'
> or
> <lvm_command> ... --config 'backup{metadata_cache=0}'
Unfortunately another parse procedure in _gets_settings() is needed
to handle the command line option, since metadata_cache option in
lvm.conf is processed in init_lvm() before a command line option is
parsed in lvm_run_command().
But thank you for the suggestion. Command line '--config' option
should be handled as well. I will update this in the next version.
Thanks,
Taka
More information about the lvm-devel
mailing list