You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Alex Garbarini (JIRA)" <ji...@apache.org> on 2016/08/19 22:44:20 UTC
[jira] [Updated] (HADOOP-13522) Permissions on fs stat added
[ https://issues.apache.org/jira/browse/HADOOP-13522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Garbarini updated HADOOP-13522:
------------------------------------
Attachment: HADOOP-13522.001.patch
Patch
> Permissions on fs stat added
> ----------------------------
>
> Key: HADOOP-13522
> URL: https://issues.apache.org/jira/browse/HADOOP-13522
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs
> Reporter: Alex Garbarini
> Priority: Minor
> Attachments: HADOOP-13522.001.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> This patch adds to fs/shell/Stat.java the missing options of %a and %A.
> FileStatus already contains the getPermission() method required for returning symbolic permissions. FsPermission contains the method to return the binary short, but nothing to present in standard Octal format.
> Most UNIX admins base their work on such standard octal permissions. Hence, this patch also introduces one tiny method to translate the toShort() return into octal.
> Build has already passed unit tests and javadoc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org