> /sys/module/aufs:
> kylin@kylin-Vostro-260s:/sys/module/aufs$ ls
> coresize  holders  initsize  initstate  notes  parameters  refcnt  sections  
> srcversion  taint  uevent  version
        :::

Since you have /sys/module/aufs, you must have /sys/fs/aufs too, don't
you? I need them.


> kylin@kylin-Vostro-260s:/sys/module/aufs$ cat version 
> 4.x-rcN-20160111

Ok, this is half a year old version. But I don't think it matters
currently.


>  kylin@kylin-Vostro-260s:~$ cat /proc/mounts 
        :::
> /dev/sda2 / aufs rw,relatime,si=9c2da998b3439525 0 0

It looks really weird.
How did you mount your root?


> AUFS configration:
> CONFIG_AUFS_FS=m
        :::

Hmm, while CONFIG_AUFS_DEBUG line doesn't appear, I guess it is
disabled. If it was, then the module parameter 'debug' might be helpful
for such case.


> here is "strace -o /tmp/s cp wyb /etc" info.
> stat("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> stat("wyb", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
> stat("/etc/wyb", 0x7ffc0c691890)        = -1 ENOENT (No such file or 
> directory)
> open("wyb", O_RDONLY)                   = 3
> fstat(3, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
> open("/etc/wyb", O_WRONLY|O_CREAT|O_EXCL, 0664) = -1 EEXIST (File exists)
> lstat("/etc/wyb", 0x7ffc0c6919b0)       = -1 ENOENT (No such file or 
> directory)
> open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4

On my test system (which is current aufs4.x-rcN for linux-v4.7-rc4),
open() for the target returned EACCES (Permission denied)
expectedly.
And the following lstat() doesn't appear, but it may be just a
difference of /bin/cp.


J. R. Okajima

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape

Reply via email to