Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8C449200BA6 for ; Tue, 18 Oct 2016 20:04:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8AF0D160ACE; Tue, 18 Oct 2016 18:04:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D35A8160AE5 for ; Tue, 18 Oct 2016 20:04:00 +0200 (CEST) Received: (qmail 12851 invoked by uid 500); 18 Oct 2016 18:03:59 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 12796 invoked by uid 99); 18 Oct 2016 18:03:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 18:03:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A7F612C4C73 for ; Tue, 18 Oct 2016 18:03:59 +0000 (UTC) Date: Tue, 18 Oct 2016 18:03:59 +0000 (UTC) From: "Alex Garbarini (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13522) Add %A and %a formats for fs -stat command to print permissions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 18 Oct 2016 18:04:01 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15586174#comment-15586174 ] Alex Garbarini commented on HADOOP-13522: ----------------------------------------- Thank you, Akira, for your patience and help teaching! I'm already hard at work on the next JIRA. > 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-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org