Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
open-iscsi
open-iscsi-allow-onboot-for-loginall
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File open-iscsi-allow-onboot-for-loginall of Package open-iscsi
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor