Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1191665imm; Fri, 27 Jul 2018 12:45:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd7hRsHBWPAvj6BNJtVOsD0HfcZFa1+xs4W+t+PRCHTLNUYoFEhR3/XhvNp/isBu7wxlkfK X-Received: by 2002:a17:902:7147:: with SMTP id u7-v6mr7153310plm.154.1532720717656; Fri, 27 Jul 2018 12:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532720717; cv=none; d=google.com; s=arc-20160816; b=V6gon65hpxCGLPVNdNSanAait80nD87uLqeLuFNwSO5HnE32sMHLLY4oWHpDBs6S/6 9nEEKCYyKemPYU70ncosOLHcmyEroIceJvwGBPdd741fAXFciT0r7tcsatIyE3J9WBW5 WCBKaEvLijYpNMVwBtmYvUFz6oeOtbpma9sZTMwCenJqCZbKVd6c1mC3llrKd2I2sRzY pFcUQIaJEFLBEdzTpKRXIBLb2jjopvm4YLLW8Ko6inszDQc1CFUKgyJeglbgRcImh2oc C46zdr8g/6d5qEoSelsPik7F1DFQmXd/SV3WWJJoh/djcxPM8Zeev71L1L5z6XZRTUh/ Jhiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=IbnwVp5MZEwj785JUfzZdK9LdSvpo7Vav5Q34iUp4GE=; b=UzvpPJRmyVJg5LlyLYypNYsfwnE4Fp1X4Q0iUjOvIr3qjtNtna1BDl4Z7gcOsTv1vU bnf5l2wlm6XDIFHBM9b6AYJIBtRuGEAjOttWAqasjIxTLjnqACA7wcyLGh6YxRkI9jUz XfSJ63yTIaN/1fFoT95KJLWVCSzHh5ynHWdJkrI93p9eGKdiKh9LZU1qPT1nu/UPnW3W XWZw+L4It6vjC21YZUJIcGtWtSY6ZU43F+GZLq3wmuawOyAWI3onNKrVjLnSmszZzDxA P+0Q7Sw1EreFUUKFNXXo5B5wRE2tf4ROJhx7lM86oKkQEGuPki//AO3CK7hh1YzuGm4N 8Yjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=A1y2A1KN; 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 x127-v6si4265770pgb.618.2018.07.27.12.45.03; Fri, 27 Jul 2018 12:45:17 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=A1y2A1KN; 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 S2389162AbeG0VHg (ORCPT + 99 others); Fri, 27 Jul 2018 17:07:36 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39841 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388815AbeG0VHg (ORCPT ); Fri, 27 Jul 2018 17:07:36 -0400 Received: by mail-wr1-f65.google.com with SMTP id h10-v6so6117738wre.6 for ; Fri, 27 Jul 2018 12:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IbnwVp5MZEwj785JUfzZdK9LdSvpo7Vav5Q34iUp4GE=; b=A1y2A1KN1rbUU/3loC7YyHzyr6Wf5FrBpioq7L4DGz4j+FYi0zLFBUtWGSq27gC0jP m9b1Wk1tl8PEVUDcyXUx7Om37+i/ZBjlyTG8xJxKmp6acYOJpWMoQ0rzwjb4I1cDPnw4 ipE3C15sWlmPsqk6ViOO69peUj1LpaMwoblyzSvhQhRNqxTvqzGeu1wnIxg64mBy3yMF yejABa/sNetZ5X0Me2iYHREWWVJjB1/LBjYM949Jor8GMAuOXSDDmXLftotUFFJYHdNf YpAK//ZafYFtbi2OVbdaI01R6CITntxTPRX2gewEZSROXcH4p01IRtxmnkUnG8X5GMwT QJyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IbnwVp5MZEwj785JUfzZdK9LdSvpo7Vav5Q34iUp4GE=; b=tMLNvSqqmz6ByqttNqD+78mfDg7smCLaDhue3d2WHCPj1q4QyoTsm7GAjx1lfX0TXK +SN0FzW/Giz3svPwJ7GsBRzus+KXCgRbAhZ6OFqMehbB4PENuymT8sRzPqChyNmn9UPP wvSvfvX9sTHUGmuiJKgENn9x9kPwDOwizrXic/7W5o7mTzvjGBdorW2p3S/MqMvTMc6H nUKKVyZ7y9yrCPjiayHNLb3cAu26Vfg02uSZsKKgB96D9CqRSmwgiNAvp4fVnZbumfYS DeEPvgX50N2pvtIf1pCh6oFZBo1fbH1B+JK8HYbZW3g8kXjsdYWGQE83kjoWZT5rxSty wofA== X-Gm-Message-State: AOUpUlHEYvkXNoqFGZZSJykvPcFft+bRjiacx68Yos8IPCPqQxcVIuDQ d7dKbipnfqZ9LjvU8NVgaaoHdpkNXs42mOO4dbgD8Q== X-Received: by 2002:adf:81c3:: with SMTP id 61-v6mr6165595wra.120.1532720653907; Fri, 27 Jul 2018 12:44:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:548:0:0:0:0:0 with HTTP; Fri, 27 Jul 2018 12:43:53 -0700 (PDT) In-Reply-To: References: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> <153271288242.9458.18050138471208178879.stgit@warthog.procyon.org.uk> From: Andy Lutomirski Date: Fri, 27 Jul 2018 12:43:53 -0700 Message-ID: Subject: Re: [PATCH 30/38] vfs: syscall: Add fsmount() to create a mount for a superblock [ver #10] To: David Howells Cc: Al Viro , Linux API , Linus Torvalds , Linux FS Devel , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 27, 2018 at 12:27 PM, Andy Lutomirski wro= te: > > >> On Jul 27, 2018, at 10:34 AM, David Howells wrote: >> >> Provide a system call by which a filesystem opened with fsopen() and >> configured by a series of writes can be mounted: >> >> int ret =3D fsmount(int fsfd, unsigned int flags, >> unsigned int ms_flags); >> >> where fsfd is the file descriptor returned by fsopen(). flags can be 0 = or >> FSMOUNT_CLOEXEC. ms_flags is a bitwise-OR of the following flags: > > I have a potentially silly objection. For the old timers, =E2=80=9Cmount= =E2=80=9D means to stick a reel of tape or some similar object onto a reade= r, which seems to imply that =E2=80=9Cmount=E2=80=9D means to start up the = filesystem. For younguns, this meaning is probably lost, and the more obvio= us meaning is to =E2=80=9Cmount=E2=80=9D it into some location in the VFS h= ierarchy a la vfsmount. The patch description doesn=E2=80=99t disambiguate = it, and obviously people used to mount(2)/mount(8) are just likely to be co= nfused. > > At the very least, your description should make it absolutely clear what = you mean. Even better IMO would be to drop the use of the word =E2=80=9Cmou= nt=E2=80=9D entirely and maybe rename the syscall. > > From a very brief reading, I think you are giving it the meaning that wou= ld be implied by fsstart(2). > After further reading, maybe what you actually mean is: int mfd =3D fsmount(...); where you pass in an fscontext fd and get out an fd referring to the root of the filesystem? In this case, maybe fs_open_root(2) would be a better name. This *definitely* needs to be clearer in the description.