Ernesto A. Fernández 54aae14bee gfs2: don't return ENODATA in __gfs2_xattr_set unless replacing
The function __gfs2_xattr_set() will return -ENODATA when called to
remove a xattr that does not exist. The result is that setfacl will
show an exit status of 1 when called to set only a file's mode bits
(on a file with no ACLs), despite succeeding. A "No data available"
error will be printed as well.

To fix this return 0 instead, except when the XATTR_REPLACE flag is
set, in which case -ENODATA is appropriate. This is consistent with
how most other xattr setting functions work, in other filesystems.

Signed-off-by: Ernesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2017-08-31 07:43:03 -05:00
..
2016-05-12 22:28:05 -04:00
2017-08-30 13:29:22 -05:00
2014-03-03 13:50:12 +00:00
2016-06-27 09:47:09 -05:00
2017-07-21 07:48:22 -05:00
2016-06-27 09:47:08 -05:00
2017-07-17 13:39:15 -05:00
2017-08-30 08:14:39 -05:00
2017-08-10 10:42:11 -05:00
2017-08-09 09:36:39 -05:00
2016-08-02 12:05:27 -05:00
2013-06-03 14:20:18 -07:00
2017-08-25 18:47:18 -05:00
2014-05-14 10:04:34 +01:00
2016-06-07 13:41:38 -06:00
2011-05-10 13:12:49 +01:00
2017-08-30 08:14:27 -05:00
2017-04-19 08:25:43 -04:00
2012-01-11 09:23:05 +00:00
2017-08-25 18:47:18 -05:00
2015-12-06 21:25:17 -05:00