Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2936725imm; Fri, 24 Aug 2018 07:52:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYP3j3QkljppC2jh19K0AgZbBO4rJmqAEQCJTMi1OQ30/1DjAolT6MQHCztHJwZ0DibCbkq X-Received: by 2002:a17:902:8e81:: with SMTP id bg1-v6mr2053838plb.129.1535122379697; Fri, 24 Aug 2018 07:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535122379; cv=none; d=google.com; s=arc-20160816; b=C1CE04Y40mzPMpHHJhUQzoTBfBTWfYFNoFkLr+LNJE/Rqt9kqOlWT7FnN9ST3JgrCJ ZvrB6fYAd9m04LvtBfrh7cdsevolBx/HRn0GlvNz31pn9yCYTec9gknWePO4ShZOcaSb eJeTW0zwE94e9V+OjIJ41+YCFM+m3Cdd3MSFohnkG4OxJkx5pwHBzN8/2aAYCmsGkClB G7JLEndpzwo4wsRRz3NMapxjMXgswN/y1rctfXbJJOJv0lSK/e/kpqdSbc2C11ZG7MmW wQkhHEHWY+I6bAsDG4Kzs1YFmD/4v3LarhKAXxjC4q0zMKan8n5bAEOfNqdBO9oroum3 eYXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=dzKGFlDNHuLyMb4EdZsUr83JhXdMkQM/MCQ2lZTLPys=; b=gp7Q5lT8Gg7Ntm8rGtfuMBmzj2F3bScNfzfNX/DksYCfF/ZAg+PLReZzAcfVZOXFe8 gg/gsVIsALokphSIud5sLs+ybUCOFRiAIcrpSsXXzz7Rtvy9bHF6OANaNiOZYk2PTenI n+7cB8WTruSPcF+Y1T300+5HbyHCiGQy3/ccsDZmHYq6zOSLjfYAxBYXkPbR89h9+nzK ApoydIajjENO6DwuJgaRfhx7Bsral2vIbmPwA4AYhbUXsl2fTkQcbihrtF22pftZzve8 tBQ/DQ6VNcskUlxD3hG0A7TED5v7C5Qkb6IQzAIA/1+7ieSMUcyoLQSRg/rEk/pvBeIR QXNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=g4B78Ips; 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 z7-v6si6662769plk.215.2018.08.24.07.52.42; Fri, 24 Aug 2018 07:52:59 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=g4B78Ips; 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 S1726508AbeHXS0e (ORCPT + 99 others); Fri, 24 Aug 2018 14:26:34 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:43266 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbeHXS0e (ORCPT ); Fri, 24 Aug 2018 14:26:34 -0400 Received: by mail-yw1-f68.google.com with SMTP id l189-v6so3162880ywb.10 for ; Fri, 24 Aug 2018 07:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dzKGFlDNHuLyMb4EdZsUr83JhXdMkQM/MCQ2lZTLPys=; b=g4B78IpsOFwK5M2d5205Jk29/kP5x+R7jBzyXmNQ8JKfJPKOlavjxH9pHGUu3vbYRy M0vQObkQmSesQMwZQ0+z00DtzfzlomP9fPCNnPkgVsB9YgJ80nQ78xEP3Ym0ceLYmYrp Af2WnfR6mx9X39s6mRfeyb15TxbustDLHYdRo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dzKGFlDNHuLyMb4EdZsUr83JhXdMkQM/MCQ2lZTLPys=; b=IF3Lo3HtL0iFiMiryoIk4+2FCILjsBH+Y+lrBu+9+53kY5hBOFsU24QEMednHp7o3b o6A8vpX3Z92d8ZJmFtOZ642J30N3xXwZPW9QsVPcx8aXEWvyOtrOBFr8huIzajp6xxHG MVan1tl4AZzOCaDwTHjYJMKS340JJskRafy7+P1Yc2/vRgPLPpFEpcmV2QKaaNX7qGlP CN1DshRYhGP5gDZRj/Fw36V7kSoyS5xhmZHCyubjvwdNU71nCFq0UuCthr5wWTwZZIE0 w+DIKorjynJYqVJeZy5QtpWAofoXEBwwvQgaUg3J9FITfLWaFonHjXQa008UMTAfUrXq MFEg== X-Gm-Message-State: APzg51ChpjZrAe1I5WOdywMDDsVwVtLQVOEk3iXg3LAr9zB/KB0AqCgu iin6DqbYptAqlOp5YagUjZFhb31umpU= X-Received: by 2002:a0d:cfc2:: with SMTP id r185-v6mr1218815ywd.337.1535122295258; Fri, 24 Aug 2018 07:51:35 -0700 (PDT) Received: from mail-yb0-f175.google.com (mail-yb0-f175.google.com. [209.85.213.175]) by smtp.gmail.com with ESMTPSA id o74-v6sm10539252ywo.54.2018.08.24.07.51.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 07:51:34 -0700 (PDT) Received: by mail-yb0-f175.google.com with SMTP id z12-v6so3564271ybg.9; Fri, 24 Aug 2018 07:51:34 -0700 (PDT) X-Received: by 2002:a25:b305:: with SMTP id l5-v6mr1159000ybj.479.1535122293905; Fri, 24 Aug 2018 07:51:33 -0700 (PDT) MIME-Version: 1.0 References: <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <153313724861.13253.3837522702693613670.stgit@warthog.procyon.org.uk> In-Reply-To: <153313724861.13253.3837522702693613670.stgit@warthog.procyon.org.uk> From: Miklos Szeredi Date: Fri, 24 Aug 2018 16:51:22 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 30/33] vfs: syscall: Add fspick() to select a superblock for reconfiguration [ver #11] To: David Howells Cc: Al Viro , Linux API , Linus Torvalds , linux-fsdevel , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 1, 2018 at 5:29 PM David Howells wrote: > --- a/include/uapi/linux/fs.h > +++ b/include/uapi/linux/fs.h > @@ -351,6 +351,11 @@ typedef int __bitwise __kernel_rwf_t; > > #define FSMOUNT_CLOEXEC 0x00000001 > > +#define FSPICK_CLOEXEC 0x00000001 > +#define FSPICK_SYMLINK_NOFOLLOW 0x00000002 > +#define FSPICK_NO_AUTOMOUNT 0x00000004 > +#define FSPICK_EMPTY_PATH 0x00000008 This caught my eye: why aren't we using the AT_ constants? Adding an AT_CLOEXEC sounds less horrible than duplicating all the lookup related flags for FSPICK... Thanks, Miklos > + > /* > * The type of fsconfig() call made. > */ >