]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
refresh
authorSean Hefty <sean.hefty@intel.com>
Mon, 2 Apr 2012 22:43:08 +0000 (15:43 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 2 Apr 2012 22:43:08 +0000 (15:43 -0700)
meta
patches/daemonize
patches/refresh-temp [deleted file]

diff --git a/meta b/meta
index 46ef1cf9dbfc16aa2e01cf67307a1dc6053e2d2a..b1b33bd0bcf99a52a9bb1d9a6abda3d18b1ea1b2 100644 (file)
--- 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
index d157826eabbdf412900454939f234e59000f3d3e..6033036f54652db08a879ae13bb4be52be0ab4eb 100644 (file)
@@ -1,5 +1,5 @@
 Bottom: 163f50499aea8749e94a5c93c4939e5f74ae1906
-Top:    23b557b691cf74c5660ba20c705a0a41bc94de81
+Top:    b8fdd0200efe22a2cc85ef2b2f7837d307532809
 Author: Sean Hefty <sean.hefty@intel.com>
 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 <sys/time.h>\r
  #include <netinet/in.h>\r
  \r
@@ -303,9 +303,8 @@ index 33ea842..030f268 100644
 -#define ACM_ADDR_FILE "acm_addr.cfg"\r
 -#define ACM_OPTS_FILE "acm_opts.cfg"\r
 +#ifndef SYSCONFDIR\r
-+#define SYSCONFDIR "/etc"\r
++#define SYSCONFDIR "/etc/rdma"\r
 +#endif\r
-+#define ACM_DEST_DIR  SYSCONFDIR "/rdma"\r
 +#define ACM_ADDR_FILE "ibacm_addr.cfg"\r
 +#define ACM_OPTS_FILE "ibacm_opts.cfg"\r
  \r
@@ -540,7 +539,7 @@ index f26ffb8..c0c63fc 100644
 -ib_acme(1), ib_acm(1)\r
 +ib_acme(1), ibacm(1)\r
 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 <infiniband/acm.h>
+ #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 (file)
index 8b6c6ec..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-Bottom: 23b557b691cf74c5660ba20c705a0a41bc94de81
-Top:    b8fdd0200efe22a2cc85ef2b2f7837d307532809
-Author: Sean Hefty <sean.hefty@intel.com>
-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 <netinet/in.h>\r
\r
- #ifndef SYSCONFDIR\r
--#define SYSCONFDIR "/etc"\r
-+#define SYSCONFDIR "/etc/rdma"\r
- #endif\r
--#define ACM_DEST_DIR  SYSCONFDIR "/rdma"\r
- #define ACM_ADDR_FILE "ibacm_addr.cfg"\r
- #define ACM_OPTS_FILE "ibacm_opts.cfg"\r
\r
-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 <infiniband/acm.h>
- #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");
- }