|
@ -23,7 +23,18 @@ index b6193e7..2208c4a 100644 |
|
|
#include <sys/stat.h> |
|
|
#include <sys/stat.h> |
|
|
#include <sys/file.h> |
|
|
#include <sys/file.h> |
|
|
#include <inttypes.h> |
|
|
#include <inttypes.h> |
|
|
@@ -202,6 +203,8 @@ static struct int_list_tbl {
|
|
|
|
|
|
|
|
|
@@ -44,6 +45,10 @@
|
|
|
|
|
|
#include "fw_context.h" |
|
|
|
|
|
#include "iscsi_err.h" |
|
|
|
|
|
|
|
|
|
|
|
+#ifndef GLOB_ONLYDIR
|
|
|
|
|
|
+#define GLOB_ONLYDIR 0x100
|
|
|
|
|
|
+#endif
|
|
|
|
|
|
+
|
|
|
|
|
|
#define IDBM_HIDE 0 /* Hide parameter when print. */ |
|
|
|
|
|
#define IDBM_SHOW 1 /* Show parameter when print. */ |
|
|
|
|
|
#define IDBM_MASKED 2 /* Show "stars" instead of real value when print */ |
|
|
|
|
|
@@ -202,6 +207,8 @@ static struct int_list_tbl {
|
|
|
{ "SHA3-256", AUTH_CHAP_ALG_SHA3_256 }, |
|
|
{ "SHA3-256", AUTH_CHAP_ALG_SHA3_256 }, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -32,7 +43,7 @@ index b6193e7..2208c4a 100644 |
|
|
static void |
|
|
static void |
|
|
idbm_recinfo_discovery(discovery_rec_t *r, recinfo_t *ri) |
|
|
idbm_recinfo_discovery(discovery_rec_t *r, recinfo_t *ri) |
|
|
{ |
|
|
{ |
|
|
@@ -2206,12 +2209,49 @@ static int idbm_rec_write_old(node_rec_t *rec)
|
|
|
|
|
|
|
|
|
@@ -2206,12 +2213,49 @@ static int idbm_rec_write_old(node_rec_t *rec)
|
|
|
FILE *f; |
|
|
FILE *f; |
|
|
char *portal; |
|
|
char *portal; |
|
|
int rc = 0; |
|
|
int rc = 0; |
|
@ -82,6 +93,4 @@ index b6193e7..2208c4a 100644 |
|
|
snprintf(portal, PATH_MAX, "%s/%s/%s,%d", NODE_CONFIG_DIR, |
|
|
snprintf(portal, PATH_MAX, "%s/%s/%s,%d", NODE_CONFIG_DIR, |
|
|
rec->name, rec->conn[0].address, rec->conn[0].port); |
|
|
rec->name, rec->conn[0].address, rec->conn[0].port); |
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
2.21.1 |
|
|
|
|
|
|
|
|
|