rpms/iscsitarget/devel iscsitarget-0.4.15-initscript.patch, 1.1, 1.2 iscsitarget.spec, 1.6, 1.7

Hans de Goede jwrdegoede at rpmfusion.org
Sun Sep 13 20:08:39 CEST 2009


Author: jwrdegoede

Update of /cvs/free/rpms/iscsitarget/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv25733

Modified Files:
	iscsitarget-0.4.15-initscript.patch iscsitarget.spec 
Log Message:
* Sun Sep 13 2009 Hans de Goede <j.w.r.degoede at hhs.nl> - 1:0.4.17-5
- silence crc32c_intel loading failure on amd machines


iscsitarget-0.4.15-initscript.patch:

Index: iscsitarget-0.4.15-initscript.patch
===================================================================
RCS file: /cvs/free/rpms/iscsitarget/devel/iscsitarget-0.4.15-initscript.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- iscsitarget-0.4.15-initscript.patch	3 Oct 2008 13:56:24 -0000	1.1
+++ iscsitarget-0.4.15-initscript.patch	13 Sep 2009 18:08:38 -0000	1.2
@@ -1,6 +1,6 @@
-diff -ur iscsitarget-0.4.15.orig/etc/initd/initd.redhat iscsitarget-0.4.15/etc/initd/initd.redhat
---- iscsitarget-0.4.15.orig/etc/initd/initd.redhat	2008-01-25 19:54:08.000000000 +0100
-+++ iscsitarget-0.4.15/etc/initd/initd.redhat	2008-01-25 19:54:29.000000000 +0100
+diff -up iscsitarget-0.4.15/etc/initd/initd.redhat.initscript iscsitarget-0.4.15/etc/initd/initd.redhat
+--- iscsitarget-0.4.15/etc/initd/initd.redhat.initscript	2008-12-27 21:53:01.000000000 +0100
++++ iscsitarget-0.4.15/etc/initd/initd.redhat	2009-09-13 20:01:02.000000000 +0200
 @@ -1,4 +1,4 @@
 -#!/bin/sh
 +#!/bin/bash
@@ -22,7 +22,15 @@
  # Source function library.
  if [ -f /etc/init.d/functions ] ; then
    . /etc/init.d/functions
-@@ -26,6 +34,7 @@
+@@ -22,10 +30,14 @@ RETVAL=0
+ start()
+ {
+ 	echo -n "Starting iSCSI target service: "
+-	modprobe -q crc32c
++	# 2> /dev/null for kernels where regular crc32c is build in, as there
++	# modprobe will sometimes pick a CPU specific one which will then fail
++	# if not loaded on the right CPU, ie crc32c_intel on an amd64
++	modprobe crc32c 2> /dev/null
  	modprobe iscsi_trgt
  	daemon /usr/sbin/ietd
  	RETVAL=$?
@@ -30,7 +38,7 @@
  	echo
  	return $RETVAL
  }
-@@ -40,6 +49,7 @@
+@@ -40,6 +52,7 @@ stop()
  	modprobe -r crc32c 2>/dev/null
  	if [ $RETVAL -eq 0 ]; then
  		echo_success
@@ -38,7 +46,7 @@
  	else
  		echo_failure
  	fi
-@@ -61,6 +71,16 @@
+@@ -61,6 +74,16 @@ condrestart()
  	fi
  }
  
@@ -55,7 +63,7 @@
  status()
  {
  	PID=`pidofproc ietd`
-@@ -89,7 +109,7 @@
+@@ -89,7 +112,7 @@ case "$1" in
          status
          ;;
    *)


Index: iscsitarget.spec
===================================================================
RCS file: /cvs/free/rpms/iscsitarget/devel/iscsitarget.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- iscsitarget.spec	13 Sep 2009 09:38:43 -0000	1.6
+++ iscsitarget.spec	13 Sep 2009 18:08:38 -0000	1.7
@@ -1,6 +1,6 @@
 Name:           iscsitarget
 Version:        0.4.17
-Release:        4%{?dist}
+Release:        5%{?dist}
 Epoch:          1
 Summary:        Utilities for iSCSI Enterprise Target 
 
@@ -73,6 +73,9 @@
 
 
 %changelog
+* Sun Sep 13 2009 Hans de Goede <j.w.r.degoede at hhs.nl> - 1:0.4.17-5
+- silence crc32c_intel loading failure on amd machines
+
 * Sun Sep 13 2009 Hans de Goede <j.w.r.degoede at hhs.nl> - 1:0.4.17-4
 - rebuild for new ssl
 



More information about the rpmfusion-commits mailing list