[LU-9849] setting an empty trusted.dmv xattr on a regular file causes other xattrs to disappear Created: 09/Aug/17  Updated: 29/Jan/22

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.10.0, Lustre 2.12.7
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   
m:lustre# getfattr --dump --match=- f0
# file: f0
lustre.lov=0s0AvRCwEAAAABAAAAAAAAAAIEAAACAAAAAAAQAAEAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAA=
trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=
trusted.lma=0sAAAAAAAAAAACBAAAAgAAAAEAAAAAAAAA
trusted.lov=0s0AvRCwEAAAABAAAAAAAAAAIEAAACAAAAAAAQAAEAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAA=

m:lustre# setfattr --name=trusted.dmv f0
m:lustre# getfattr --dump --match=- f0
getfattr: f0: No such attribute
m:lustre# getfattr --name=trusted.link f0
f0: trusted.link: No such attribute
m:lustre# getfattr --name=trusted.lma f0
f0: trusted.lma: No such attribute
m:lustre# getfattr --name=trusted.lov f0
# file: f0
trusted.lov=0s0AvRCwEAAAABAAAAAAAAAAIEAAACAAAAAAAQAAEAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAA=

m:lustre# setfattr --name=security.foo --value=foo f0
m:lustre# getfattr --dump --match=- f0
getfattr: f0: No such attribute
m:lustre# getfattr --name=security.foo f0
f0: security.foo: No such attribute
m:lustre# setfattr --remove=trusted.dmv f0
m:lustre# getfattr --dump --match=- f0
# file: f0
lustre.lov=0s0AvRCwEAAAABAAAAAAAAAAIEAAACAAAAAAAQAAEAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAA=
security.foo="foo"
trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=
trusted.lma=0sAAAAAAAAAAACBAAAAgAAAAEAAAAAAAAA
trusted.lov=0s0AvRCwEAAAABAAAAAAAAAAIEAAACAAAAAAAQAAEAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAA=


 Comments   
Comment by James A Simmons [ 09/Aug/17 ]

Is this true with the xattr cache turn off as well?

Comment by John Hammond [ 09/Aug/17 ]

> Is this true with the xattr cache turn off as well?

No, but in this case it doesn't really DTRT either:

m:lustre# lctl set_param llite.*.xattr_cache=0
llite.lustre-ffff88001731c000.xattr_cache=0
m:lustre# touch f0
m:lustre# getfattr --dump --match=- f0
# file: f0
lustre.lov=0s0AvRCwEAAAAFAAAAAAAAAAIEAAACAAAAAAAQAAEAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=
trusted.lma=0sAAAAAAAAAAACBAAAAgAAAAUAAAAAAAAA
trusted.lov=0s0AvRCwEAAAAFAAAAAAAAAAIEAAACAAAAAAAQAAEAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=

m:lustre# setfattr --name=trusted.dmv f0
m:lustre# getfattr --dump --match=- f0
# file: f0
lustre.lov=0s0AvRCwEAAAAFAAAAAAAAAAIEAAACAAAAAAAQAAEAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
f0: trusted.dmv: No such attribute
trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=
trusted.lma=0sAAAAAAAAAAACBAAAAgAAAAUAAAAAAAAA
trusted.lov=0s0AvRCwEAAAAFAAAAAAAAAAIEAAACAAAAAAAQAAEAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=

Generated at Sat Feb 10 02:29:49 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.