From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 C0145C433E5 for ; Fri, 10 Jul 2020 14:25:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A19C220674 for ; Fri, 10 Jul 2020 14:25:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727840AbgGJOZG (ORCPT ); Fri, 10 Jul 2020 10:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727782AbgGJOZG (ORCPT ); Fri, 10 Jul 2020 10:25:06 -0400 Received: from sym2.noone.org (sym2.noone.org [IPv6:2a01:4f8:120:4161::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3088C08C5CE for ; Fri, 10 Jul 2020 07:25:05 -0700 (PDT) Received: by sym2.noone.org (Postfix, from userid 1002) id 4B3FgM35QBzvjdR; Fri, 10 Jul 2020 16:25:03 +0200 (CEST) Date: Fri, 10 Jul 2020 16:25:03 +0200 From: Tobias Klauser To: Jens Axboe Cc: io-uring@vger.kernel.org Subject: Re: [PATCH] test/statx: verify against statx(2) on all archs Message-ID: <20200710142501.jrj5cnwmpiyq5ign@distanz.ch> References: <20200709213452.21290-1-tklauser@distanz.ch> <304e4cdb-f090-ef90-18e1-d677d659918a@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <304e4cdb-f090-ef90-18e1-d677d659918a@kernel.dk> User-Agent: NeoMutt/20170113 (1.7.2) Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 2020-07-10 at 15:55:24 +0200, Jens Axboe wrote: > On 7/9/20 3:34 PM, Tobias Klauser wrote: > > Use __NR_statx in do_statx and unconditionally use it to check the > > result on all architectures, not just x86_64. This relies on the > > fact that __NR_statx should be defined if struct statx and STATX_ALL are > > available as well. > > > > Don't fail the test if the statx syscall returns EOPNOTSUPP though. > > Applied, thanks. And thanks for your follow-up fix! Looking at it I noticed that statx_syscall_supported introduced by this change should check for ENOSYS, not EOPNOTSUPP. Will send another follow-up.