Re: A whiteout device shows up in a overlayfs root directory.

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

 



On Fri, Mar 31, 2017 at 5:52 AM, Rock Lee <rockdotlee@xxxxxxxxx> wrote:
> 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 ???

Yes. Could be a bug.
Please report it to the maintainer of the distro you are using, unless
you are seeing this bug on a mainline kernel?
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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