From: sean.hefty@intel.com Date: Tue, 3 Apr 2012 18:38:12 +0000 (-0700) Subject: refresh (create temporary patch) X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3d4131ef62552f0bc540234c1cf6e4ed58a3d29e;p=~shefty%2Fibacm.git refresh (create temporary patch) --- diff --git a/meta b/meta index 5f65e12..79c193c 100644 --- a/meta +++ b/meta @@ -1,9 +1,10 @@ Version: 1 -Previous: d1969bbf4fb5999756000c17a5ef38094265ce50 -Head: 4c2c0c0ee997fbb00b928cfd471606c2d6209613 +Previous: 641cf0560c0b2285c2bb5d159ea90570721ac9a6 +Head: 63f69b9ccb37f95ff628b95cd4e1ea6e6bcf0c00 Applied: af_ib: fb683ba55480ada43c09aa48b3cb18bde139f72c daemonize: 4c2c0c0ee997fbb00b928cfd471606c2d6209613 + refresh-temp: 63f69b9ccb37f95ff628b95cd4e1ea6e6bcf0c00 Unapplied: rel-1.0.6: 22e4425b34449aaba064c5dd2f726aff95faca73 dev-name2ip: 8e00708e882239292492e13aa51c82042255933c diff --git a/patches/refresh-temp b/patches/refresh-temp new file mode 100644 index 0000000..c2bc260 --- /dev/null +++ b/patches/refresh-temp @@ -0,0 +1,89 @@ +Bottom: 56f2c285e9a48bd5f17f10c897f8f459b10cd403 +Top: 5845b20997dda75dd9baf21235ec37582f2e3321 +Author: sean.hefty@intel.com +Date: 2012-04-03 11:38:12 -0700 + +Refresh of daemonize + +--- + +diff --git a/Makefile.am b/Makefile.am +index 4ede5ae..58e3415 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -26,6 +26,9 @@ install-exec-hook: + if ! test -d $(DESTDIR)$(sysconfdir); then \ + mkdir -p $(DESTDIR)$(sysconfdir); \ + fi; \ ++ if ! test -d $(DESTDIR)$(sysconfdir)/rdma; then \ ++ mkdir -p $(DESTDIR)$(sysconfdir)/rdma; \ ++ fi; \ + if ! test -d $(DESTDIR)$(sysconfdir)/init.d; then \ + mkdir -p $(DESTDIR)$(sysconfdir)/init.d; \ + fi; \ +diff --git a/linux/osd.h b/linux/osd.h +index c2360f3..169e041 100644 +--- a/linux/osd.h ++++ b/linux/osd.h +@@ -46,11 +46,12 @@ + #include + + #ifndef SYSCONFDIR +-#define SYSCONFDIR "/etc/rdma" ++#define SYSCONFDIR "/etc" + #endif + #ifndef BINDIR + #define BINDIR "/usr/bin" + #endif ++#define ACM_CONF_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 82436e6..4e90e8c 100644 +--- a/src/acm.c ++++ b/src/acm.c +@@ -206,8 +206,8 @@ static atomic_t counter[ACM_MAX_COUNTER]; + * Service options - may be set through acm_opts file. + */ + static char *acme = BINDIR "/ib_acme -A"; +-static char *opts_file = SYSCONFDIR "/" ACM_OPTS_FILE; +-static char *addr_file = SYSCONFDIR "/" ACM_ADDR_FILE; ++static char *opts_file = ACM_CONF_DIR "/" ACM_OPTS_FILE; ++static char *addr_file = ACM_CONF_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"; +@@ -3157,9 +3157,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_CONF_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_CONF_DIR, ACM_OPTS_FILE); + } + + int CDECL_FUNC main(int argc, char **argv) +diff --git a/src/acme.c b/src/acme.c +index 94ff710..5bc6461 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_CONF_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_CONF_DIR); + printf(" -V - enable verbose output\n"); + }