[PATCH 1/2] libmultipath: export path_discover()

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

 



In order to call path_discover() from multipathd (for the next patch),
make it visible to other units (header declaration, static modifier).

Signed-off-by: Mauricio Faria de Oliveira <mauricfo@xxxxxxxxxxxxxxxxxx>
---
 libmultipath/discovery.c | 2 +-
 libmultipath/discovery.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 7b5b434..865b53b 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -106,7 +106,7 @@ out:
 	return err;
 }
 
-static int
+int
 path_discover (vector pathvec, struct config * conf,
 	       struct udev_device *udevice, int flag)
 {
diff --git a/libmultipath/discovery.h b/libmultipath/discovery.h
index 3039268..34a41d4 100644
--- a/libmultipath/discovery.h
+++ b/libmultipath/discovery.h
@@ -31,6 +31,8 @@
 struct config;
 
 int path_discovery (vector pathvec, int flag);
+int path_discover (vector pathvec, struct config * conf,
+		   struct udev_device *udevice, int flag);
 
 int do_tur (char *);
 int path_offline (struct path *);
-- 
2.7.4

--
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