Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 202405
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 198394
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: W. Elschner <gentoobugzilla_reply@elschner.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 202405 depends on: Show dependency tree
Bug 202405 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-15 17:49 0000
Truecrypt modules cannot be compiled against 2.6.24-rc5 kernel (vanilla
sources) on amd64. Source file Dm-target.c needs to be patched:

--- truecrypt-4.3a-source-code.org/Linux/Kernel/Dm-target.c     2007-04-24
18:32:06.000000000 +0200
+++ truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c 2007-12-15
18:22:39.000000000 +0100
@@ -375,7 +375,12 @@ static void dereference_bio_ctx (struct 
        if (!atomic_dec_and_test (&bc->ref_count))
                return;

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
        bio_endio (bc->orig_bio, bc->orig_bio->bi_size, bc->error);
+#else
+        bio_endio (bc->orig_bio, bc->orig_bio->bi_size);
+#endif
+
        mempool_free (bc, tc->bio_ctx_pool);
 }

@@ -656,7 +661,12 @@ int __init dm_truecrypt_init(void)
                goto err;
        }

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
        bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct
bio_ctx), 0, 0, NULL, NULL);
+#else
+       bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct
bio_ctx), 0, 0, NULL);
+#endif
+
        if (!bio_ctx_cache)
        {
                error ("kmem_cache_create failed");

------- Comment #1 From Jakub Moc (RETIRED) 2007-12-15 17:53:29 0000 -------
Attach the patch to the original bug, thanks.

*** This bug has been marked as a duplicate of bug 198394 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug