From ddb64c04bfa0e4270ea44e1e4aca294564773268 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 2 Apr 2012 15:43:08 -0700 Subject: [PATCH] refresh --- meta | 7 ++--- patches/daemonize | 46 +++++++++++++++++++++------- patches/refresh-temp | 72 -------------------------------------------- 3 files changed, 38 insertions(+), 87 deletions(-) delete mode 100644 patches/refresh-temp diff --git a/meta b/meta index 46ef1cf..b1b33bd 100644 --- a/meta +++ b/meta @@ -1,10 +1,9 @@ Version: 1 -Previous: 9a936aa5c15080f633967e9495779b2ae2a09739 -Head: 394c529bdf34956d56da4b4650f3ed7eed1a8f37 +Previous: a108d5b129f364dbdf7146cbd989fee1faf624da +Head: 276e46566694ed5a2456e32408eb22d896586b56 Applied: af_ib: fb683ba55480ada43c09aa48b3cb18bde139f72c - daemonize: 91182ecb1f98642631c73428866a556630e93f9a - refresh-temp: 394c529bdf34956d56da4b4650f3ed7eed1a8f37 + daemonize: 276e46566694ed5a2456e32408eb22d896586b56 Unapplied: rel-1.0.6: a256b7d7e603aaa09fda99ec9c0bf7d4968104fd dev-name2ip: 8e00708e882239292492e13aa51c82042255933c diff --git a/patches/daemonize b/patches/daemonize index d157826..6033036 100644 --- a/patches/daemonize +++ b/patches/daemonize @@ -1,5 +1,5 @@ Bottom: 163f50499aea8749e94a5c93c4939e5f74ae1906 -Top: 23b557b691cf74c5660ba20c705a0a41bc94de81 +Top: b8fdd0200efe22a2cc85ef2b2f7837d307532809 Author: Sean Hefty Date: 2012-03-30 16:31:08 -0700 @@ -292,10 +292,10 @@ similarity index 100% rename from acm_opts.cfg rename to ibacm_opts.cfg diff --git a/linux/osd.h b/linux/osd.h -index 33ea842..030f268 100644 +index 33ea842..3c66761 100644 --- a/linux/osd.h +++ b/linux/osd.h -@@ -45,9 +45,12 @@ +@@ -45,9 +45,11 @@ #include #include @@ -303,9 +303,8 @@ index 33ea842..030f268 100644 -#define ACM_ADDR_FILE "acm_addr.cfg" -#define ACM_OPTS_FILE "acm_opts.cfg" +#ifndef SYSCONFDIR -+#define SYSCONFDIR "/etc" ++#define SYSCONFDIR "/etc/rdma" +#endif -+#define ACM_DEST_DIR SYSCONFDIR "/rdma" +#define ACM_ADDR_FILE "ibacm_addr.cfg" +#define ACM_OPTS_FILE "ibacm_opts.cfg" @@ -540,7 +539,7 @@ index f26ffb8..c0c63fc 100644 -ib_acme(1), ib_acm(1) +ib_acme(1), ibacm(1) diff --git a/src/acm.c b/src/acm.c -index 906c926..2a718b2 100644 +index 906c926..b992c8c 100644 --- a/src/acm.c +++ b/src/acm.c @@ -205,11 +205,11 @@ static atomic_t counter[ACM_MAX_COUNTER]; @@ -549,8 +548,8 @@ index 906c926..2a718b2 100644 */ -static char *opts_file = "/etc/ibacm/acm_opts.cfg"; -static char *addr_file = "/etc/ibacm/acm_addr.cfg"; -+static char *opts_file = ACM_DEST_DIR "/" ACM_OPTS_FILE; -+static char *addr_file = ACM_DEST_DIR "/" ACM_ADDR_FILE; ++static char *opts_file = SYSCONFDIR "/" ACM_OPTS_FILE; ++static char *addr_file = SYSCONFDIR "/" ACM_ADDR_FILE; static char log_file[128] = "/var/log/ibacm.log"; static int log_level = 0; -static char lock_file[128] = "/var/lock/ibacm.pid"; @@ -558,10 +557,31 @@ index 906c926..2a718b2 100644 static enum acm_addr_prot addr_prot = ACM_ADDR_PROT_ACM; static enum acm_route_prot route_prot = ACM_ROUTE_PROT_ACM; static enum acm_loopback_prot loopback_prot = ACM_LOOPBACK_PROT_LOCAL; +@@ -3156,9 +3156,9 @@ static void show_usage(char *program) + printf(" [-D] - run as a daemon (default)\n"); + printf(" [-P] - run as a standard process\n"); + printf(" [-A addr_file] - address configuration file\n"); +- printf(" (default %s/%s\n", ACM_DEST_DIR, ACM_ADDR_FILE); ++ printf(" (default %s/%s\n", SYSCONFDIR, ACM_ADDR_FILE); + printf(" [-O option_file] - option configuration file\n"); +- printf(" (default %s/%s\n", ACM_DEST_DIR, ACM_OPTS_FILE); ++ printf(" (default %s/%s\n", SYSCONFDIR, ACM_OPTS_FILE); + } + + int CDECL_FUNC main(int argc, char **argv) diff --git a/src/acme.c b/src/acme.c -index 3d7461b..43e6dd9 100644 +index 3d7461b..94ff710 100644 --- a/src/acme.c +++ b/src/acme.c +@@ -43,7 +43,7 @@ + #include + #include "libacm.h" + +-static char *dest_dir = ACM_DEST_DIR; ++static char *dest_dir = SYSCONFDIR; + static char *addr_file = ACM_ADDR_FILE; + static char *opts_file = ACM_OPTS_FILE; + @@ -69,7 +69,7 @@ extern char **parse(char *args, int *count); static void show_usage(char *program) { @@ -571,7 +591,7 @@ index 3d7461b..43e6dd9 100644 printf(" [-f addr_format] - i(p), n(ame), l(id), g(gid), or u(nspecified)\n"); printf(" address format for -s and -d options, default: 'u'\n"); printf(" [-s src_addr] - source address for path queries\n"); -@@ -79,10 +79,10 @@ static void show_usage(char *program) +@@ -79,13 +79,13 @@ static void show_usage(char *program) printf(" [-P] - query performance data from destination service\n"); printf(" [-S svc_addr] - address of ACM service, default: local service\n"); printf("usage 2: %s\n", program); @@ -583,7 +603,11 @@ index 3d7461b..43e6dd9 100644 + printf(" -O [opt_file] - generate local ibacm_opts.cfg options file\n"); printf(" (default is %s)\n", ACM_OPTS_FILE); printf(" -D dest_dir - specify destination directory for output files\n"); - printf(" (default is %s)\n", ACM_DEST_DIR); +- printf(" (default is %s)\n", ACM_DEST_DIR); ++ printf(" (default is %s)\n", SYSCONFDIR); + printf(" -V - enable verbose output\n"); + } + @@ -94,7 +94,7 @@ static void gen_opts_temp(FILE *f) fprintf(f, "# InfiniBand Multicast Communication Manager for clusters configuration file\n"); fprintf(f, "#\n"); diff --git a/patches/refresh-temp b/patches/refresh-temp deleted file mode 100644 index 8b6c6ec..0000000 --- a/patches/refresh-temp +++ /dev/null @@ -1,72 +0,0 @@ -Bottom: 23b557b691cf74c5660ba20c705a0a41bc94de81 -Top: b8fdd0200efe22a2cc85ef2b2f7837d307532809 -Author: Sean Hefty -Date: 2012-04-02 15:43:07 -0700 - -Refresh of daemonize - ---- - -diff --git a/linux/osd.h b/linux/osd.h -index 030f268..3c66761 100644 ---- a/linux/osd.h -+++ b/linux/osd.h -@@ -46,9 +46,8 @@ - #include - - #ifndef SYSCONFDIR --#define SYSCONFDIR "/etc" -+#define SYSCONFDIR "/etc/rdma" - #endif --#define ACM_DEST_DIR SYSCONFDIR "/rdma" - #define ACM_ADDR_FILE "ibacm_addr.cfg" - #define ACM_OPTS_FILE "ibacm_opts.cfg" - -diff --git a/src/acm.c b/src/acm.c -index 2a718b2..b992c8c 100644 ---- a/src/acm.c -+++ b/src/acm.c -@@ -205,8 +205,8 @@ static atomic_t counter[ACM_MAX_COUNTER]; - /* - * Service options - may be set through acm_opts file. - */ --static char *opts_file = ACM_DEST_DIR "/" ACM_OPTS_FILE; --static char *addr_file = ACM_DEST_DIR "/" ACM_ADDR_FILE; -+static char *opts_file = SYSCONFDIR "/" ACM_OPTS_FILE; -+static char *addr_file = SYSCONFDIR "/" ACM_ADDR_FILE; - static char log_file[128] = "/var/log/ibacm.log"; - static int log_level = 0; - static char lock_file[128] = "/var/run/ibacm.pid"; -@@ -3156,9 +3156,9 @@ static void show_usage(char *program) - printf(" [-D] - run as a daemon (default)\n"); - printf(" [-P] - run as a standard process\n"); - printf(" [-A addr_file] - address configuration file\n"); -- printf(" (default %s/%s\n", ACM_DEST_DIR, ACM_ADDR_FILE); -+ printf(" (default %s/%s\n", SYSCONFDIR, ACM_ADDR_FILE); - printf(" [-O option_file] - option configuration file\n"); -- printf(" (default %s/%s\n", ACM_DEST_DIR, ACM_OPTS_FILE); -+ printf(" (default %s/%s\n", SYSCONFDIR, ACM_OPTS_FILE); - } - - int CDECL_FUNC main(int argc, char **argv) -diff --git a/src/acme.c b/src/acme.c -index 43e6dd9..94ff710 100644 ---- a/src/acme.c -+++ b/src/acme.c -@@ -43,7 +43,7 @@ - #include - #include "libacm.h" - --static char *dest_dir = ACM_DEST_DIR; -+static char *dest_dir = SYSCONFDIR; - static char *addr_file = ACM_ADDR_FILE; - static char *opts_file = ACM_OPTS_FILE; - -@@ -85,7 +85,7 @@ static void show_usage(char *program) - printf(" -O [opt_file] - generate local ibacm_opts.cfg options file\n"); - printf(" (default is %s)\n", ACM_OPTS_FILE); - printf(" -D dest_dir - specify destination directory for output files\n"); -- printf(" (default is %s)\n", ACM_DEST_DIR); -+ printf(" (default is %s)\n", SYSCONFDIR); - printf(" -V - enable verbose output\n"); - } -- 2.46.0