-
Notifications
You must be signed in to change notification settings - Fork 0
Description
It does not work in kernel 4.x.
How can I port to that?
root@ubuntu:~/chunkfs# make
make -C /lib/modules/4.4.0-116-generic/build M=/root/chunkfs modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-116-generic'
CC [M] /root/chunkfs/super.o
In file included from /root/chunkfs/super.c:31:0:
/root/chunkfs/chunkfs_i.h: In function ‘get_client_mnt’:
/root/chunkfs/chunkfs_i.h:115:25: error: dereferencing pointer to incomplete type ‘struct nameidata’
return dp->dp_client_nd->path.mnt;
^
/root/chunkfs/super.c: In function ‘chunkfs_read_client_sb’:
/root/chunkfs/super.c:81:19: error: storage size of ‘nd’ isn’t known
struct nameidata nd;
^
/root/chunkfs/super.c:81:19: warning: unused variable ‘nd’ [-Wunused-variable]
/root/chunkfs/super.c: In function ‘chunkfs_read_root’:
/root/chunkfs/super.c:411:19: error: storage size of ‘nd’ isn’t known
struct nameidata nd;
^
/root/chunkfs/super.c:411:19: warning: unused variable ‘nd’ [-Wunused-variable]
scripts/Makefile.build:258: recipe for target '/root/chunkfs/super.o' failed
make[2]: *** [/root/chunkfs/super.o] Error 1
Makefile:1423: recipe for target 'module/root/chunkfs' failed
make[1]: *** [module/root/chunkfs] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-116-generic'
Makefile:9: recipe for target 'ko' failed
make: *** [ko] Error 2