Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A789C43381 for ; Fri, 1 Mar 2019 15:52:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 471F920851 for ; Fri, 1 Mar 2019 15:52:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="TRp2EMux" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388458AbfCAPwG (ORCPT ); Fri, 1 Mar 2019 10:52:06 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:51582 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728172AbfCAPwG (ORCPT ); Fri, 1 Mar 2019 10:52:06 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x21FnI3Z158307; Fri, 1 Mar 2019 15:51:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=TzdYiN5KAR7glc2nbUkwL6JFo5ZamSRcbMIvnbTskFU=; b=TRp2EMux2a6lqZw5XqfvuzoKKYrd4l6U0DYOIpfs2olJLXq7SeomK3uSWfy8KzqvcZW7 iUbut8wcSOnElZZZeZ8DPwbDXN+k3CQ42D3JZfKmIyUocIcnaiug+7m37AMBNthbtqVZ 12rHhsNKZrP5NGwl/cfw9pzvpcLoX+XmbMnWslxgOOtElCalOmgiRHo8IylBQ4ENVZ3I CDmgQTM9c0xNrosw7zPLfjgJEDPw31gPG7gLY0LXaWr2bR+0cOLeHUeNt1Vqfdu09/8K 9gGkWcUvYosk/FN7vk35+r1rKhhzNfk8A8D246N853wnMVlmG7vZpnLlHwSSZlvzzDqM DA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2qtwkur56g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 01 Mar 2019 15:51:51 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x21FppBL030739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Mar 2019 15:51:51 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x21Fponn029189; Fri, 1 Mar 2019 15:51:50 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 01 Mar 2019 07:51:49 -0800 Date: Fri, 1 Mar 2019 07:51:45 -0800 From: "Darrick J. Wong" To: Wang Shilong Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, lixi@ddn.com, adilger@dilger.ca, Wang Shilong , linux-man@vger.kernel.org Subject: Re: [PATCH 2/2] statx.2: add project support update Message-ID: <20190301155145.GO21626@magnolia> References: <1551449184-7942-1-git-send-email-wshilong1991@gmail.com> <1551449184-7942-3-git-send-email-wshilong1991@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551449184-7942-3-git-send-email-wshilong1991@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9181 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903010111 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Mar 01, 2019 at 11:06:24PM +0900, Wang Shilong wrote: > From: Wang Shilong > > Cc: linux-man@vger.kernel.org > Signed-off-by: Wang Shilong > --- > man2/statx.2 | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/man2/statx.2 b/man2/statx.2 > index 7265d8ace..6a9dede8b 100644 > --- a/man2/statx.2 > +++ b/man2/statx.2 > @@ -82,6 +82,7 @@ struct statx { > containing the filesystem where the file resides */ > __u32 stx_dev_major; /* Major ID */ > __u32 stx_dev_minor; /* Minor ID */ > + __u32 stx_projid; /* Project ID of file */ > }; > .EE > .in > @@ -261,6 +262,7 @@ STATX_SIZE Want stx_size > STATX_BLOCKS Want stx_blocks > STATX_BASIC_STATS [All of the above] > STATX_BTIME Want stx_btime > +STATX_PROJID Want stx_projid > STATX_ALL [All currently available fields] > .TE > .in > @@ -412,6 +414,9 @@ The device on which this file (inode) resides. > .IR stx_rdev_major " and " stx_rdev_minor > The device that this file (inode) represents if the file is of block or > character device type. > +.TP > +.I stx_projid > +The file's project ID. > .PP > For further information on the above fields, see > .BR inode (7). > @@ -458,6 +463,9 @@ See > .TP > .B STATX_ATTR_ENCRYPTED > A key is required for the file to be encrypted by the filesystem. > +.TP > +.B STATX_ATTR_PROJINHERIT > +Sub directories or files will inherit parent's project ID automatically. "Newly created files and directories will inherit...", I think? I appreciate the manpage and fstests updates immensely. :) --D > .SH RETURN VALUE > On success, zero is returned. > On error, \-1 is returned, and > -- > 2.19.1 >