Am 01.10.2013 03:28, schrieb sf...@users.sourceforge.net:
> sf...@users.sourceforge.net:
>> Florian Klink:
>>> The error message also appears when both "aufs" and "loop" are compiled
>>> as a module.
>> Hmm...
>> I am afraid we should consider all combinations of these.
>> - aufs (is/is not) a module
>> - the source files are from (aufs3-linux/aufs3-standalone).git
>>   + the system when you build aufs3-standalone.git is running the
>>     (host/target) kernel
>> - loop (is/is not) a module
> Hopefull this patch supports all cases.
>
> J. R. Okajima
>
I tested the patch.

It works in almost all cases, but loop needs to be set as a dependency
for aufs in Kconfig.

This also makes kernelconfig smart enough to not allow aufs to be build
in-kernel as long as loop is a module, which would otherwise fail.

I attached a new patch reflecting the changes.

Florian
>From fca21a62b1e3b1d3e9cd1a254211e1d87ddbdb4c Mon Sep 17 00:00:00 2001
From: "J. R. Okajima" <hooano...@yahoo.co.jp>
Date: Tue, 1 Oct 2013 10:24:17 +0900
Subject: [PATCH] aufs: for 3.11, request loop module

Replace symbol_get() by symbol_request() to force loading "loop" module.
Add dependency to BLK_DEV_LOOP

Reported-by: Florian Klink <flo...@flokli.de>
---
 fs/aufs/Kconfig | 1 +
 fs/aufs/loop.c  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/aufs/Kconfig b/fs/aufs/Kconfig
index 6228e27..637d743 100644
--- a/fs/aufs/Kconfig
+++ b/fs/aufs/Kconfig
@@ -1,5 +1,6 @@
 config AUFS_FS
 	tristate "Aufs (Advanced multi layered unification filesystem) support"
+	depends on BLK_DEV_LOOP
 	help
 	Aufs is a stackable unification filesystem such as Unionfs,
 	which unifies several directories and provides a merged single
diff --git a/fs/aufs/loop.c b/fs/aufs/loop.c
index a5c4e7a..852f67d 100644
--- a/fs/aufs/loop.c
+++ b/fs/aufs/loop.c
@@ -129,7 +129,7 @@ int au_loopback_init(void)
 		goto out;
 
 	err = 0;
-	backing_file_func = symbol_get(loop_backing_file);
+       backing_file_func = symbol_request(loop_backing_file);
 	if (backing_file_func)
 		goto out; /* success */
 
-- 
1.8.4

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk

Reply via email to