Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1602137yba; Fri, 17 May 2019 02:00:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAAItgfZGHn+F5mtcufx7s7WdOw5FXG86EJ0R0XCYAsfk78n7CSSr5eTAjE56KiEiiCPnM X-Received: by 2002:a17:902:e407:: with SMTP id ci7mr55195649plb.219.1558083612693; Fri, 17 May 2019 02:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558083612; cv=none; d=google.com; s=arc-20160816; b=zRq7TusmouPN849fqc7PSVNdf+CYKDEbwunliamW02isDbGJnc7YuYTzDklUoR1OnJ kn6j5JWm9eO1H4BhET2bt4QlBWXKxlLGwL0lVPc1wyIXDuxLh8hRGpZJ2E+TYjCCCoe5 VAAlv/sDCKpGLoIYmpVC73RSiXHF8ZALHeROsYZmuGGWGU6BB4TYiQmUQcJsvzox0pMj O7T4ptorlrzUnICXo0UecISYpl6UtB7RgpL69Adeon+fO6HYgtFz/qsybYtaORred0ZR iMjmRS2WPlLqnxiKangbkmkgSPTI8IJrT2ImddHveKGZY7vwRxAXElJT65fH/QerET0v 0gGg== 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; bh=Ye8jut5rxl+0GMAFKnOCRncXMpbDpjVXA4oZoWpQTz4=; b=p1ADOvt6RnbWhdo2mAHzPfA8+YUhv3IZFrugMV0OVQYiMzHc/H7u9GYxuXmLNThuMR 9jP0qbd89YABaZc6LVoBKzQFRJcJC8cvvcmoHE0vDZiKpOAql/MLicDMaZ1ksQzMyteI pEMy8aezFP8oh/TZydyuLSRTbh1FpJjxRxS3gop7dgL20Mwz7YP/Cwj3YQapaibnzPMk vlERV1TepO7oVEo0s8jD6DxdwGDgmlpdv37DTpBmlFsLWxl2cjmAfcGLs9PoySdfbZ2j WmRKYM7eSezztakJRDrVdeaBjR10joRPuUnF2YstSjcrt/Z8FAOENnLN32Rz/UciBK7R RGOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=cmGbh+cP; 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 205si7383009pfw.107.2019.05.17.01.59.57; Fri, 17 May 2019 02:00:12 -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=cmGbh+cP; 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 S1728132AbfEQHZe (ORCPT + 99 others); Fri, 17 May 2019 03:25:34 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:37589 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727871AbfEQHZe (ORCPT ); Fri, 17 May 2019 03:25:34 -0400 Received: by mail-io1-f65.google.com with SMTP id u2so4718160ioc.4 for ; Fri, 17 May 2019 00:25:33 -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=Ye8jut5rxl+0GMAFKnOCRncXMpbDpjVXA4oZoWpQTz4=; b=cmGbh+cPPNLCmAlgZhq/+G+m3XSej85ipZrbMM2pPPU+o0yz9wqWOJi7eTugqWc6wa sgoENPX5qH8QvfdTnflHyrnJvufBJsRP7ONNs/KcO5CdIP2SMuRL2Qn2H4ZGf50wOzry ATRX+rPNcBtuRzhbc6X69QL6pcTkVMNEt8wYw= 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=Ye8jut5rxl+0GMAFKnOCRncXMpbDpjVXA4oZoWpQTz4=; b=LpyiPNplMeDm7p/pN3sy77XbXsGbM/Rkvw9F5G39mh/dFXyoKZYmcDKpeRJE4wZyHz O5e0uRvxFrt07DpoZHdXxviW8G94MLyLEYa8i4ZA1ynD9gMP8hlIJoH252gM0GdMnMxQ TFvfMd1qDG6OT8wRSuz7hbi5mo6Td39LNEh6rJ73hDfwivFc3VAY4zeA+0v+DJALoVnW qPjyqYrDkMXUqxCJLGCLvA2xgW17y1Fm/gVjN5NpeqOyBOBWYhaOGLcdMegw72NN68o7 gQgRXuJgr4EPp3ExOTqum0y6O+8YwXhOLF0C3N4C+/lenN18Lpp3wkNy18ruKKiu5Fr6 2leQ== X-Gm-Message-State: APjAAAW5Lib+jkIkmv//brdu8+W7Xi5qfH0hTa8uOsp5oxyFDyjqf0QX RQy6ViomP37dxfYF0MKNBIE6G3RJk0f2BxJAo41uqQ== X-Received: by 2002:a5d:9f11:: with SMTP id q17mr7323652iot.212.1558077933370; Fri, 17 May 2019 00:25:33 -0700 (PDT) MIME-Version: 1.0 References: <155800752418.4037.9567789434648701032.stgit@warthog.procyon.org.uk> <20190516162259.GB17978@ZenIV.linux.org.uk> <20190516163151.urrmrueugockxtdy@brauner.io> <20190516165021.GD17978@ZenIV.linux.org.uk> <11455.1558077206@warthog.procyon.org.uk> In-Reply-To: <11455.1558077206@warthog.procyon.org.uk> From: Miklos Szeredi Date: Fri, 17 May 2019 09:25:21 +0200 Message-ID: Subject: Re: [PATCH 0/4] uapi, vfs: Change the mount API UAPI [ver #2] To: David Howells Cc: Christian Brauner , Al Viro , Linus Torvalds , Arnd Bergmann , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api 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 Fri, May 17, 2019 at 9:13 AM David Howells wrote: > > Christian Brauner wrote: > > > If you still prefer to have cloexec flags > > for the 4 new syscalls then yes, > > if they could at least all have the same name > > (FSMOUNT_CLOEXEC?) that would be good. > > They don't all have the same value (see OPEN_TREE_CLOEXEC). > > Note that I also don't want to blindly #define them to O_CLOEXEC because it's > not necessarily the same value on all arches. Currently it can be 02000000, > 010000000 or 0x400000 for instance, which means that if it's sharing a mask > with other flags, at least three bits have to be reserved for it or we have to > have arch-dependent bit juggling. > > One thing I like about your approach of just making them O_CLOEXEC by default > and removing the constants is that it avoids this mess entirely. +1. Confusion caused by inconsistency of naming is going to hurt more than inconsistency of semantics wrt. open(2). Thanks, Miklos