Rebase to upstream

This commit is contained in:
Mike Christie 2008-11-25 18:17:13 +00:00
parent a8ea6d9b12
commit d33bf0f27d
5 changed files with 20 additions and 34 deletions

View File

@ -11,3 +11,4 @@ open-iscsi-2.0-865.2.tar.gz
open-iscsi-2.0-865.13.tar.gz open-iscsi-2.0-865.13.tar.gz
open-iscsi-2.0-868-test1.tar.gz open-iscsi-2.0-868-test1.tar.gz
open-iscsi-2.0-870-rc1.tar.gz open-iscsi-2.0-870-rc1.tar.gz
open-iscsi-2.0-870.1.tar.gz

View File

@ -1,19 +1,3 @@
diff -up open-iscsi-2.0-870-rc1/usr/idbm.c.error open-iscsi-2.0-870-rc1/usr/idbm.c
--- open-iscsi-2.0-870-rc1/usr/idbm.c.error 2008-09-30 10:09:40.000000000 +0200
+++ open-iscsi-2.0-870-rc1/usr/idbm.c 2008-09-30 10:20:43.000000000 +0200
@@ -850,6 +850,12 @@ int idbm_lock(void)
if (ret == 0)
break;
+ if (errno != EEXIST) {
+ log_error("Could not lock discovery DB: %s: %s",
+ LOCK_WRITE_FILE, strerror(errno));
+ exit(-1);
+ }
+
usleep(10000);
}
diff -up open-iscsi-2.0-870-rc1/usr/iscsiadm.c.error open-iscsi-2.0-870-rc1/usr/iscsiadm.c diff -up open-iscsi-2.0-870-rc1/usr/iscsiadm.c.error open-iscsi-2.0-870-rc1/usr/iscsiadm.c
--- open-iscsi-2.0-870-rc1/usr/iscsiadm.c.error 2008-09-30 10:20:15.000000000 +0200 --- open-iscsi-2.0-870-rc1/usr/iscsiadm.c.error 2008-09-30 10:20:15.000000000 +0200
+++ open-iscsi-2.0-870-rc1/usr/iscsiadm.c 2008-09-30 10:20:15.000000000 +0200 +++ open-iscsi-2.0-870-rc1/usr/iscsiadm.c 2008-09-30 10:20:15.000000000 +0200
@ -22,7 +6,7 @@ diff -up open-iscsi-2.0-870-rc1/usr/iscsiadm.c.error open-iscsi-2.0-870-rc1/usr/
usage(0); usage(0);
+ if (getuid()) { + if (getuid()) {
+ log_error("must be run as root"); + log_error("Must be run as root.");
+ rc = -1; + rc = -1;
+ goto free_ifaces; + goto free_ifaces;
+ } + }

View File

