Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp980219ybh; Thu, 12 Mar 2020 14:49:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs2n3oLJeo01n/SlTXY8qroxt1YINW37Xjsg7mLVy4MQ+3wFEtOSz4kcJunDEWiznlGmphb X-Received: by 2002:a9d:560b:: with SMTP id e11mr7769129oti.226.1584049793760; Thu, 12 Mar 2020 14:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584049793; cv=none; d=google.com; s=arc-20160816; b=UoCTuz7LHAc485kCGshBBJKYaw4OkZz3BH/tpHp9qV/tKL3woKca31OihoV425bPhB Qq/imCmsE6LMpFg0L5LuBoLYKCUInbqB0u3I9+NtNieEFyPHeDStAKH7gKgrghuHuaVc geag1gxsgp02BZnp30ttdT4gHcWUnj0hA4MzchNNbztIFpuMXB0BS2+1Pgk+pK4bprHv yK5g11Ag6hBh4HUE7MBvL2CibIgwKKXGVVz1w1NtuG3yldbu8tRIB8w/yHeTeI/eaLyn 1TtqsTuqw9r+TEYjfpy8Aj053/ZAicxaK7Ck81qzx4r+nlJwZkp5V4Qa8IQ28gAwSgYm 2UwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=1JcRWJgIjBZEatikoz0G3mL9EJsdG0P/Ykm3OGVRQo4=; b=lcexiTduNcpf44QsEfNohZEg3F1fm9B9utXoZfGi1DGIYfptts3HA3QYZAj7NYneYF xUimmaPZEQdXjidvnfCNti0qlI2Elwt2LC06sGKkybeP5ZSmu0ng52L3V4m/z9Fsji5G +hcpVD0cw2hgeZz9VFC5ZOzukdpKehR/zzDvuLsF0w4nJXkJ+ARbDW01MBOVCuLQfGWi SHUJNe5dyhayfl8aZnpQ72LgtbPyQb4Y9oRRBKSJK5TSR21RdPgLswKmvovonMGQPpaE JPfIc87SMxnBFgEBk1LmloH9QxLhr1QZcmg0vGhEDF0qncEebYSc4JcXtziXsvaZ0qAH 2WHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=M0zd3UDi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si1054381otq.214.2020.03.12.14.49.41; Thu, 12 Mar 2020 14:49:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=M0zd3UDi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbgCLVtH (ORCPT + 99 others); Thu, 12 Mar 2020 17:49:07 -0400 Received: from hr2.samba.org ([144.76.82.148]:24712 "EHLO hr2.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgCLVtH (ORCPT ); Thu, 12 Mar 2020 17:49:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=Message-ID:Cc:To:From:Date; bh=1JcRWJgIjBZEatikoz0G3mL9EJsdG0P/Ykm3OGVRQo4=; b=M0zd3UDimz2yegwwlZBWRu1Sjm Hb2a9sq9I/B2kDBeJsob+VR2XNQaYH9Iy1mlh80tLPM12bcDfMTE7Vl1rQta5McDePT92ZD8iJVx9 4tIkUFiaXRuJxqXRY1b3LYV5TT9y0Y51MUhnzpAXCmeCh50oytdBZauYcQ24b2HFNK/RLcTAtOrD5 hTBFgTzdVQ0ofrJuWOVAaffympfy8PogEB8b5bMOrBCYsIUxsV32VOqKq22+55Ix0JZtWjbxJNRV1 6vDfCbps6fckISnbwkJA83CC45iVr8ot0VEw954sESPpX3S08kajgNhTB7NTflfsu+IYxtRNf86CY b+xx302xd92v1CkKTYCFMBwqmCqn0RvpztruQ3/4/poqm41ia+R5OfQLbgustha/L4tkO0VQG5NXK fyDcx1FGbGK/vnFmBQd79m7VBcS1nIU1N2SRWXJu2fLt8wJuxfBAzUQjf6/twU2w9n5Gnq5D+R541 DWEaB6FUBoQZBsoGn8v9YsSo; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim) id 1jCVhO-0001fg-IM; Thu, 12 Mar 2020 21:49:02 +0000 Date: Thu, 12 Mar 2020 14:48:54 -0700 From: Jeremy Allison To: Stefan Metzmacher Cc: Linus Torvalds , David Howells , Aleksa Sarai , Al Viro , Ian Kent , Miklos Szeredi , Christian Brauner , Jann Horn , "Darrick J. Wong" , Karel Zak , jlayton@redhat.com, Linux API , linux-fsdevel , LSM List , Linux Kernel Mailing List , Ralph =?iso-8859-1?Q?B=F6hme?= , Volker Lendecke Subject: Re: [PATCH 01/14] VFS: Add additional RESOLVE_* flags [ver #18] Message-ID: <20200312214854.GA19247@jeremy-acer> Reply-To: Jeremy Allison References: <158376244589.344135.12925590041630631412.stgit@warthog.procyon.org.uk> <158376245699.344135.7522994074747336376.stgit@warthog.procyon.org.uk> <20200310005549.adrn3yf4mbljc5f6@yavin> <580352.1583825105@warthog.procyon.org.uk> <3d209e29-e73d-23a6-5c6f-0267b1e669b6@samba.org> <8d24e9f6-8e90-96bb-6e98-035127af0327@samba.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d24e9f6-8e90-96bb-6e98-035127af0327@samba.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 12, 2020 at 06:11:09PM +0100, Stefan Metzmacher wrote: > Am 12.03.20 um 17:24 schrieb Linus Torvalds: > > On Thu, Mar 12, 2020 at 2:08 AM Stefan Metzmacher wrote: > >> > >> The whole discussion was triggered by the introduction of a completely > >> new fsinfo() call: > >> > >> Would you propose to have 'at_flags' and 'resolve_flags' passed in here? > > > > Yes, I think that would be the way to go. > > Ok, that's also fine for me:-) > > >>> If we need linkat2() and friends, so be it. Do we? > >> > >> Yes, I'm going to propose something like this, as it would make the life > >> much easier for Samba to have the new features available on all path > >> based syscalls. > > > > Will samba actually use them? I think we've had extensions before that > > weren't worth the non-portability pain? > > Yes, we're currently moving to the portable *at() calls as a start. > And we already make use of Linux only feature for performance reasons > in other places. Having the new resolve flags will make it possible to > move some of the performance intensive work into non-linux specific > modules as fallback. > > I hope that we'll use most of this through io_uring in the end, > that's the reason Jens added the IORING_REGISTER_PERSONALITY feature > used for IORING_OP_OPENAT2. > > > But yes, if we have a major package like samba use it, then by all > > means let's add linkat2(). How many things are we talking about? We > > have a number of system calls that do *not* take flags, but do do > > pathname walking. I'm thinking things like "mkdirat()"?) > > I haven't looked them up in detail yet. > Jeremy can you provide a list? Fixing the flags argument on fchmodat() to actually *implement* AT_SYMLINK_NOFOLLOW would be a good start :-). As for the syscalls that don't have flags I'm thinking of the things like: getxattr/setxattr/removexattr just off the top of my head. Jeremy.