diff options
| author | Poornima G <pgurusid@redhat.com> | 2018-01-04 19:38:05 +0530 | 
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2018-01-19 03:51:27 +0000 | 
| commit | 8fc9c6a8fc7c73b2b4c65a8ddbe988bca10e89b6 (patch) | |
| tree | 82ca0c00f046f09785ba095f0d705fa38245fb70 /xlators/storage/posix/src/posix.h | |
| parent | 84c5c540b26c8f3dcb9845344dd48df063e57845 (diff) | |
posix: In getxattr, honor the wildcard '*'
Currently, the posix_xattr_fill performas a sys_getxattr
on all the keys requested, there are requirements where
the keys could contain a wildcard, in which case sys_getxattr
would return ENODATA, eg: if the xattr requested is user.*
all the xattrs with prefix user. should be returned, with their
values.
This patch, changes posix_xattr_fill, to honor wildcard in the keys
requested.
Updates #297
Change-Id: I3d52da2957ac386fca3c156e26ff4cdf0b2c79a9
Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
| -rw-r--r-- | xlators/storage/posix/src/posix.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 330ed20b480..720c3011f5a 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -256,6 +256,8 @@ typedef struct {          int          fdnum;          int          flags;          int32_t     op_errno; +        char        *list; +        size_t       list_size;  } posix_xattr_filler_t;  typedef struct {  | 
