Use refcounting for checkers
authorHannes Reinecke <hare@suse.de>
Mon, 26 Apr 2010 08:15:05 +0000 (10:15 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 07:54:40 +0000 (09:54 +0200)
commit323090f890af84c5063ff43c44d04ccde475963e
treea3f78202da87dd968b399857814b5ed0aef964e6
parentdbf3c1cf2cd67be810176226bdc75904e51357eb
Use refcounting for checkers

The checkers are not accessed directly but rather via private
copies of the original instance. However, the pointers in the
private copy point to the original ones, making them potentially
invalid when the original instance is deleted.
So we need to introduce proper refcounting here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/checkers.c
libmultipath/checkers.h