[jira] [Updated] (HADOOP-13522) Add %A and %a formats for fs -stat command to print permissions

2016-10-18 Thread Akira Ajisaka (JIRA)

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

Akira Ajisaka updated HADOOP-13522:
---
   Resolution: Fixed
Fix Version/s: 3.0.0-alpha2
   2.9.0
   Status: Resolved  (was: Patch Available)

Committed this to trunk and branch-2. Thanks [~algarbar] for the contribution!

> Add %A and %a formats for fs -stat command to print permissions
> ---
>
> Key: HADOOP-13522
> URL: https://issues.apache.org/jira/browse/HADOOP-13522
> Project: Hadoop Common
>  Issue Type: Improvement
>  Components: fs
>Affects Versions: 3.0.0-alpha1
>Reporter: Alex Garbarini
>Assignee: Alex Garbarini
> Fix For: 2.9.0, 3.0.0-alpha2
>
> Attachments: HADOOP-13522.001.patch, HADOOP-13522.002.patch, 
> HADOOP-13522.003.patch, HADOOP-13522.004.patch, HADOOP-13522.005.patch, 
> HADOOP-13522.006.patch, HADOOP-13522.007.patch, HADOOP-13522.008.patch
>
>
> 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Updated] (HADOOP-13522) Add %A and %a formats for fs -stat command to print permissions

2016-10-17 Thread Akira Ajisaka (JIRA)

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

Akira Ajisaka updated HADOOP-13522:
---
   Flags:   (was: Patch)
Hadoop Flags: Reviewed
Release Note: Added permissions to the fs stat command. They are now 
available as symbolic (%A) and octal (%a) formats, which are in line with 
Linux.  (was: Added permissions to the fs stat command. They are now available 
as symbolic (%A) and octal formats (%a), which is in line with Linux.)
 Summary: Add %A and %a formats for fs -stat command to print 
permissions  (was: Permissions on fs stat added)

> Add %A and %a formats for fs -stat command to print permissions
> ---
>
> Key: HADOOP-13522
> URL: https://issues.apache.org/jira/browse/HADOOP-13522
> Project: Hadoop Common
>  Issue Type: Improvement
>  Components: fs
>Affects Versions: 3.0.0-alpha1
>Reporter: Alex Garbarini
>Assignee: Alex Garbarini
> Attachments: HADOOP-13522.001.patch, HADOOP-13522.002.patch, 
> HADOOP-13522.003.patch, HADOOP-13522.004.patch, HADOOP-13522.005.patch, 
> HADOOP-13522.006.patch, HADOOP-13522.007.patch, HADOOP-13522.008.patch
>
>
> 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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org