dm-multipath: Keep multipath from silently failing in path discovery
Benjamin Marzinski
maintainerPATCH 1/1 dm-multipath: Keep multipath from silently failing in path discovery
This patch just makes sure that multipath doesn't silently not add a path or fail.
-Ben
libmultipath/discovery.c +3 -1
@@ -71,8 +71,10 @@ path_discover (vector pathvec, struct coreturn 1 ; } -if (!filepresent (path)) +if (!filepresent (path)){ +condlog (3 ,"%s doesn't exit, not adding %s" , path, devname);return 0 ; + } pp =find_path_by_dev (pathvec, devname);
libmultipath/structs.c +3 -1
@@ -221,8 +221,10 @@ free_multipathvec (vector mpvec, int freint store_path (vector pathvec,struct path * pp) { -if (!vector_alloc_slot (pathvec)) +if (!vector_alloc_slot (pathvec)){ +condlog (0 ,"unable to allocate space for path" );return 1 ; + }vector_set_slot (pathvec, pp);