[lib] abstract a little more devmapper internals
authorChristophe Varoqui <christophe.varoqui@free.fr>
Sat, 19 Jul 2008 16:26:54 +0000 (18:26 +0200)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Sat, 19 Jul 2008 16:26:54 +0000 (18:26 +0200)
commit44f8a605cf95bc96a70487e6a9ab0ba105d7c801
treec40d1ae6dc578825afe8181f480e091a59aa2a67
parentad639b7686668cf4159c05ea40168d7d57684bf7
[lib] abstract a little more devmapper internals

o move DEFAULT_TARGET define from defaults.h to devmapper.h
o rename DEFAULT_TARGET into TGT_MPATH (multipath)
o introduce TGT_PART (linear)
o remove the type param from functions used only with TGT_MPATH
o abstract dm_addmap() with to wrappers dm_addmap_create() and
  dm_addmap_reload(). Wrappers don't require the type and task
  params.
o move the dm_addmap(DM_DEVICE_CREATE, ...) cleanup on failure
  from configure.c into devmapper.c::dm_addmap_create()
libmultipath/configure.c
libmultipath/defaults.h
libmultipath/devmapper.c
libmultipath/devmapper.h
libmultipath/print.c
libmultipath/propsel.c
libmultipath/structs_vec.c
multipath/main.c
multipathd/main.c