"Tommy[D]":
> just tried to compile aufs2-standalone against my local kernel sources, b=
> ut get the attached failure
> for 2.6.33. The kernel is a development kernel from Gentoo with additiona=
> l pax and grsec patches.

I found the pax and grsec patches declare members as 'const'.
grsecurity-2.1.14-2.6.33.4-201005151340.patch
pax-linux-2.6.33.4-test19.patch

For instance,

 struct address_space_operations {
-       int (*writepage)(struct page *page, struct writeback_control *wbc);
-       int (*readpage)(struct file *, struct page *);
-       void (*sync_page)(struct page *);
+       int (* const writepage)(struct page *page, struct writeback_control 
*wbc);
+       int (* const readpage)(struct file *, struct page *);
+       void (* const sync_page)(struct page *);

It means setting writepage (and other members) is prohibited. But aufs
sets them dynamically. I think this is the cause of your problem.
I don't know whether making them 'const' is necessary or not.


J. R. Okajima

------------------------------------------------------------------------------

Reply via email to