diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-03-18 22:57:00 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-03-18 22:57:00 -0300 |
commit | 7848046191f737e675f53deda343d787645ecf85 (patch) | |
tree | fedc9e14b5cd2db9470432cd49febab18bc9445f /libre/cdfs-libre/cdfs-3.8.patch | |
parent | cf187b1042f91f4b6b9630299281908b9fcb583f (diff) | |
download | abslibre-7848046191f737e675f53deda343d787645ecf85.tar.gz abslibre-7848046191f737e675f53deda343d787645ecf85.tar.bz2 abslibre-7848046191f737e675f53deda343d787645ecf85.zip |
cdfs-libre-2.6.27-38: rebuild against linux-libre 3.8 series
Diffstat (limited to 'libre/cdfs-libre/cdfs-3.8.patch')
-rw-r--r-- | libre/cdfs-libre/cdfs-3.8.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/libre/cdfs-libre/cdfs-3.8.patch b/libre/cdfs-libre/cdfs-3.8.patch new file mode 100644 index 000000000..10d9c8b47 --- /dev/null +++ b/libre/cdfs-libre/cdfs-3.8.patch @@ -0,0 +1,42 @@ +diff -upr cdfs-2.6.27.orig/daemon.c cdfs-2.6.27/daemon.c +--- cdfs-2.6.27.orig/daemon.c 2009-12-21 16:02:50.000000000 +0200 ++++ cdfs-2.6.27/daemon.c 2013-02-21 06:14:45.000000000 +0200 +@@ -158,7 +158,6 @@ int kcdfsd_thread(void *unused){ + exit_files(current); /* daemonize doesn't do exit_files */ + daemonize(); + #else +- daemonize("k"FSNAME"d"); + + /* Allow SIGTERM to quit properly when removing module */ + /* By default with daemonize all signals are dropped */ +diff -upr cdfs-2.6.27.orig/root.c cdfs-2.6.27/root.c +--- cdfs-2.6.27.orig/root.c 2009-12-21 15:38:31.000000000 +0200 ++++ cdfs-2.6.27/root.c 2013-02-21 06:15:20.000000000 +0200 +@@ -25,6 +25,7 @@ + #include "cdfs.h" + + #include <linux/module.h> ++#include <linux/kthread.h> + + + /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++* +@@ -643,14 +644,15 @@ static int __init cdfs_init(void) { + cdfs_proc_cd=NULL; + + // start kernel thread +- if ((kcdfsd_pid = kernel_thread(kcdfsd_thread, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND)) >0 ) { +- return 0; +- } else { +- printk(FSNAME" kernel_thread failed.\n"); ++ kcdfsd_pid = kthread_run(kcdfsd_thread, NULL, "kcdfsd_thread"); ++ if (IS_ERR(kcdfsd_pid)) { ++ printk(FSNAME" kthread_run failed.\n"); + if (cdfs_proc_entry) remove_proc_entry(FSNAME, NULL); + unregister_filesystem(&cdfs_fs_type); + return -1; + } ++ ++ return 0; + } + + /******************************************************************/ |