Patching kernel with aufs (riding a dead horse?)

Carsten Aulbert carsten at welcomes-you.com
Thu May 7 08:02:32 CEST 2009


Hi all,

first of all, I think aufs is now required for FAI, right? If not, we
have to go back to the drawing board and most of the remaining stuff in
this email is probably something which then should go into /dev/null.

I'm not sure if Thomas is aware of this, but it seems that aufs is about
to die... http://marc.info/?l=linux-kernel&m=123938533724484&w=2

Also the aufs-dev seems to have abandoned aufs in favour of aufs2 in
January.

Now my main question:

Has someone got a patch ready which I can apply to a recent 2.6.27 (or
later) kernel to get aufs in there? I've been struggling yesterday
evening without much success to get this into the kernel tree, somehow I
made something wrong:

 gcc -Wp,-MD,fs/aufs/.module.o.d  -nostdinc -isystem
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude
-I/srv/custom_builder/Kernel_Build/linux-2.6.27-aufstest/linux-2.6.27.y/arch/x86/include
-include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer
-Wdeclaration-after-statement -Wno-pointer-sign -fwrapv
-DSQUASHFS_MAGIC=0x73717368 -DSQUASHFS_MAGIC_SWAP=0x68737173
-DSQUASHFS_MAGIC_LZMA=0x71736873 -DSQUASHFS_MAGIC_LZMA_SWAP=0x73687371
-DFUSE_SUPER_MAGIC=0x65735546 -DXFS_SB_MAGIC=0x58465342
-DTMPFS_MAGIC=0x01021994 -DSYSFS_MAGIC=0x62656572
-DSQUASHFS_MAGIC=0x73717368 -DSQUASHFS_MAGIC_SWAP=0x68737173
-DSQUASHFS_MAGIC_LZMA=0x71736873 -DSQUASHFS_MAGIC_LZMA_SWAP=0x73687371
-DFUSE_SUPER_MAGIC=0x65735546 -DXFS_SB_MAGIC=0x58465342
-DTMPFS_MAGIC=0x01021994 -DSYSFS_MAGIC=0x62656572 -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(module)"
-D"KBUILD_MODNAME=KBUILD_STR(aufs)" -c -o fs/aufs/.tmp_module.o
fs/aufs/module.c
In file included from fs/aufs/module.c:26:
fs/aufs/aufs.h:38:2: error: #error you got wrong version
In file included from fs/aufs/dentry.h:35,
                 from fs/aufs/aufs.h:89,
                 from fs/aufs/module.c:26:
fs/aufs/vfsub.h: In function 'do_vfsub_permission':
fs/aufs/vfsub.h:306: error: implicit declaration of function 'permission'
fs/aufs/vfsub.h: At top level:
fs/aufs/vfsub.h:587: error: static declaration of 'path_get' follows
non-static declaration
include/linux/path.h:12: error: previous declaration of 'path_get' was here
fs/aufs/vfsub.h:593: error: static declaration of 'path_put' follows
non-static declaration
include/linux/path.h:13: error: previous declaration of 'path_put' was here
make[2]: *** [fs/aufs/module.o] Error 1
make[1]: *** [fs/aufs] Error 2
make: *** [fs] Error 2


Cheers

Carsten


More information about the linux-fai mailing list