Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp442610pxa; Wed, 12 Aug 2020 06:10:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCqmmx2dTdys9VvRCWEo2LtEcX1TEfkdqALU9Xw506khHMH8h1aeI7QetilgN+WdSc1iwz X-Received: by 2002:a17:906:a116:: with SMTP id t22mr6204810ejy.353.1597237800573; Wed, 12 Aug 2020 06:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597237800; cv=none; d=google.com; s=arc-20160816; b=QV4KbGkIwKV6Clbtkl0x8PEOV6VDEVeN6noLQyZgvmX6l9IzufqBwtZVQwTXsJn1bt cpAUvzNzS4nIc4RsIgoRoy5KSL1Og9csn4rIgnCxIwmByWwzXU+aI5aTUj4RG9la6SrQ UNUmJghs81yu5b1KpfKPYBTfpoTaQM7MYnwAX2NsJQwixytQrhgxrduxoSSWllQHCKnj zUdv1KDcjo45oyvIXBZjIzAf9ppPCg+RCqvJ+309qdtpacWD3teYo4ZLQG7rNb5t24HR 7OTSOlkDnKiudVoQMet/DUG8R6FJ23ZNQ8401MMUXmwOD3rdM/y6+gvuCkZCOXqvPpJA dSqg== 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 :dkim-signature; bh=4WKj+EyxU40YOue4LK4S3MO6lm+DalQD8muSGHaR5fw=; b=y8LpjM0tPjD9BMOY/oxE0RrlxwUWTXRAUVyo4LQpBPszvBRZDZuvYi9FHdnBJLtw7s FIuH+d8dGNuPWxM/EH2c9RGmKyqDyiYEUuOOyJhDZ6kvdNMATecOM585SMVb3qLNXSXp eCDnQ7RrFP0jXm8DBVSWtNV0X7+6Kikx3xn/k4/XqiFnYB3f2N1WoKhLyVz/9c4EtJXx yPuD96K0ASENJ2vpp22uCaWa1cAJJmtb9E5BH4yp+hIpcQpCt3GdN85yOE+rdWvBkztV kaFMb2ZhIUQecZow14RjAh5QffkXqZipF621tMvwlEwLD1Zqvvqi5nJOSu+PPqE/39rz +gww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aLcEqKgy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si1071997eju.316.2020.08.12.06.09.36; Wed, 12 Aug 2020 06:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aLcEqKgy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727977AbgHLNGj (ORCPT + 99 others); Wed, 12 Aug 2020 09:06:39 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58899 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726829AbgHLNGh (ORCPT ); Wed, 12 Aug 2020 09:06:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597237593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4WKj+EyxU40YOue4LK4S3MO6lm+DalQD8muSGHaR5fw=; b=aLcEqKgyd0L9T+S1WoJqHS2KLJkcR3QyAOU7Lh0tWdGa7xrm7dFuqKoEY4wI3k0PraKrsH wfnw0G72tNHwH5T0BslYQxZ03Fp3/J9OUUf5xdNt2PV7LtenZ6fqUZRd5Y0qPLndC5eaL9 P3nmaFFsU2vSiRRnykzzxyVXRZz+lAQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-_TjpIsNMMFaXBv8PSKNPhg-1; Wed, 12 Aug 2020 09:06:31 -0400 X-MC-Unique: _TjpIsNMMFaXBv8PSKNPhg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8D391E923; Wed, 12 Aug 2020 13:06:29 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-127.rdu2.redhat.com [10.10.120.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id 553C01001B07; Wed, 12 Aug 2020 13:06:26 +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: <20200811135419.GA1263716@miu.piliscsaba.redhat.com> <52483.1597190733@warthog.procyon.org.uk> <98802.1597220949@warthog.procyon.org.uk> <20200812112825.b52tqeuro2lquxlw@ws.net.home> To: Miklos Szeredi Cc: dhowells@redhat.com, Karel Zak , Steven Whitehouse , Linus Torvalds , linux-fsdevel , Al Viro , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List Subject: Re: file metadata via fs API MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <131357.1597237585.1@warthog.procyon.org.uk> Date: Wed, 12 Aug 2020 14:06:25 +0100 Message-ID: <131358.1597237585@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miklos Szeredi wrote: > That presumably means the mount ID <-> mount path mapping already > exists, which means it's just possible to use the open(mount_path, > O_PATH) to obtain the base fd. No, you can't. A path more correspond to multiple mounts stacked on top of each other, e.g.: mount -t tmpfs none /mnt mount -t tmpfs none /mnt mount -t tmpfs none /mnt Now you have three co-located mounts and you can't use the path to differentiate them. I think this might be an issue in autofs, but Ian would need to comment on that. David