View Issue Details

IDProjectCategoryView StatusLast Update
0012031CentOS-7filesystempublic2017-04-20 04:34
Reporterdscerri Assigned To 
Status newResolutionopen 
Product Version7.2.1511 
Summary0012031: Removing files located in a lowerdir in an overlay fs is erroneous
DescriptionWhen attempting to remove files from the lowerdir, the files are not correctly deleted and are still visible when doing an `ls`.

Steps To Reproducemkdir -p lower upper workdir ~/overlay

echo 'foo' > lower/foo.txt

mount -t overlay -o lowerdir=lower,upperdir=upper,workdir=workdir overlay ~/overlay

rm ~/overlay/foo.txt

ls -lhart

# The `ls -lhart` results in:

ls: cannot access foo.txt: No such file or directory
total 4.0K
??????????? ? ? ? ? ? foo.txt
Additional InformationThis affects Docker when using the overlay storage driver:
Tagsfile system, kernel




2016-10-16 19:01

reporter   ~0027723

This issue is only in effect when the xfs partition is formatted with ftype set to 0


2017-04-20 04:34

reporter   ~0029104

I could reproduce this even in CentOS 7.3 kernel-3.10.0-514.el7,
but the newer kernel issues additional warning:

    overlayfs: upper fs needs to support d_type. This is an invalid configuration.

so I don't think this will be fixed.
Avoid ftype=0 xfs for overlays.

Issue History

Date Modified Username Field Change
2016-10-14 07:54 dscerri New Issue
2016-10-14 07:54 dscerri Tag Attached: file system
2016-10-14 07:54 dscerri Tag Attached: kernel
2016-10-16 19:01 dscerri Note Added: 0027723
2017-04-20 04:34 kabe Note Added: 0029104