Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3772872imm; Mon, 4 Jun 2018 09:01:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLd/XtcOqnkHTMojgA1YQ9VDRNytpDkBR71FcWx3o091lqYR5DsMC083/D3DrwmSulE8qnm X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr5629313plh.152.1528128094386; Mon, 04 Jun 2018 09:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528128094; cv=none; d=google.com; s=arc-20160816; b=cPTODG8oMjg44sJLEz5Yth64z0Hrq/XOniir3VG/K4y7Tu/9eA3V8s1HqVwb41oTd4 GRwFSq0IQizr0t2buYYhc8s55yyucLwGyXYjLW7fgyIE7o1BOCu9v6bN7XsxzNtr9luh 90kLuKkDu5FYG+Ji+lilA6RqXwlux2D/ylu8fi8odc0uG9xbbuNwPfa4bdNH5AoYncl8 woqcfQylhID3y/f+/c+vAiBzCmzfRvObg1jm8OUnCXc/nN7z0D+MgPEUeNOfJDYoHilQ UCeFz33BmzgXwKzKZZMcQ9DyvWzB1fsAEYpS9NExx3gxy29t769QhnLX0dbzqrCeQHot aWEw== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=NNd+8XostDrjkS0g26pI/e0GIm61todu7iuUUG0DrXE=; b=o0LtkbnIFM8NGwS+qkudHSQqjUNWJQq7zvlBAeduaixFOJRmLKsz5z/ogOmLYWLC34 NiljbNK6EHseQMzMsTVdv4PSfytQ+vdHcaxnXbHILeVR/UOaECvDDrAd510aZCTPPsKH s/Th3czfiLBlhvhACijb1AiaQ0TMtMx7JzTL6glyBT1j/2noTyv6uGgBFWSuad47Iamn jfcaPAj5HrQZe9r2rTnbJfqPNQ+Kp/E9WbyJ1w8MSxHOpke48e/zpZHAlKA1vNoAyxws shE3SjZFTUJvCHZXUXrUorN8d/8OIA6lX357/Hupt4tNtO3cpQDM5ZdJBfc1WcxHxGaG znFg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t186-v6si2823919pgd.41.2018.06.04.09.01.19; Mon, 04 Jun 2018 09:01:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751501AbeFDP7n (ORCPT + 99 others); Mon, 4 Jun 2018 11:59:43 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:36140 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbeFDP7k (ORCPT ); Mon, 4 Jun 2018 11:59:40 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fPrtR-0002l2-8a; Mon, 04 Jun 2018 15:59:37 +0000 Date: Mon, 4 Jun 2018 16:59:37 +0100 From: Al Viro To: Miklos Szeredi Cc: David Howells , Christoph Hellwig , linux-fsdevel , linux-afs@lists.infradead.org, LKML , Linux API Subject: Re: [PATCH][RFC] open_tree(2) (was Re: [PATCH 30/32] vfs: Allow cloning of a mount tree with open(O_PATH|O_CLONE_MOUNT) [ver #8]) Message-ID: <20180604155937.GI30522@ZenIV.linux.org.uk> References: <152720691829.9073.10564431140980997005.stgit@warthog.procyon.org.uk> <20180601062654.GA32397@infradead.org> <7067.1527841663@warthog.procyon.org.uk> <20180602030913.GU30522@ZenIV.linux.org.uk> <20180602034255.GV30522@ZenIV.linux.org.uk> <21804.1527954321@warthog.procyon.org.uk> <20180602174957.GX30522@ZenIV.linux.org.uk> <20180603005532.GZ30522@ZenIV.linux.org.uk> <20180604155205.GH30522@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180604155205.GH30522@ZenIV.linux.org.uk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 04, 2018 at 04:52:05PM +0100, Al Viro wrote: > On Mon, Jun 04, 2018 at 12:34:44PM +0200, Miklos Szeredi wrote: > > > fsopen = create fsfd > > fsmount = fsfd -> mountfd & set attr on mountfd & attach mountfd > > fspick = path -> fsfd > > move_mount = attach mountfd or move existing > > fsinfo = info from path > > open_tree = new mountfd from path or clone > > mount_setattr = set attr on mountfd > > > > Notice that fsmount() encompasses mount_setattr() + move_mount() > > functionality. Split those out and leave fsmount() to actually do > > the "fsfd ->mountfd" translation? > > Might make sense. FWIW, to make it clear: fsmount(2) in this series actually does *NOT* attach it to the tree. Commit message definitely needs updating - as it is, it's +SYSCALL_DEFINE5(fsmount, int, fs_fd, unsigned int, flags, unsigned int, ms_flags, + void *, reserved4, void *, reserved5) PS: IMO these reserved... arguments are in bad taste; if anyone has good reasons for that practice in ABI design, I'd like to hear those.