2017-12-12 09:59 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0012031CentOS-7filesystempublic2017-04-20 04:34
Reporterdscerri 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Product Version7.2.1511 
Target VersionFixed in Version 
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: https://github.com/docker/docker/issues/27358
Tagsfile system, kernel
abrt_hash
URL
Attached Files

-Relationships
+Relationships

-Notes

~0027723

dscerri (reporter)

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

~0029104

kabe (reporter)

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.
+Notes

-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
+Issue History