From a5cff233a3880bd375c11a55960a1bfc5629df6f Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 2 Apr 2012 15:30:10 -0700 Subject: [PATCH] refresh --- meta | 7 ++--- patches/daemonize | 46 +++++++--------------------- patches/refresh-temp | 72 -------------------------------------------- 3 files changed, 14 insertions(+), 111 deletions(-) delete mode 100644 patches/refresh-temp diff --git a/meta b/meta index 2cf6579..780447d 100644 --- a/meta +++ b/meta @@ -1,10 +1,9 @@ Version: 1 -Previous: 30007eec507cc191795ecc357c19c7f5b1bdd17f -Head: b6b1567a8d2aae117fb33707c9db471e51bcbae2 +Previous: 5873ce10117f09347c1d5824ebeb5403bb3d2435 +Head: 91182ecb1f98642631c73428866a556630e93f9a Applied: af_ib: fb683ba55480ada43c09aa48b3cb18bde139f72c - daemonize: 526b1f53d85aecbcd55c299a1a7d606091494d3d - refresh-temp: b6b1567a8d2aae117fb33707c9db471e51bcbae2 + daemonize: 91182ecb1f98642631c73428866a556630e93f9a Unapplied: rel-1.0.6: 03aababda52a46ac0d6d4b670f76f44e298c6285 dev-name2ip: 8e00708e882239292492e13aa51c82042255933c diff --git a/patches/daemonize b/patches/daemonize index c65d757..d157826 100644 --- a/patches/daemonize +++ b/patches/daemonize @@ -1,5 +1,5 @@ Bottom: 163f50499aea8749e94a5c93c4939e5f74ae1906 -Top: c75a63ed35d19ebbd46f0db013a471d4c891ecae +Top: 23b557b691cf74c5660ba20c705a0a41bc94de81 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..943b719 100644 +index 33ea842..030f268 100644 --- a/linux/osd.h +++ b/linux/osd.h -@@ -45,9 +45,11 @@ +@@ -45,9 +45,12 @@ #include #include @@ -303,8 +303,9 @@ index 33ea842..943b719 100644 -#define ACM_ADDR_FILE "acm_addr.cfg" -#define ACM_OPTS_FILE "acm_opts.cfg" +#ifndef SYSCONFDIR -+#define SYSCONFDIR "\etc\rdma" ++#define SYSCONFDIR "/etc" +#endif ++#define ACM_DEST_DIR SYSCONFDIR "/rdma" +#define ACM_ADDR_FILE "ibacm_addr.cfg" +#define ACM_OPTS_FILE "ibacm_opts.cfg" @@ -539,7 +540,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..b992c8c 100644 +index 906c926..2a718b2 100644 --- a/src/acm.c +++ b/src/acm.c @@ -205,11 +205,11 @@ static atomic_t counter[ACM_MAX_COUNTER]; @@ -548,8 +549,8 @@ index 906c926..b992c8c 100644 */ -static char *opts_file = "/etc/ibacm/acm_opts.cfg"; -static char *addr_file = "/etc/ibacm/acm_addr.cfg"; -+static char *opts_file = SYSCONFDIR "/" ACM_OPTS_FILE; -+static char *addr_file = SYSCONFDIR "/" ACM_ADDR_FILE; ++static char *opts_file = ACM_DEST_DIR "/" ACM_OPTS_FILE; ++static char *addr_file = ACM_DEST_DIR "/" 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"; @@ -557,31 +558,10 @@ index 906c926..b992c8c 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..94ff710 100644 +index 3d7461b..43e6dd9 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) { @@ -591,7 +571,7 @@ index 3d7461b..94ff710 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,13 +79,13 @@ static void show_usage(char *program) +@@ -79,10 +79,10 @@ 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); @@ -603,11 +583,7 @@ index 3d7461b..94ff710 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", SYSCONFDIR); - printf(" -V - enable verbose output\n"); - } - + printf(" (default is %s)\n", ACM_DEST_DIR); @@ -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 e74d9bd..0000000 --- a/patches/refresh-temp +++ /dev/null @@ -1,72 +0,0 @@ -Bottom: c75a63ed35d19ebbd46f0db013a471d4c891ecae -Top: 23b557b691cf74c5660ba20c705a0a41bc94de81 -Author: Sean Hefty -Date: 2012-04-02 15:30:10 -0700 - -Refresh of daemonize - ---- - -diff --git a/linux/osd.h b/linux/osd.h -index 943b719..030f268 100644 ---- a/linux/osd.h -+++ b/linux/osd.h -@@ -46,8 +46,9 @@ - #include - - #ifndef SYSCONFDIR --#define SYSCONFDIR "\etc\rdma" -+#define SYSCONFDIR "/etc" - #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 b992c8c..2a718b2 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 = SYSCONFDIR "/" ACM_OPTS_FILE; --static char *addr_file = SYSCONFDIR "/" ACM_ADDR_FILE; -+static char *opts_file = ACM_DEST_DIR "/" ACM_OPTS_FILE; -+static char *addr_file = ACM_DEST_DIR "/" 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", SYSCONFDIR, ACM_ADDR_FILE); -+ printf(" (default %s/%s\n", ACM_DEST_DIR, ACM_ADDR_FILE); - printf(" [-O option_file] - option configuration file\n"); -- printf(" (default %s/%s\n", SYSCONFDIR, ACM_OPTS_FILE); -+ printf(" (default %s/%s\n", ACM_DEST_DIR, ACM_OPTS_FILE); - } - - int CDECL_FUNC main(int argc, char **argv) -diff --git a/src/acme.c b/src/acme.c -index 94ff710..43e6dd9 100644 ---- a/src/acme.c -+++ b/src/acme.c -@@ -43,7 +43,7 @@ - #include - #include "libacm.h" - --static char *dest_dir = SYSCONFDIR; -+static char *dest_dir = ACM_DEST_DIR; - 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", SYSCONFDIR); -+ printf(" (default is %s)\n", ACM_DEST_DIR); - printf(" -V - enable verbose output\n"); - } -- 2.46.0