Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1311040imm; Fri, 27 Jul 2018 15:07:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfHKj/UNod4hZ+I5pojqAhgnQTOgQHyP5kie1VF5ecK3lo1Yi4ryZk/k6CQoGQuXgnxjJaI X-Received: by 2002:a17:902:b612:: with SMTP id b18-v6mr7464971pls.131.1532729250737; Fri, 27 Jul 2018 15:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532729250; cv=none; d=google.com; s=arc-20160816; b=Op9yHLf7Ba0iPlv9S79lb2U7vrzulB677CThXLCZ4yIMvVgk5GOKig4n6xRKVWK5rI k+rWEvmptGQXzAyiyNP1ZTdBpe5fvqMdolLesAnfWidZN9loKk+CwHZKx1+vquNAeVN9 zCGxK9E2EbAzVumNzzz0T48dJDLJasIstXUeRsHTweh7ADH1UYHEBeZ78ysS6cNOwxE2 /SwIL7bMa0h8Fhd0g2jBet+2pR/lRuIE81eLpx14FtZBzPyuU6YIV8v1l8j7/09jahF4 ddxOys9hfOi2p4PNQC/c1A4reVSc3XtLMDMfaT5psuOul5aAEGoEzi81ddzvX1ij28wC SGKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=qSmKsWCadWufTR+NYr+oJH/yc8nao/k7gLSF5NdrZRA=; b=HU7pe1uBfsRRa6TOHIufn+FWhfxWQPRAYawShzSOvrBqtBkrHbw+vkZ1xf/onjBFQy cv0FMwbIwqc7bzbmZ5pOwNJMXryR57x4Zhu7Ks7jlQHU/VKqeUZ2gDqaKO0V2JN6Zy6O NDehA20D4DZULD2wVJALQdYNefzTdopHyet4WG7nx+nDfg5v2EnUc5pdNGuVWyRZRCPv OAifDQKu0r5BOH50huYn8pZihIx2P2gLHbeaOkOXYNd48LJjew+6h1W7PKymLA+XhgPo Ng7A26n1ovjCD3qqLkLA3UKaPLCZzkWbPzgqAIUWg47FnnXWntxqdV9jELGuO3091jEp Y9Gw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si4319478pld.11.2018.07.27.15.07.15; Fri, 27 Jul 2018 15:07:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389295AbeG0XaP (ORCPT + 99 others); Fri, 27 Jul 2018 19:30:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40848 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389155AbeG0XaO (ORCPT ); Fri, 27 Jul 2018 19:30:14 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 582B84025063; Fri, 27 Jul 2018 22:06:21 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6537F1C5B7; Fri, 27 Jul 2018 22:06:20 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> <153271288242.9458.18050138471208178879.stgit@warthog.procyon.org.uk> To: Andy Lutomirski Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-api@vger.kernel.org, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 30/38] vfs: syscall: Add fsmount() to create a mount for a superblock [ver #10] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8834.1532729179.1@warthog.procyon.org.uk> Date: Fri, 27 Jul 2018 23:06:19 +0100 Message-ID: <8835.1532729179@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 27 Jul 2018 22:06:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 27 Jul 2018 22:06:21 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski wrote: > I have a potentially silly objection. For the old timers, "mount" means to > stick a reel of tape or some similar object onto a reader, which seems to > imply that "mount" means to start up the filesystem. For younguns, this > meaning is probably lost, and the more obvious meaning is to "mount" it into > some location in the VFS hierarchy a la vfsmount. The patch description > doesn't disambiguate it, and obviously people used to mount(2)/mount(8) are > just likely to be confused. The problem is that inside the kernel it *is* a "mount". How about I change the first paragraph to: Provide a system call by which a filesystem opened with fsopen() and configured by a series of fsconfig() calls can have a detached mount object created for it. This mount object can then be attached to the VFS mount hierarchy using move_mount() by passing the returned file descriptor as the from directory fd. > 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 "mount" entirely I'm not sure that's a reasonable idea, given the "mounting" is how this is done. Can you suggest a word that encapsulates what it is that fsmount() returns? It's almost, but not quite identical with what open(O_PATH) returns, since it has to be torn down if not actually mounted somewhere when the fd is closed. > and maybe rename the syscall. > > From a very brief reading, I think you are giving it the meaning that would > be implied by fsstart(2). Do you have a reference for the manpage for that? Google doesn't seem to find it. David