[stgt] FW: [fedora-arm] [PATCH] scsi-target-utils: Fix sync_file_range symbol for arm.

Vinit Dhatrak vinitd at marvell.com
Mon Aug 17 13:46:27 CEST 2009


This patch is to fix build error for arm. Please refer to bug,
             https://bugzilla.redhat.com/show_bug.cgi?id=510699

-Vinit
________________________________________
From: fedora-arm-bounces at redhat.com [fedora-arm-bounces at redhat.com] On Behalf Of Vinit Dhatrak [vinitd at marvell.com]
Sent: Thursday, July 09, 2009 6:27 PM
To: fedora-arm at redhat.com
Subject: [fedora-arm] [PATCH] scsi-target-utils: Fix sync_file_range symbol     for arm.

Signed-off-by: Vinit Dhatrak <vinitd at marvell.com>
---
--- a/scsi-target-utils.spec    2009-07-08 02:28:33.000000000 -0400
+++ b/scsi-target-utils.spec    2009-07-08 02:41:06.000000000 -0400
@@ -11,6 +11,7 @@ URL:            http://stgt.berlios.de
 Source0:        http://stgt.berlios.de/releases/tgt-%{date}.tar.bz2
 Source1:        tgtd.init
 Patch0:         tgt-20080805-shebang.patch
+Patch1:         tgt-20090807-file-range-arm.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

 BuildRequires:  openssl-devel pkgconfig
@@ -23,6 +24,7 @@ Currently, software iSCSI targets are su
 %prep
 %setup -q -n tgt-%{date}
 %patch0 -p1
+%patch1 -p1
 %{__chmod}  0644 scripts/tgt-core-test

 %build
@@ -76,6 +78,9 @@ fi
 %{_initrddir}/tgtd

 %changelog
+* Mon Jul 06 2009 Vinit Dhatrak <vinitd at marvell.com> - 0.0-6.20080805snap
+- Add patch for sync_file_range on arm arch.
+
 * Tue Oct 21 2008 Terje Rosten <terje.rosten at ntnu.no> - 0.0-6.20080805snap
 - Add tgt-admin man page, tgt-admin and tgt-core-test


--- tgt-20080805/usr/util.h     2008-07-31 19:01:51.000000000 -0400
+++ tgt-20090807/usr/util.h     2009-07-08 02:32:20.000000000 -0400
@@ -107,6 +107,8 @@ extern unsigned long pagesize, pageshift
 #define __NR_sync_file_range    1300
 #elif defined(__powerpc64__) || defined(__PPC__)
 #define __NR_sync_file_range    308
+#elif defined(__arm__)
+#define __NR_sync_file_range    __NR_sync_file_range2
 #endif
 #endif


_______________________________________________
fedora-arm mailing list
fedora-arm at redhat.com
https://www.redhat.com/mailman/listinfo/fedora-arm
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list