summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2005-11-06 06:39:16 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2005-11-06 06:39:16 +0000
commite37b967fffd8fdb37487d86e2d31352c1a6c2f40 (patch)
treef7cbb1c5b48b55eb7d629a8759e053a04297e4a9 /sys-block/open-iscsi/files
parentAdded revision -r3 with a fix for downloading files over ssh2 that are read-o... (diff)
downloadhistorical-e37b967fffd8fdb37487d86e2d31352c1a6c2f40.tar.gz
historical-e37b967fffd8fdb37487d86e2d31352c1a6c2f40.tar.bz2
historical-e37b967fffd8fdb37487d86e2d31352c1a6c2f40.zip
Version bump. Custom patches for compile agasinst 2.6.13 or newer, and possible IDBM corruption fix.
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'sys-block/open-iscsi/files')
-rw-r--r--sys-block/open-iscsi/files/backward-compile-2.6.13.patch14
-rw-r--r--sys-block/open-iscsi/files/digest-open-iscsi-0.4.4381
-rw-r--r--sys-block/open-iscsi/files/r438-idbm-file-locking.diff23
3 files changed, 38 insertions, 0 deletions
diff --git a/sys-block/open-iscsi/files/backward-compile-2.6.13.patch b/sys-block/open-iscsi/files/backward-compile-2.6.13.patch
new file mode 100644
index 000000000000..3e66792aaef3
--- /dev/null
+++ b/sys-block/open-iscsi/files/backward-compile-2.6.13.patch
@@ -0,0 +1,14 @@
+Index: kernel/scsi_transport_iscsi.c
+===================================================================
+--- kernel/scsi_transport_iscsi.c (revision 438)
++++ kernel/scsi_transport_iscsi.c (working copy)
+@@ -1234,8 +1234,7 @@
+ if (err)
+ goto unregister_session_class;
+
+- nls = netlink_kernel_create(NETLINK_ISCSI, 1, iscsi_if_rx,
+- THIS_MODULE);
++ nls = netlink_kernel_create(NETLINK_ISCSI, iscsi_if_rx);
+ if (!nls) {
+ err = -ENOBUFS;
+ goto unregister_notifier;
diff --git a/sys-block/open-iscsi/files/digest-open-iscsi-0.4.438 b/sys-block/open-iscsi/files/digest-open-iscsi-0.4.438
new file mode 100644
index 000000000000..37aa379d7683
--- /dev/null
+++ b/sys-block/open-iscsi/files/digest-open-iscsi-0.4.438
@@ -0,0 +1 @@
+MD5 84f85500b469484d948a0a1f861a55f0 open-iscsi-0.4-438.tar.gz 155810
diff --git a/sys-block/open-iscsi/files/r438-idbm-file-locking.diff b/sys-block/open-iscsi/files/r438-idbm-file-locking.diff
new file mode 100644
index 000000000000..0be0708925d5
--- /dev/null
+++ b/sys-block/open-iscsi/files/r438-idbm-file-locking.diff
@@ -0,0 +1,23 @@
+This is a quick patch to try and resolve the issue of IDBM file corruption.
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -NuarbB --exclude .svn --exclude '*~' open-iscsi-0.4-438/usr/idbm.c open-iscsi/usr/idbm.c
+--- open-iscsi-0.4-438/usr/idbm.c 2005-10-18 13:10:39.000000000 -0700
++++ open-iscsi/usr/idbm.c 2005-11-04 16:14:31.000000000 -0800
+@@ -1481,14 +1481,14 @@
+
+ if ((db->discdb = idbm_open(DISCOVERY_FILE,
+ access(DISCOVERY_FILE, F_OK) != 0 ?
+- O_CREAT|O_RDWR : O_RDWR)) == NULL) {
++ O_CREAT|O_RDWR|O_EXCL : O_RDWR|O_EXCL)) == NULL) {
+ free(db->configfile);
+ free(db);
+ return NULL;
+ }
+
+ if ((db->nodedb = idbm_open(NODE_FILE, access(NODE_FILE, F_OK) != 0 ?
+- O_CREAT|O_RDWR : O_RDWR)) == NULL) {
++ O_CREAT|O_RDWR|O_EXCL : O_RDWR|O_EXCL)) == NULL) {
+ idbm_close(db->discdb);
+ free(db->configfile);
+ free(db);