Skip to contentSkip to conversation

Add new priority checker mpath_hp_sw

PATCH In review Hannes Reinecke 1 participant 1 message May 21, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 13/21 Add new priority checker mpath_hp_sw

All paths from a controller with HP Active/Standby firmware should really be grouped according to their status; otherwise the path switching will not work properly or you can use only one path to that array.
This patch adds a new priority checker 'mpath_hp_sw' which will allow these paths to be grouped accordingly.

---
 path_priority/pp_hp_sw/Makefile   |   25 ++++++++
 path_priority/pp_hp_sw/pp_hp_sw.c |  119 +++++++++++++++++++++++++++++++++++++
 2 files changed, 144 insertions(+), 0 deletions(-)
path_priority/pp_hp_sw/Makefile new file +25 -0
new file mode 100644
index 0000000..e7debf5
@@ -0,0 +1,25 @@
+EXEC		= mpath_prio_hp_sw
+BUILD		= glibc
+OBJS		= pp_hp_sw.o
+
+TOPDIR		= ../..
+include $(TOPDIR)/Makefile.inc
+
+all: $(BUILD)
+
+glibc:	$(OBJS)
+	$(CC) -o $(EXEC) $(OBJS) $(LDFLAGS)
+
+klibc:	$(OBJS)
+	$(CC) -static -o $(EXEC) $(OBJS)
+
+install: $(EXEC)
+	install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
+
+uninstall:
+	rm $(DESTDIR)$(bindir)/$(EXEC)
+clean:	
+	rm -f *.o $(EXEC)
+
+%.o:	%.c
+	$(CC) $(CFLAGS) -c -o $@ $<
path_priority/pp_hp_sw/pp_hp_sw.c new file +119 -0

119 lines not on this page · raw message

Signature · 1 line
1.4.3.4