]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: return -ENODATA when deleting an xattr that does not exist
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 7 Feb 2019 05:48:44 +0000 (15:48 +1000)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Mar 2019 02:05:34 +0000 (20:05 -0600)
commit01d4167617f353986eef13b64855588b4642d205
tree8bdaaac790b1a36a9bf35b1aaf283e85f119ecce
parent58cd3dc09d3c520b604b23b453e93a03fa4b171c
cifs: return -ENODATA when deleting an xattr that does not exist

BUGZILLA: https://bugzilla.kernel.org/show_bug.cgi?id=202007

When deleting an xattr/EA:
SMB2/3 servers will return SUCCESS when clients delete non-existing EAs.
This means that we need to first QUERY the server and check if the EA
exists or not so that we can return -ENODATA correctly when this happens.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c