Discussion:
copy file infomation error
魏彦斌
2016-06-30 07:10:46 UTC
Permalink
The info is corrent when I use linux kernel 4.7.0-rc5
***@kylin-Inspiron-580s:~$ cat /sys/module/aufs/version
4.x-rcN-20160627
***@kylin-Inspiron-580s:~$ uname -r
4.7.0-rc5
***@kylin-Inspiron-580s:~$ cp new /etc/
cp: cannot create regular file '/etc/new': Permission denied

but I work on the kernel version 4.4, I in another trouble when I want move the patch 4.x-rcN-20160627 to kernel 4.4.
when kernel compile , there has some error.
In file included from fs/aufs/aufs.h:46:0,
from fs/aufs/module.c:24:
fs/aufs/inode.h: In function ‘au_hn_inode_lock’:
fs/aufs/inode.h:676:2: error: implicit declaration of function ‘inode_lock’ [-Werror=implicit-function-declaration]
inode_lock(hdir->hi_inode);
^
fs/aufs/inode.h: In function ‘au_hn_inode_lock_nested’:
fs/aufs/inode.h:683:2: error: implicit declaration of function ‘inode_lock_nested’ [-Werror=implicit-function-declaration]
inode_lock_nested(hdir->hi_inode, sc);
^
fs/aufs/inode.h: In function ‘au_hn_inode_unlock’:
fs/aufs/inode.h:690:2: error: implicit declaration of function ‘inode_unlock’ [-Werror=implicit-function-declaration]
inode_unlock(hdir->hi_inode);

I need help or some suggest
s***@users.sourceforge.net
2016-06-30 07:46:11 UTC
Permalink
Post by 魏彦斌
The info is corrent when I use linux kernel 4.7.0-rc5
4.x-rcN-20160627
4.7.0-rc5
cp: cannot create regular file '/etc/new': Permission denied
OK, but even for linux-v4.4, aufs4.4 returns the same error code.
Post by 魏彦斌
but I work on the kernel version 4.4, I in another trouble when I want move the patch 4.x-rcN-20160627 to kernel 4.4.
when kernel compile , there has some error.
In file included from fs/aufs/aufs.h:46:0,
fs/aufs/inode.h:676:2: error: implicit declaration of function $B!F(Binode_lock$B!G(B [-Werror=implicit-function-declaration]
For linux-v4.4, use aufs4.4 instead of aufs4.x-rcN.


J. R. Okajima
魏彦斌
2016-07-01 02:25:08 UTC
Permalink
it's OK when I use latest version of aufs.
***@kylin-Inspiron-580s:~$ cat /sys/module/aufs/version
4.4-20160627
***@kylin-Inspiron-580s:~$ uname -r
4.4.14
***@kylin-Inspiron-580s:~$ cp new /etc/
cp: cannot create regular file '/etc/new': Permission denied

thank you!




------------------ Original ------------------
From: "sfjro"<***@users.sourceforge.net>;
Date: Thu, Jun 30, 2016 03:46 PM
To: "魏圊斌"<***@kylinos.cn>;
Cc: "aufs-users"<aufs-***@lists.sourceforge.net>;
Subject: Re: copy file infomation error
Post by 魏彦斌
The info is corrent when I use linux kernel 4.7.0-rc5
4.x-rcN-20160627
4.7.0-rc5
cp: cannot create regular file '/etc/new': Permission denied
OK, but even for linux-v4.4, aufs4.4 returns the same error code.
Post by 魏彦斌
but I work on the kernel version 4.4, I in another trouble when I want move the patch 4.x-rcN-20160627 to kernel 4.4.
when kernel compile , there has some error.
In file included from fs/aufs/aufs.h:46:0,
fs/aufs/inode.h:676:2: error: implicit declaration of function $B!F(Binode_lock$B!G(B [-Werror=implicit-function-declaration]
For linux-v4.4, use aufs4.4 instead of aufs4.x-rcN.


J. R. Okajima

Loading...