Added readahead-${kernel_version}.patch.
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 15 Jun 2009 19:23:06 +0000 (19:23 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 15 Jun 2009 19:23:06 +0000 (19:23 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@903 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scripts/generate-kernel-patch

index 73816c4..e0c036e 100755 (executable)
@@ -184,10 +184,16 @@ fi
 
 process_patch < "scst/kernel/scst_exec_req_fifo-${kernel_version}.patch" \
     "scst_exec_req_fifo.diff"
-process_patch < "scst/kernel/io_context-${kernel_version}.patch" \
-    "export_alloc_io_context.diff"
+if [ -e "scst/kernel/io_context-${kernel_version}.patch" ]; then
+  process_patch < "scst/kernel/io_context-${kernel_version}.patch" \
+      "export_alloc_io_context.diff"
+fi
 process_patch < "iscsi-scst/kernel/patches/put_page_callback-${kernel_version}.patch" \
     "put_page_callback.diff"
+if [ -e "scst/kernel/readahead-${kernel_version}.patch" ]; then
+  process_patch < "scst/kernel/readahead-${kernel_version}.patch" \
+      "readahead.diff"
+fi
 
 
 scst_debug="scst/include/scst_debug.h scst/src/scst_debug.c"