Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-14804 nodemap: do not return error for improper ACL
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
nodemap_handler.c
diff --git
a/lustre/ptlrpc/nodemap_handler.c
b/lustre/ptlrpc/nodemap_handler.c
index
4e16ea7
..
aa1e5f2
100644
(file)
--- a/
lustre/ptlrpc/nodemap_handler.c
+++ b/
lustre/ptlrpc/nodemap_handler.c
@@
-744,7
+744,8
@@
ssize_t nodemap_map_acl(struct lu_nodemap *nodemap, void *buf, size_t size,
if (count < 0)
RETURN(-EINVAL);
if (count == 0)
if (count < 0)
RETURN(-EINVAL);
if (count == 0)
- RETURN(0);
+ /* if not proper ACL, do nothing and return initial size */
+ RETURN(size);
for (end = entry + count; entry != end; entry++) {
__u16 tag = le16_to_cpu(entry->e_tag);
for (end = entry + count; entry != end; entry++) {
__u16 tag = le16_to_cpu(entry->e_tag);