Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp819406imm; Wed, 17 Oct 2018 08:48:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV63AdpOxhxT5S1PO3NxNJcrwK3KFT3sAOPOb3UjlM9pWMirhbLl0BdkN21gGHC6lhbWvzoKU X-Received: by 2002:a62:fb04:: with SMTP id x4-v6mr26818168pfm.210.1539791283330; Wed, 17 Oct 2018 08:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791283; cv=none; d=google.com; s=arc-20160816; b=bDSD8V0BrQFhRIInEhcQbCPwXEr213x5tI5XGOnZmXwY6X6bVZx99LIqFkjnXKjuZG vIE0gtP8MNaT1kIWDB72mGg01bu6XdyqDXbJiGg0bNBoczI0+Gj7sRYJZOLEQLmO+ui5 wAMeOoMpt7iIZJ1UHqiZe+aTAkxGNN4FJGgDHb4wa83AviJSBpwIwl1V/SPX0g5WDh+z IcrmHD7m9ZOQftzJQl3SjYDTbkZjbEQDwvEpQgaLHMlI9PBeiG9c9dXmIc090gPJkuW8 ugS9jTNDholcKbH26Y8npf5U9teXK9Z4P9SZypdu8XWKtX5VIGufxvorl+L7org/8qm6 2JEA== 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; bh=9itjK2CBIMKV4575rIUroUGbQVdvGKRJvNRZUCL8b1Y=; b=MiQKeAZqrIvFaKVKkvJcVARK4Zta26pjK6CE0hio9adV5nJ5dieqc7NQInjrK+0E90 HYR67vFjbtjyy+Ctzt1e0fLHFy8Ovvf/QlLTr92RA7toRIjL79DIou4rN1I63+gODgIB 1oj2mYWB6dHiSWlO9shOJoz+PjBKn+jHjMwe6J/DXy66x+21OzinImeU7lYA4t6H6iox R9LvbcTq5kR/ZQejOUBe56aAeYnvbMBi7k5zNs6ent33A9BmS3Lx5639CU5Dgf5P+CyF N040cbhTTkk1WCPKArQA9JgmnEloDRbIot+XlXBsZnJZ6CTkV6JXDfNSlxhegkYTbzCE 4pJg== 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 v13-v6si17398329plo.182.2018.10.17.08.47.47; Wed, 17 Oct 2018 08:48:03 -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 S1727686AbeJQXmQ (ORCPT + 99 others); Wed, 17 Oct 2018 19:42:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56446 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXmQ (ORCPT ); Wed, 17 Oct 2018 19:42:16 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C5C6737E79; Wed, 17 Oct 2018 15:45:59 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-250.rdu2.redhat.com [10.10.120.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id B33B25DD95; Wed, 17 Oct 2018 15:45:56 +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: <19866.1539782101@warthog.procyon.org.uk> <68a2107f-bf70-055b-86cf-1ba2ba9422bf@gmail.com> <153754740781.17872.7869536526927736855.stgit@warthog.procyon.org.uk> <153754766004.17872.9829232103614083565.stgit@warthog.procyon.org.uk> <9b8bf436-65de-13b9-0002-0479d11c18ca@gmail.com> <20181013061141.GR32577@ZenIV.linux.org.uk> <28710.1539782412@warthog.procyon.org.uk> To: Alan Jenkins Cc: dhowells@redhat.com, Al Viro , linux-api@vger.kernel.org, torvalds@linux-foundation.org, ebiederm@xmission.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com Subject: Re: [PATCH 31/34] vfs: syscall: Add fspick() to select a superblock for reconfiguration [ver #12] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15866.1539791153.1@warthog.procyon.org.uk> Date: Wed, 17 Oct 2018 16:45:53 +0100 Message-ID: <15867.1539791153@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 17 Oct 2018 15:46:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Jenkins wrote: > I agree. I'm happy to see this is using the same check as do_remount(). > > > * change filesystem flags. dir should be a physical root of filesystem. > * If you've mounted a non-root directory somewhere and want to do remount > * on it - tough luck. > */ Are you suggesting that it should only work at the ultimate root of a superblock and not a bind mount somewhere within? That's tricky to make work for NFS because s_root is a dummy dentry. David