diff options
author | Ernesto A. Fernández <[email protected]> | 2017-08-30 07:26:30 -0500 |
---|---|---|
committer | Bob Peterson <[email protected]> | 2017-08-31 07:43:03 -0500 |
commit | 54aae14beee6a6e9f72358f1873b3e497029c41d (patch) | |
tree | 20fc8689454f86a7a9984df602c1ec8bc033dc85 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c4a9d1892f1ce6fe040b717b68bd21e689cc2410 (diff) |
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 <[email protected]>
Signed-off-by: Bob Peterson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions