1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/config
Peter Rajnoha ebc236d085 config: add support for loading profiles
This patch adds --profile arg to lvm cmds and adds config/profile_dir
configuration setting to select the directory where profiles are stored
By default it's /etc/lvm/profile.

The profiles are added by using new "add_profile" fn and then loaded
using the "load_profile" fn. All profiles are stored in a cmd context
within the new "struct profile_params":

struct profile_params {
  const char *dir;
  struct profile *global_profile;
  struct dm_list profiles_to_load;
  struct dm_list profiles;
};

...where "dir" is the directory with profiles, "global_profile" is
the profile that is set globally via the --profile arg (IOW, not
set per VG/LV basis based on metadata record) and the "profiles"
is the list with loaded profiles.
2013-07-02 15:19:08 +02:00
..
config_settings.h config: add support for loading profiles 2013-07-02 15:19:08 +02:00
config.c config: add support for loading profiles 2013-07-02 15:19:08 +02:00
config.h config: add support for loading profiles 2013-07-02 15:19:08 +02:00
defaults.h config: make DEFAULT_MAX_HISTORY unconditional 2013-03-06 12:47:23 +01:00