Indeed, thank you very much. On Fri, Mar 31, 2017 at 6:26 PM, Amir Goldstein <amir73il@xxxxxxxxx> wrote: > On Fri, Mar 31, 2017 at 12:13 PM, Rock Lee <rockdotlee@xxxxxxxxx> wrote: >> >> Yes, I am using archlinux with mainline kernel linux-4.11.0-r3. >> This problem occurs when I am using minix fs as a underlying >> filesystem( which contains upperdir, lowerdir, workdir) >> But If I am using a ext4 filesystem as a underlying filesystem, there >> is no such problem. >> >> I am wondering if the minix fs doesn't supper whiteout device. > > The minix fs does not support d_type in readdir and file systems > that don't support d_type expose whiteouts to overlay. > > See warning in dmesg: > "overlayfs: upper fs needs to support d_type." > >> >> On Fri, Mar 31, 2017 at 5:10 PM, Rock Lee <rockdotlee@xxxxxxxxx> wrote: >>> Yes, I am using archlinux with mainline kernel linux-4.11.0-r3. >>> This problem occurs when I am using minix fs as a underlying filesystem. >>> But If I >>> >>> On Fri, Mar 31, 2017 at 4:34 PM, Amir Goldstein <amir73il@xxxxxxxxx> wrote: >>>> 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