Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6014056iog; Thu, 23 Jun 2022 09:33:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sCv636WuvuNN/Xex164nTFjsLNtN/uZ2Xq2cbHP5Bt1oGZZPGN6mEKZfByOVXAkzt0g/ea X-Received: by 2002:a17:907:1c18:b0:711:c83b:8a14 with SMTP id nc24-20020a1709071c1800b00711c83b8a14mr8657757ejc.379.1656001999780; Thu, 23 Jun 2022 09:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656001999; cv=none; d=google.com; s=arc-20160816; b=vp1TMS02hYX9exV73gW+DKzXIAIObfKw9P8ShUJTlWciJvxfJ/ZAn42WYp3DRfTtxX mkid0zumbAD50aTWQtlOF7N+1nPzVefj/IU+Qytwz8fblM6VAmU1UqdE0VhWOuLLNeFQ Z5c7t/M4d9Zx88s207OZjj6VD0nkAqlxdjTCr7Pxr7cLJM3BHzF/Q2wsSvPMM4QgALfF LgIP0FTMxDBEHw0e0ruVHswjv13bA9QdBECaTeJjXpuLpjhnlbPCz3BAAZmYIGNgWdTW u42fTcs10p4GGgGFKvWyuPGF6kxEdxrE+KF8C3c0j7H/+OAnyBiFsTuy1lHvfE5TGyo2 65/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=bcyfxdYDvwFKE4FcRkASoG03KisaDjvMQmq4ODLZY6Y=; b=Ltdb7IV9gdy490Lvw7uFwwR4TCqpP13qvQVPjuCBla+35XOdCiYuJTNW0DrGLeraI6 iOkcFkxsiX/ez0Tq9QexMbIw2zNbCztgM9aKs91/4iTVt1R9kHmR/mx1ZtQEjHSat5bY t5wHjvi5DZyI3nvIvu10B6vxByqMfwZuikHEKGmuPoKzzq4/ps+60qoYCzCWgyQMOPUd nBRNj9vVJKYCGoXmWF+Si8s7xFzoomhz5WvFRdyWXC8+CDzn/Tt8y5YETHccq7XQTeew utY1ao406RYOFHI0saX6yEqmq03ytEBUNKgSsYwBNE7uwu6SxM25O+kUzXwX5w/AwcYC /bdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dilger-ca.20210112.gappssmtp.com header.s=20210112 header.b=Q6EkS8J9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a05640251cc00b00435c7cf30d4si74484edd.27.2022.06.23.09.32.49; Thu, 23 Jun 2022 09:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20210112.gappssmtp.com header.s=20210112 header.b=Q6EkS8J9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232185AbiFWQZB (ORCPT + 99 others); Thu, 23 Jun 2022 12:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbiFWQY7 (ORCPT ); Thu, 23 Jun 2022 12:24:59 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4EF6381A2 for ; Thu, 23 Jun 2022 09:24:57 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id 73-20020a17090a0fcf00b001eaee69f600so87673pjz.1 for ; Thu, 23 Jun 2022 09:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20210112.gappssmtp.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=bcyfxdYDvwFKE4FcRkASoG03KisaDjvMQmq4ODLZY6Y=; b=Q6EkS8J9o1kRFWTS1Sz7yUZQrVb9iZj6pO/U9kzzfvvlgRxFnL50FsOu6QYctzx4Zj 4AFwrrYShyaBMbMo/S//DCItdhB6Xhidd85LbLLCxhVPWdWfApQ8g/jLGL/zYxjMnhmB xugmETGHUFP/NTpUaNxC3LJ8uNd1GAVXJfdx/0rp85cdY7Ghk6qITrxSFopDdfiLvenO RRWQfBglfzjZeMXnkcJFN4vOV1vf6TcRPzixwqDrnxZlAnKBAJNAfji+cLcxuPTwVecy yQOMeWEt/s2lxyaOoO1+OBzNWKgwuofTfgyeF7a8/TNbKiIEVB21YyJebVkm9tDvvBw2 jkgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=bcyfxdYDvwFKE4FcRkASoG03KisaDjvMQmq4ODLZY6Y=; b=HU/COBDHnJh+616lkxRVZZQ1hyCYrm2nT/BBNJKXPUvqE1meRa53gz8dttK5F0l+Ut Qe9Qg/fhTcQLjg944o2lCKFdJmnu7SHdKu/d2u3LI1napiTiCCnVlZZ3mPDegJp/Ps1t idjf4TNVGkS86aef7hLn47MZC+eE/l0ffCC/fJFjxA4q7Hc3Ohj4uVTogfCRJOQwHCBd zdwTgw+sBTr1G/NUC/ldMb37THZdIYEIRGvJ3BQlyDUSZTqcsLKGWSe5Pa9fT3/DQbia lHRbMJusjqbNvatQtOTPzF9epyLg0LWbxQpuNn8EgE4+PpDBzj1+kNDaW8P/q/9okZLB M9KQ== X-Gm-Message-State: AJIora9kiVrjzhHAKV+KXMufIUs5y9YUVf8ScYSe5B3rznYCBG3BHpqo DO8Qr3TmdsIxlpT4BVr9Fu2QJcQhobBefenvqUI= X-Received: by 2002:a17:90b:3b81:b0:1ec:e852:22db with SMTP id pc1-20020a17090b3b8100b001ece85222dbmr4865881pjb.77.1656001497135; Thu, 23 Jun 2022 09:24:57 -0700 (PDT) Received: from cabot.adilger.int (S01061cabc081bf83.cg.shawcable.net. [70.77.221.9]) by smtp.gmail.com with ESMTPSA id jh21-20020a170903329500b0016a109c7606sm11075493plb.259.2022.06.23.09.24.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2022 09:24:56 -0700 (PDT) From: Andreas Dilger Message-Id: <622BA3BB-03EA-4271-8A2E-2ADAFB574155@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_1B6FC5B2-556F-4A2D-9F1C-A60D36468C15"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [man-pages RFC PATCH] statx.2, open.2: document STATX_DIOALIGN Date: Thu, 23 Jun 2022 10:27:19 -0600 In-Reply-To: Cc: Eric Biggers , linux-fsdevel@vger.kernel.org, linux-man@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-xfs@vger.kernel.org, linux-api@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Keith Busch To: "Darrick J. Wong" References: <20220616202141.125079-1-ebiggers@kernel.org> X-Mailer: Apple Mail (2.3273) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org --Apple-Mail=_1B6FC5B2-556F-4A2D-9F1C-A60D36468C15 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Jun 23, 2022, at 10:02 AM, Darrick J. Wong wrote: > > On Thu, Jun 16, 2022 at 01:21:41PM -0700, Eric Biggers wrote: >> From: Eric Biggers >> >> @@ -244,8 +249,11 @@ STATX_SIZE Want stx_size >> STATX_BLOCKS Want stx_blocks >> STATX_BASIC_STATS [All of the above] >> STATX_BTIME Want stx_btime >> +STATX_ALL The same as STATX_BASIC_STATS | STATX_BTIME. >> + This is deprecated and should not be used. > > STATX_ALL is deprecated?? I was under the impression that _ALL meant > all the known bits for that kernel release, but... For userspace STATX_ALL doesn't make sense, and it isn't used by the kernel. Firstly, that would be a compile-time value for an application, so it may be incorrect for the kernel the code is actually run on (either too many or too few bits could be set). Secondly, it isn't really useful for an app to request "all attributes" if it doesn't know what they all mean, as that potentially adds useless overhead. Better for it to explicitly request the attributes that it needs. If that is fewer than the kernel could return it is irrelevant, since the app would ignore them anyway. The kernel will already ignore and mask attributes that *it* doesn't understand, so requesting more is fine and STATX_ALL doesn't help this. Cheers, Andreas --Apple-Mail=_1B6FC5B2-556F-4A2D-9F1C-A60D36468C15 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAmK0lGcACgkQcqXauRfM H+CkuA//avp4Tuh55VpE8yHOQ8z64y5vrwNesx7bZ8atQCuwyhbJlvdTGn27SVv1 4j1+/hWy3q+Jsot1ja0njROgu9KlOetTJ7qK4tlq4buIjBuB1izLfyGtSUtRezui Z93g7NQEpOSFyNwknXMz2vTB4gOxgMd0V9jCkElXXC+EClReBJq/Jts+/qNH8cnU j2kdedwlaAg3zMbSWbygM0DxumX1YB0dCYuK/SyyAyjWr4I5mHFqHeyZf3ej2fVB g/wUfgv7Ku50XluSp4/deoA8R/TJbCkQikvKS4S9pI/LqMeOEZ6moyIJ8KRyWKSs wbSn8e2E49hUrxKO15kQx2vIs1BS1WLN1PWmv4TVnkTmfkuf7iUVVMxlU3Jfifcx qZXhYvTv7UvL/oV12MJHzQiYR/YUytHzdeliMC+sDa/tCyWE0UZMAZaKFgO9vV9h gdHfsvdNabGbFBE8ul5auWUT6QaqmytVQOk6239FD/gHD3Vw4ZVptZKDziYfwULV JgVDmWSi8RzmV3F+g3Lr9oGWqFbErsl+QWm80wXaC7yxHm3C2wKKqwPx6bfFbucT PuSiilxCV7qDXmDRISKNt/JMaLsxh8w+15v92wWhacEtgMzIyVsjudfePb2wiUtw bLbXOh9Pj4DCci4an5lxVhj8jEYThvOPq1FlB6e7qhrXwoGwugE= =83Nf -----END PGP SIGNATURE----- --Apple-Mail=_1B6FC5B2-556F-4A2D-9F1C-A60D36468C15--