Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp247509imm; Thu, 31 May 2018 23:28:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVBYribTtt5OuVEtwp64Xp3S7pBdbw3TsMgIXXRAOhn5L+BAQDt3gRJE2LArxUiKKTeFKj X-Received: by 2002:a17:902:5ac8:: with SMTP id g8-v6mr4477256plm.221.1527834513160; Thu, 31 May 2018 23:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527834513; cv=none; d=google.com; s=arc-20160816; b=hDNqakozQGzx6Lx9cBXkdTGAjD9hcEyin/10U1oDzVpK6aAESNFp1psmR3d0FFVebR wyjG9OrJpm7LogFnVOmaS8rKzHYE/g8BJA+nkcFvbNNdBD03VinZoA8LIgMuMRghmB10 F7WcrKP01V0VqYQLTiwT/9kxJo5kJlfjiDZ4MdkNLQpE8Hmb1QGeCejewdMK/fFkZcEz orXkLTGByu+cxakiMXH8uIweTy77a2ZXlqLFTGiXH83eMuUhvCFkjj8OiAX5Djhrxpq6 CeQ54AGXfoVateQjB0R/ibSEhzCDSbo0YF01m8HW1BI5M73Q7dugLpV78OzqdqWZESiL 5yHg== 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:dkim-signature:arc-authentication-results; bh=idPF0ILILCXEK87zOFN5IxgUl9FdITispb8M0XIVIyo=; b=h5nLbs7WODgDc6EY2eBcH+W3hpySTfUgyMT4yuk0Hp/e0g5bP6zZsztO95i2cN05Sq UjxbPAxdW9MtoCOEhIapqSV7RLPyOIU4EVR6m7NuJz/PIWm+Cgjn0WBQFPzoZdBaXTw5 FGzfQEyQhf9jn1wPom+CnCFlX8q9B6wpBcIR12w5tv0opzNCt9MsCsUUuqRcoo1wmbrF 35s3Rtx+792QaHb8hscJjsunOzBs5QOwnnqLVO/mEfB2pUa3ZZ8jOa0fRXxPgWr0zTrY gijzr9pQRZJ0QXovrGAUX177okyztWW/mIiTWirqBIX+WndS3kGaDIPr4Ctv83DWGkpr +bng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pP7r23Kg; 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 18-v6si16041378pft.235.2018.05.31.23.28.19; Thu, 31 May 2018 23:28:33 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pP7r23Kg; 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 S1751397AbeFAG1A (ORCPT + 99 others); Fri, 1 Jun 2018 02:27:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38504 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbeFAG05 (ORCPT ); Fri, 1 Jun 2018 02:26:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=idPF0ILILCXEK87zOFN5IxgUl9FdITispb8M0XIVIyo=; b=pP7r23KgcsB9edMuJfFss1hKp FCTI0Z1sAmyUTsxyM4AM0BRrG2JWM+RYrEN2l4EsXQaavMZ8V9V+xZykDA1kRP6osayIa3udI1+LT aC5Ph0kuuLWVgV6M6m1YbThfwkUbpPIvP/p8AtpWeE7KygU+9QxyWW13WQZkcfuxIJGmZfS3Bkcec Nxc+TcaypKiFeGGwLNr/KnN/yACexLnjtL2vTErS576uHcNSM9k+524cJz1YCT6ncdDiHKz3HOSK3 pLMe+JXwwlaDq3tOVC0HsBQ2zZZvGTXjVy8kEmMcTd9Ccu0ksCeveMse/cmQeRU0ms9/XEmBhlL36 WiXWTcZdg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fOdWY-0001RX-KX; Fri, 01 Jun 2018 06:26:54 +0000 Date: Thu, 31 May 2018 23:26:54 -0700 From: Christoph Hellwig To: David Howells Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH 30/32] vfs: Allow cloning of a mount tree with open(O_PATH|O_CLONE_MOUNT) [ver #8] Message-ID: <20180601062654.GA32397@infradead.org> References: <152720672288.9073.9868393448836301272.stgit@warthog.procyon.org.uk> <152720691829.9073.10564431140980997005.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152720691829.9073.10564431140980997005.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 25, 2018 at 01:08:38AM +0100, David Howells wrote: > Make it possible to clone a mount tree with a new pair of open flags that > are used in conjunction with O_PATH: > > (1) O_CLONE_MOUNT - Clone the mount or mount tree at the path. > > (2) O_NON_RECURSIVE - Don't clone recursively. Err. I don't think we should use up two O_* flags for something only useful for your new mount API. Don't we have a better place to for these flags? Instead of overloading this on open having a specific syscalls just seems like a much saner idea.