@ -1,6 +1,6 @@
diff -aurp open-iscsi-2.0-868-test1/include/fw_context.h open-iscsi-2.0-868-test1.work/include/fw_context.h diff -aurp open-iscsi-2.0-870.1/include/fw_context.h open-iscsi-2.0-870.1.work/include/fw_context.h
--- open-iscsi-2.0-868-test1/include/fw_context.h 2008-03-25 03:37:26.000000000 -0500 --- open-iscsi-2.0-870.1/include/fw_context.h 2008-11-22 11:06:46.000000000 -0600
+++ open-iscsi-2.0-868-test1.work/include/fw_context.h 2008-03-25 03:37:37.000000000 -0500 +++ open-iscsi-2.0-870.1.work/include/fw_context.h 2008-11-25 11:31:09.000000000 -0600
@@ -23,21 +23,30 @@ @@ -23,21 +23,30 @@
struct boot_context { struct boot_context {
@ -34,10 +34,10 @@ diff -aurp open-iscsi-2.0-868-test1/include/fw_context.h open-iscsi-2.0-868-test
}; };
extern int fw_get_entry(struct boot_context *context, const char *filepath); extern int fw_get_entry(struct boot_context *context, const char *filepath);
diff -aurp open-iscsi-2.0-868-test1/utils/fwparam_ibft/fw_entry.c open-iscsi-2.0-868-test1.work/utils/fwparam_ibft/fw_entry.c diff -aurp open-iscsi-2.0-870.1/utils/fwparam_ibft/fw_entry.c open-iscsi-2.0-870.1.work/utils/fwparam_ibft/fw_entry.c
--- open-iscsi-2.0-868-test1/utils/fwparam_ibft/fw_entry.c 2008-03-25 03:37:26.000000000 -0500 --- open-iscsi-2.0-870.1/utils/fwparam_ibft/fw_entry.c 2008-11-25 11:34:56.000000000 -0600
+++ open-iscsi-2.0-868-test1.work/utils/fwparam_ibft/fw_entry.c 2008-03-25 03:37:37.000000000 -0500 +++ open-iscsi-2.0-870.1.work/utils/fwparam_ibft/fw_entry.c 2008-11-25 11:34:25.000000000 -0600
@@ -34,24 +34,13 @@ int fw_get_entry(struct boot_context *co @@ -34,22 +34,13 @@ int fw_get_entry(struct boot_context *co
return ret; return ret;
} }
@ -46,8 +46,6 @@ diff -aurp open-iscsi-2.0-868-test1/utils/fwparam_ibft/fw_entry.c open-iscsi-2.0
- */ - */
-static void dump_mac(struct boot_context *context) -static void dump_mac(struct boot_context *context)
-{ -{
- int i;
-
- if (!strlen(context->mac)) - if (!strlen(context->mac))
- return; - return;
- -
@ -67,7 +65,7 @@ diff -aurp open-iscsi-2.0-868-test1/utils/fwparam_ibft/fw_entry.c open-iscsi-2.0
} }
static void dump_target(struct boot_context *context) static void dump_target(struct boot_context *context)
@@ -75,11 +64,44 @@ static void dump_target(struct boot_cont @@ -73,11 +64,44 @@ static void dump_target(struct boot_cont
if (strlen(context->chap_password_in)) if (strlen(context->chap_password_in))
printf("node.session.auth.password_in = %s\n", printf("node.session.auth.password_in = %s\n",
context->chap_password_in); context->chap_password_in);
@ -113,9 +111,9 @@ diff -aurp open-iscsi-2.0-868-test1/utils/fwparam_ibft/fw_entry.c open-iscsi-2.0
+ dump_network(context); + dump_network(context);
dump_target(context); dump_target(context);
} }
diff -aurp open-iscsi-2.0-868-test1/utils/fwparam_ibft/fwparam_ibft_sysfs.c open-iscsi-2.0-868-test1.work/utils/fwparam_ibft/fwparam_ibft_sysfs.c diff -aurp open-iscsi-2.0-870.1/utils/fwparam_ibft/fwparam_ibft_sysfs.c open-iscsi-2.0-870.1.work/utils/fwparam_ibft/fwparam_ibft_sysfs.c
--- open-iscsi-2.0-868-test1/utils/fwparam_ibft/fwparam_ibft_sysfs.c 2008-03-25 03:37:26.000000000 -0500 --- open-iscsi-2.0-870.1/utils/fwparam_ibft/fwparam_ibft_sysfs.c 2008-11-25 11:34:56.000000000 -0600
+++ open-iscsi-2.0-868-test1.work/utils/fwparam_ibft/fwparam_ibft_sysfs.c 2008-03-25 04:08:10.000000000 -0500 +++ open-iscsi-2.0-870.1.work/utils/fwparam_ibft/fwparam_ibft_sysfs.c 2008-11-25 11:31:09.000000000 -0600
@@ -24,11 +24,15 @@ @@ -24,11 +24,15 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -1,8 +1,8 @@
Summary: iSCSI daemon and utility programs Summary: iSCSI daemon and utility programs
Name: iscsi-initiator-utils Name: iscsi-initiator-utils
Version: 6.2.0.870 Version: 6.2.0.870
Release: 0.2.rc1%{?dist} Release: 1.0%{?dist}
Source0: http://www.open-iscsi.org/bits/open-iscsi-2.0-870-rc1.tar.gz Source0: http://www.open-iscsi.org/bits/open-iscsi-2.0-870.1.tar.gz
Source1: iscsid.init Source1: iscsid.init
Source2: iscsidevs.init Source2: iscsidevs.init
Source3: 04-iscsi Source3: 04-iscsi
@ -30,7 +30,7 @@ for distributed disk access using SCSI commands sent over Internet
Protocol networks. Protocol networks.
%prep %prep
%setup -q -n open-iscsi-2.0-870-rc1 %setup -q -n open-iscsi-2.0-870.1
%patch0 -p1 -b .update-initscripts-and-docs %patch0 -p1 -b .update-initscripts-and-docs
%patch1 -p1 -b .use-var-for-config %patch1 -p1 -b .use-var-for-config
%patch2 -p1 -b .use-red-hat-for-name %patch2 -p1 -b .use-red-hat-for-name
@ -117,6 +117,9 @@ fi
%changelog %changelog
* Tue Nov 25 2008 Mike Christie <mchrsiti@redhat.com> 6.2.0.870-1.0
- Rebase to upstream
* Thu Nov 6 2008 Hans de Goede <hdegoede@redhat.com> 6.2.0.870-0.2.rc1 * Thu Nov 6 2008 Hans de Goede <hdegoede@redhat.com> 6.2.0.870-0.2.rc1
- Add force-start iscsid initscript option and use that in "patch to make - Add force-start iscsid initscript option and use that in "patch to make
iscsiadm start iscsid when needed" so that iscsid will actual be started iscsiadm start iscsid when needed" so that iscsid will actual be started

View File

@ -1 +1 @@
2740f55611d3ea59a21ec08b25853c55 open-iscsi-2.0-870-rc1.tar.gz 3b7e273ad2696899df2b8e5622fdeb2c open-iscsi-2.0-870.1.tar.gz