[ 
https://issues.apache.org/jira/browse/HADOOP-4106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629128#action_12629128
 ] 

Craig Macdonald commented on HADOOP-4106:
-----------------------------------------

Pete, 

* I dont think doConnectAsUser is correct. You are using the filesystem of the 
user running fuse_dfs, not the filesystem of the user making an IO operation 
through fuse_dfs. You should use the fuse_context to determine the uid of the 
calling user, convert to user/group names, and then pass these to libhdfs.

{code}
fuse_context * context = fuse_get_context ();
uid_t uid = context->uid;
gid_t uid = context->gid;
{code}

 * Could dfs_access be implemented by checking hdfsFileInfo?

> add time, permission and user attribute support to fuse-dfs
> -----------------------------------------------------------
>
>                 Key: HADOOP-4106
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4106
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: contrib/fuse-dfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4106.txt
>
>
> add:
> dfs_chown
> dfs_utime
> dfs_chmod
> Change open to have its own FS on writes (should we do this on reads too??) 
> and use it for writes and disconnect when closing the file
> Chane mkdir to open the FS itself and then close it
> also added comments for dfs_access (which needs FileSystem support/libhdfs 
> support) and I added the dfs_symlink and truncate since these 3 are the only 
> 3 things left as far as functionality.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to