1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
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
..
activate RAID: Remove optimization using static vars in lv_raid_dev_health 2013-06-17 13:03:15 -05:00
cache cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
commands config: add support for loading profiles 2013-07-02 15:19:08 +02:00
config config: add support for loading profiles 2013-07-02 15:19:08 +02:00
datastruct Switch to return void 2012-02-08 12:52:58 +00:00
device dev-type: dev_get_primary_dev: fix ret value if dev is a partition and we used sysfs 2013-06-23 12:39:35 +02:00
display thin: fix cut&paste bug 2013-04-21 23:07:00 +02: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 config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +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 cleanup: stack usage 2013-07-01 23:11:14 +02:00
log cleanup: introduce return_ECMD_FAILED macro 2013-07-01 23:10:33 +02:00
metadata archiver: do not archive vg more then once 2013-07-01 23:09:26 +02:00
mirror config: refer to config nodes using assigned IDs 2013-03-06 10:14:33 +01:00
misc configure: add configure --with-default-profile-subdir 2013-07-02 15:19:08 +02:00
mm config: add support for loading profiles 2013-07-02 15:19:08 +02:00
raid DM RAID: Add ability to throttle sync operations for RAID LVs. 2013-05-31 11:25:52 -05:00
replicator cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
report cleanup: access pool segs with check 2013-06-16 00:07:33 +02:00
snapshot snapshot: use dm_get_status_snapshot() 2013-05-27 10:32:02 +02:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin cleanup: add extra internal error 2013-06-16 00:07:32 +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