Paulo Alcantara
ae2cd7fb47
cifs: smb2ops: Fix listxattr() when there are no EAs
...
As per listxattr(2):
On success, a nonnegative number is returned indicating the size
of the extended attribute name list. On failure, -1 is returned
and errno is set appropriately.
In SMB1, when the server returns an empty EA list through a listxattr(),
it will correctly return 0 as there are no EAs for the given file.
However, in SMB2+, it returns -ENODATA in listxattr() which is wrong since
the request and response were sent successfully, although there's no actual
EA for the given file.
This patch fixes listxattr() for SMB2+ by returning 0 in cifs_listxattr()
when the server returns an empty list of EAs.
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
2018-05-09 11:48:42 -05:00
..
2018-04-07 09:08:24 -07:00
2017-11-27 13:05:09 -08:00
2018-02-01 08:15:25 -05:00
2018-04-20 09:59:33 -07:00
2018-04-20 17:18:35 -07:00
2018-01-15 12:07:54 -08:00
2017-11-02 11:10:55 +01:00
2018-05-04 20:32:18 -10:00
2018-04-06 14:05:14 +01:00
2018-04-23 17:35:19 +02:00
2018-05-09 11:48:42 -05:00
2018-02-11 14:34:03 -08:00
2018-02-08 11:37:31 -08:00
2018-02-01 10:51:18 -05:00
2018-03-29 15:07:47 -04:00
2018-03-14 13:31:23 +01:00
2018-02-12 14:15:04 -05:00
2018-04-16 18:51:22 +00:00
2018-02-22 10:21:02 -08:00
2017-11-27 13:05:09 -08:00
2018-02-07 14:25:22 -08:00
2018-04-12 12:04:49 +02:00
2018-04-20 09:01:26 -07:00
2018-04-28 20:07:21 -07:00
2018-04-11 10:28:39 -07:00
2018-02-01 08:15:25 -05:00
2018-01-15 12:07:57 -08:00
2018-04-11 10:28:39 -07:00
2018-03-23 06:31:37 -04:00
2018-04-12 10:07:51 -07:00
2017-11-27 13:05:09 -08:00
2018-02-06 18:32:45 -08:00
2018-04-02 20:15:53 +02:00
2017-12-10 12:58:18 -08:00
2018-04-05 21:36:21 -07:00
2018-04-16 09:47:41 +02:00
2018-04-18 11:49:31 -04:00
2018-04-15 23:49:05 -04:00
2018-02-03 16:25:42 -08:00
2018-02-11 14:34:03 -08:00
2018-03-27 13:18:09 -04:00
2018-03-26 15:55:57 +02:00
2018-04-12 12:55:50 -07:00
2018-03-27 13:18:09 -04:00
2018-04-03 16:27:08 -04:00
2018-04-11 10:28:39 -07:00
2017-11-02 11:10:55 +01:00
2018-04-13 15:52:49 +02:00
2018-03-28 01:39:02 -04:00
2018-04-06 14:19:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-27 13:05:09 -08:00
2018-04-15 23:49:12 -04:00
2018-04-12 12:04:50 +02:00
2018-04-20 17:18:36 -07:00
2018-04-06 15:45:33 -07:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2018-04-09 17:48:54 +02:00
2018-04-11 10:28:36 -07:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2018-03-19 21:14:26 -04:00
2017-11-27 13:05:09 -08:00
2018-04-11 16:39:34 -07:00
2018-04-18 16:34:55 +02:00
2018-02-07 14:25:22 -08:00
2018-05-02 09:21:33 -07:00
2018-03-19 10:12:03 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:37 -07:00
2018-04-11 10:28:37 -07:00
2018-04-20 17:18:36 -07:00
2018-04-11 10:28:37 -07:00
2018-04-02 20:16:00 +02:00
2018-04-10 10:25:57 -07:00
2018-04-12 12:28:32 -07:00
2018-03-15 17:59:24 +01:00
2017-12-28 11:17:29 -05:00
2017-11-17 11:54:55 -08:00
2018-03-29 15:07:46 -04:00
2018-04-11 10:28:39 -07:00
2018-04-11 10:28:38 -07:00
2018-04-02 20:15:39 +02:00
2018-04-06 14:19:26 -07:00
2017-11-02 11:10:55 +01:00
2018-04-02 20:15:39 +02:00
2018-04-02 20:15:37 +02:00
2018-04-11 10:28:37 -07:00
2018-04-02 20:15:42 +02:00
2018-01-15 12:07:51 -08:00
2017-12-07 14:23:30 -05:00
2018-04-02 20:16:00 +02:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2018-05-03 16:11:37 -06:00
2018-04-11 10:28:39 -07:00
2018-04-06 11:07:08 -07:00
2018-04-02 20:16:03 +02:00
2018-01-29 07:27:24 -08:00
2018-02-06 10:41:33 -08:00
2018-03-26 15:55:57 +02:00
2018-03-30 11:34:55 -07:00
2018-03-26 11:13:09 +02:00
2018-03-29 15:07:46 -04:00
2018-01-09 23:57:52 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-09 12:48:05 -07:00
2018-04-20 09:59:33 -07:00
2018-02-15 15:34:42 -05:00
2018-04-06 11:07:08 -07:00
2018-04-02 20:15:35 +02:00
2018-01-02 19:27:28 -08:00
2018-02-11 14:34:03 -08:00
2018-04-02 20:16:09 +02:00
2018-04-02 20:16:02 +02:00
2018-04-02 20:15:42 +02:00
2018-04-11 10:28:36 -07:00
2018-04-02 20:15:43 +02:00
2018-04-02 20:15:40 +02:00
2018-04-02 20:15:34 +02:00
2017-11-27 13:05:09 -08:00
2018-04-16 02:06:47 -04:00
2018-04-04 12:44:02 -07:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-04-02 20:15:44 +02:00