You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Pete Wyckoff (JIRA)" <ji...@apache.org> on 2008/09/07 02:17:44 UTC

[jira] Commented: (HADOOP-3264) libhdfs does not provide permissions in API

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

Pete Wyckoff commented on HADOOP-3264:
--------------------------------------

I now think the best thing is to go "posix-esque"

{code}

int chown(hdfsFS fs, const char *path, uid_t owner, gid_t group);
int chmod(hdfsFS fs, const char *path, mode_t mode)
int utime(hdfsFS fs, const char *filename, const struct utimbuf *buf);

{code}

Now, if we're worried that uid_t, gid_t, mode_t, utimebuf are not portable to windows cygwin or others, then we could just define our own versions of these, but probably to whatever extent possible, make them identical to posix ones.

- pete


> libhdfs does not provide permissions in API
> -------------------------------------------
>
>                 Key: HADOOP-3264
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3264
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: libhdfs
>    Affects Versions: 0.16.2
>            Reporter: Craig Macdonald
>         Attachments: libhdfs_permissions.v1.patch, libhdfs_permissions.v2.patch
>
>
> There is no support in libhdfs methods for obtaining or setting the permissions, owner or group-owner of files in hdfs.

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