A whiteout device shows up in a overlayfs root directory.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, all:
When I "ls" a overlayfs directory which has a whiteout device in it's upper dir,
and got a strange output like this (aaa is a whiteout in upper):

[ETO test]# ll -i
 ls: cannot access 'aaa': No such file or directory
total 3
     ? ?????????? ? ?    ?      ?            ? aaa
157633 drwxr-xr-x 1 root root  96 3月  31 2017 hello
157634 drwxr-xr-x 2 root root  96 3月  31 2017 open
157632 drwxr-xr-x 1 root root 128 3月  29 04:54 ssh

But if I use "tree" to list the files , there is no whiteout device in
the test(overlayfs root dir).
I got this output and it seems OK.

[ETO usb]# tree
.
├── lower
│   ├── aaa
│   ├── hello
│   │   └── uu
│   └── ssh
├── test
│   ├── hello
│   ├── open
│   │   └── uu
│   └── ssh
│       ├── aaa
│       └── bbb
├── upper
│   ├── aaa
│   ├── hello
│   │   └── uu
│   ├── open
│   │   └── uu
│   └── ssh
│       ├── aaa
│       └── bbb


If I am correct, I think if the upper dir has a whitout, and the root
directory of overlayfs
should not see this WHITEOUT DEV nor the file in the lower dir with
the same name.
Is this a overlayfs bug ???
��.n��������+%������w��{.n�����{���w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux