[ 
https://issues.apache.org/jira/browse/HDFS-6375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Lamb updated HDFS-6375:
-------------------------------

    Attachment: HDFS-6375.9.patch

Thanks for the comments Andrew. The .9 patch fixes the indentation issue (I 
don't know how that one snuck by me) and adds the two paranoia tests.

I'm not sure how to do the DFSClient Map.keySet -> List trick in JSonUtil since 
what we have is an array of Map's, where each Map maps strings to strings. For 
each Map we lookup the "name" attribute and that yields the xattr name. If it 
were a single Map, then I think we could do the same thing, but it's multiple 
maps. But maybe I'm misunderstanding what you're suggesting.

> Listing extended attributes with the search permission
> ------------------------------------------------------
>
>                 Key: HDFS-6375
>                 URL: https://issues.apache.org/jira/browse/HDFS-6375
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 3.0.0
>            Reporter: Andrew Wang
>            Assignee: Charles Lamb
>         Attachments: HDFS-6375.1.patch, HDFS-6375.2.patch, HDFS-6375.3.patch, 
> HDFS-6375.4.patch, HDFS-6375.5.patch, HDFS-6375.6.patch, HDFS-6375.7.patch, 
> HDFS-6375.8.patch, HDFS-6375.9.patch
>
>
> From the attr(5) manpage:
> {noformat}
>        Users with search access to a file or directory may retrieve a list  of
>        attribute names defined for that file or directory.
> {noformat}
> This is like doing {{getfattr}} without the {{-d}} flag, which we currently 
> don't support.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to