]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: make attr removal an explicit operation
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:43 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:01 +0000 (17:01 -0700)
commit8f07219cfee0a30c8ba024e2a296c083fc357dbb
tree575344154c77430d03afcf75e99e09c4563f5036
parentd55ab83513e5d047080fc651f9b018a5b7d89893
xfs: make attr removal an explicit operation

Source kernel commit: c27411d4c640037d70e2fa5751616e175e52ca5e

Parent pointers match attrs on name+value, unlike everything else which
matches on only the name.  Therefore, we cannot keep using the heuristic
that !value means remove.  Make this an explicit operation code.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/attrset.c
libxfs/xfs_attr.c
libxfs/xfs_attr.h