forked from pool/open-iscsi
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
From 33af14665a070c99fb1b8c1e049211550a883f04 Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Wed, 12 Nov 2008 10:11:19 +0100
|
|
Subject: [PATCH] iscsiadm: Allow 'onboot' option for loginall
|
|
|
|
There is no reason to not allow onboot for iscsiadm -L. In fact,
|
|
it's required for SUSE startup :-)
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
usr/iscsiadm.c | 8 +-------
|
|
1 files changed, 1 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
|
|
index 4b276e9..bac9a5a 100644
|
|
--- a/usr/iscsiadm.c
|
|
+++ b/usr/iscsiadm.c
|
|
@@ -690,12 +690,6 @@ static int
|
|
__login_by_startup(void *data, struct list_head *list, struct node_rec *rec)
|
|
{
|
|
char *mode = data;
|
|
- /*
|
|
- * we always skip onboot because this should be handled by
|
|
- * something else
|
|
- */
|
|
- if (rec->startup == ISCSI_STARTUP_ONBOOT)
|
|
- return -1;
|
|
|
|
if (match_startup_mode(rec, mode))
|
|
return -1;
|
|
@@ -711,7 +705,7 @@ login_by_startup(char *mode)
|
|
struct list_head rec_list;
|
|
|
|
if (!mode || !(!strcmp(mode, "automatic") || !strcmp(mode, "all") ||
|
|
- !strcmp(mode,"manual"))) {
|
|
+ !strcmp(mode,"manual") || !strcmp(mode, "onboot"))) {
|
|
log_error("Invalid loginall option %s.", mode);
|
|
usage(0);
|
|
return EINVAL;
|
|
--
|
|
1.6.0.2
|
|
|