Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4593083ybf; Wed, 4 Mar 2020 07:00:06 -0800 (PST) X-Google-Smtp-Source: ADFU+vu0+VgGkodSeRfZyoUjhLWuJi8jDpG8jwt3qS6mMNZHFCTDeY3nkILKcG3GJfT1vFHRuSJR X-Received: by 2002:a9d:5551:: with SMTP id h17mr2632238oti.360.1583334005879; Wed, 04 Mar 2020 07:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583334005; cv=none; d=google.com; s=arc-20160816; b=lvayb0jzGcPK1qfZexWC2bQaW6MtFsY1QsLTSl8T/GrUQPd1L5LAxh0UJBNtJBnnA+ fs1QkPunc5/kPM49jmNHgQdEp4AEqUvfGT9icD3RmHLa0xiiekZb48tvUFY+tI+57/UQ ylvq9XRuXAIl9Yh5Faf4FSLfGxWnpPnb/vyclYj/2fdD5kYsZc0ChVp4qrwip3oGXZ7O NVHkalzY5lgw/ngBTNd0Jr5fVByJ5TgO/JTwRSuzFK0GHKSYyPoPz+/ptqXz1cxbwnB0 cCh6tN4h0IAIWgvISWmAy34u69m82xv3uq4ZuHcB1K3DAqtiEw7Pqv2juTOiwX2H0wJh OL7Q== 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=MI1PXuWt7Kag0MFTc+PiKW4eyxOQoHf1qp779Es8aXg=; b=ODgxC9E7wnSIjBo2b0eKfriWxp1DBu9/lDWe9jL2QeggktWhdp70Ms9jXUAJ5V+Jmx VtlXdEVpxi1Vtt/U70vnjEyMRZeiElMhrEIxTZk6ssnTkymSzfRxtiagHiJIMTaenH2w sD2jNxUjUFvWTTstiUgdEWBhl11Xoyv05v3aMYcYdBoSUS28Fzfgg+PmNcAuJNE4WTGq Nkxmw/wFoVEOFYlts6txnjkgWLZqov/Mc6c22gmgnazizIDp4zXuLwAJpt3Yq8iOkpKN lh9q0JZbEpjr4NOo00ppRSRFT9gWOOEnwJg/YYhT3AQnRWOHN3w+rD01ZkYaeSeuW5w4 nCvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=jlEbGqj0; 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 c4si2129013ots.107.2020.03.04.06.59.53; Wed, 04 Mar 2020 07:00:05 -0800 (PST) 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=jlEbGqj0; 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 S1728022AbgCDO60 (ORCPT + 99 others); Wed, 4 Mar 2020 09:58:26 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:42009 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727308AbgCDO60 (ORCPT ); Wed, 4 Mar 2020 09:58:26 -0500 Received: by mail-io1-f66.google.com with SMTP id q128so2681201iof.9 for ; Wed, 04 Mar 2020 06:58:26 -0800 (PST) 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=MI1PXuWt7Kag0MFTc+PiKW4eyxOQoHf1qp779Es8aXg=; b=jlEbGqj0JV8uts4QRzcS6Eajtw0tKvhkbeliNCbF4uNcgjKTS/ufjxuns+h7Dpv6oK iRjdlxhkwkZI1FmdhgsHRZm18X+J/tCJza8pnjG/RS/TKmekikpIX0g4Ktub7s/SxPOV trmM3oYR2IE7l7X78+F/LxlrLp+ecQgRRpBjY= 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=MI1PXuWt7Kag0MFTc+PiKW4eyxOQoHf1qp779Es8aXg=; b=IFGh1Xmivf+TlRlULMD7DveiL624PyFzAzkkr6Nl1PWO2gh6uYJHDJ18BlcQxmDhJh Qg7ul779VdQjDOcBnD179GKcXurlfLMzxx6VrpakG9/eJ2Er/5QP+WZMBRJodmlYQakm zpwPjPrMfvh4qP966+YpWa0C3zeVsgm44I4gPPORaypEmkap4Buyfu2D6wSdGQiqEmBK 2i+UYiO2kY/smZ/RsIGFRAf09rx6Mk0kcZUV+vs9mxkQpfB9PG3fL40D/uT8Szv7DTax gT7j2udWlR80N66+1Zb41mH4cjQkPO9fybkhemexCID+VrGHrz4H3Pr4y6cE4RfMZ/V3 BK/A== X-Gm-Message-State: ANhLgQ1zcAnC8gud7dpmFJGYtDuicWfyq1yFp1jhXkzeY8uCaxnDxzSx mWYxOoUQbltlsZE1iuugJG90Q5ugsBofrFxhWoTcJA== X-Received: by 2002:a02:558a:: with SMTP id e132mr3150631jab.58.1583333905701; Wed, 04 Mar 2020 06:58:25 -0800 (PST) MIME-Version: 1.0 References: <158230810644.2185128.16726948836367716086.stgit@warthog.procyon.org.uk> <158230818859.2185128.8921928947340497977.stgit@warthog.procyon.org.uk> In-Reply-To: <158230818859.2185128.8921928947340497977.stgit@warthog.procyon.org.uk> From: Miklos Szeredi Date: Wed, 4 Mar 2020 15:58:14 +0100 Message-ID: Subject: Re: [PATCH 10/17] fsinfo: Allow mount information to be queried [ver #17] To: David Howells Cc: Al Viro , Ian Kent , Miklos Szeredi , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org 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, Feb 21, 2020 at 7:03 PM David Howells wrote: > +/* > + * Return the path of this mount relative to its parent and clipped to > + * the current chroot. And clipped to nothing if outside current root. The code doesn't appear to care, which to me seems like a hole. And btw, what is the point of only showing path relative to parent mount? This way it's impossible to get a consistent path from root due to mount/dentry tree changes between calls to fsinfo(). Thanks, Miklos