[PATCH 0/3] configuration overhaul and overrides section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set is an alternative solution to my all_devs patch, which
uses a whole new multipath.conf section. "overrides"

Adding an overrides section to the existing multipath configuration system
would have involved a lot (over 1500 lines) of mostly copy/paste code. Intead
of doing that, I overhauled dict.c and propsel.c to use macros to cut down
on code duplication. This made adding the new section much easier.

Benjamin Marzinski (3):
  libmultipath: rewrite dict.c with function generation macros
  libmultipath: cleanup propsel.c with macros for common actions
  libmultipath: add overrides section to multipath.conf

 libmultipath/config.c      |    6 +-
 libmultipath/config.h      |    1 +
 libmultipath/defaults.h    |    2 -
 libmultipath/dict.c        | 3207 +++++++++++---------------------------------
 libmultipath/dict.h        |    7 +
 libmultipath/pgpolicies.c  |    2 +-
 libmultipath/print.c       |   30 +
 libmultipath/print.h       |    1 +
 libmultipath/propsel.c     |  761 +++++------
 libmultipath/structs.c     |    9 +-
 libmultipath/structs.h     |   44 +-
 multipath.conf.annotated   |   18 +-
 multipath.conf.defaults    |    2 +
 multipath.conf.synthetic   |    3 +
 multipath/main.c           |    6 +
 multipath/multipath.conf.5 |   57 +
 multipathd/cli_handlers.c  |   10 +
 17 files changed, 1270 insertions(+), 2896 deletions(-)

-- 
1.8.3.1

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux