diff options
author | 2007-02-06 20:46:30 +0000 | |
---|---|---|
committer | 2007-02-06 20:46:30 +0000 | |
commit | d7178deac449533e8121599112a7bba66219ff95 (patch) | |
tree | 0d3894ca8b02dc9990592ea47cda9b26077acb79 /app-crypt/truecrypt/files | |
parent | Stable on ppc wrt bug #165549. (diff) | |
download | historical-d7178deac449533e8121599112a7bba66219ff95.tar.gz historical-d7178deac449533e8121599112a7bba66219ff95.tar.bz2 historical-d7178deac449533e8121599112a7bba66219ff95.zip |
Added 2.6.20 support, bug#165454, thanks to Patrick
Package-Manager: portage-2.1.2-r8
Diffstat (limited to 'app-crypt/truecrypt/files')
-rw-r--r-- | app-crypt/truecrypt/files/digest-truecrypt-4.2a-r2 | 3 | ||||
-rw-r--r-- | app-crypt/truecrypt/files/truecrypt-4.2a-2.6.20.patch | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/app-crypt/truecrypt/files/digest-truecrypt-4.2a-r2 b/app-crypt/truecrypt/files/digest-truecrypt-4.2a-r2 new file mode 100644 index 000000000000..6aac1268b685 --- /dev/null +++ b/app-crypt/truecrypt/files/digest-truecrypt-4.2a-r2 @@ -0,0 +1,3 @@ +MD5 6e60ead403fe23355f61341ccce68ff1 truecrypt-4.2a-source-code.tar.gz 1088418 +RMD160 8d5b142f9cc7de5693b527f8d708d9e1ebd1e2b3 truecrypt-4.2a-source-code.tar.gz 1088418 +SHA256 ba1892584bf52b5a12eef185563705774566a70537d139aef8770477dfe9636f truecrypt-4.2a-source-code.tar.gz 1088418 diff --git a/app-crypt/truecrypt/files/truecrypt-4.2a-2.6.20.patch b/app-crypt/truecrypt/files/truecrypt-4.2a-2.6.20.patch new file mode 100644 index 000000000000..fed9d5558089 --- /dev/null +++ b/app-crypt/truecrypt/files/truecrypt-4.2a-2.6.20.patch @@ -0,0 +1,31 @@ +--- Linux/Kernel/Dm-target.c.orig 2007-02-05 20:40:09.000000000 +0200 ++++ Linux/Kernel/Dm-target.c 2007-02-05 20:54:11.000000000 +0200 +@@ -383,9 +383,16 @@ + } + + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20) ++static void work_process (struct work_struct *work) ++{ ++ struct bio_ctx *bc = container_of(work, struct bio_ctx, work); ++ void *qdata = (void *)bc; ++#else + static void work_process (void *qdata) + { + struct bio_ctx *bc = (struct bio_ctx *) qdata; ++#endif + struct target_ctx *tc = (struct target_ctx *) bc->target->private; + struct bio_vec *bv; + u64 sec_no = bc->crypto_sector; +@@ -441,7 +448,11 @@ + bio_put (bio); + + // Queue decryption to leave completion interrupt ASAP ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20) ++ INIT_WORK (&bc->work, work_process); ++#else + INIT_WORK (&bc->work, work_process, bc); ++#endif + trace (3, "queue_work (%p)\n", work_queue); + queue_work (work_queue, &bc->work); + return error; |