This patch ensures that the extents file attribute is ignored when
comparing file attributes. This is necessary because this attribute is
set by the underlying file system and can never be reset.
This commit is contained in:
Sebastian Marsching 2020-05-10 20:25:13 +02:00 committed by Daniel Wozniak
parent 99385b5071
commit 42894bd5a7
2 changed files with 6 additions and 0 deletions

1
changelog/57189.fixed Normal file
View file

@ -0,0 +1 @@
Fixed handling of extents extended attribute in file.managed state.

View file

@ -587,6 +587,11 @@ def _cmp_attrs(path, attrs):
new = set(attrs)
old = set(lattrs)
# The "e" attribute can be set, but it cannot not be reset, so we add it to
# the new set if it is present in the old set.
if "e" in old:
new.add("e")
return AttrChanges(
added="".join(new - old) or None, removed="".join(old - new) or None,
)