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 42851200BB4 for ; Tue, 18 Oct 2016 02:21:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 41408160AEC; Tue, 18 Oct 2016 00:21:00 +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 89CF0160AF2 for ; Tue, 18 Oct 2016 02:20:59 +0200 (CEST) Received: (qmail 76884 invoked by uid 500); 18 Oct 2016 00:20:58 -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 76862 invoked by uid 99); 18 Oct 2016 00:20:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 00:20:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 703FE2C4C77 for ; Tue, 18 Oct 2016 00:20:58 +0000 (UTC) Date: Tue, 18 Oct 2016 00:20:58 +0000 (UTC) From: "Alex Garbarini (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13522) Permissions on fs stat added 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 00:21:00 -0000 [ 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.008.patch Thank you Akira for helping at each step! The patch has been updated for the latest trunk and the removal of whitespace. Build and test case both pass. > 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 > 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-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org