Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp478975pxa; Tue, 11 Aug 2020 07:43:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR7XJ9Z0nnGB6PnspZufBPelER7zGBebuv9k6/21AaOX6wdAoxVW4+NqO4XRxxdEvAXfHz X-Received: by 2002:a05:6402:33a:: with SMTP id q26mr27800745edw.8.1597157028678; Tue, 11 Aug 2020 07:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597157028; cv=none; d=google.com; s=arc-20160816; b=ZfoDwaDokD6BH90Hwl7aon3BLZmtElD7UdiaQd0UPVqRMC8ZntdO3c5wK3pFZ3+2xn 1qHGQggEF4wIICS7k/0sdt3qiY1RpReMkzpAbKUhlJYTMWRp+0PS3jJ5Wx3e2Vc1i+69 94JSmv3BkxGarL1owOQswKA8LgP1XZoSpOhXrGIBxL3NOOaT6KCCPzX1JGOJHipdYYGp +GwvcoBaLh/bzptBHJf76AN7hYpfmlyRAZiNS72Fs/KmoVWXr7GsJ2qdT8OUfWBnPh+W YT1m+OA/v3betn0xABfhq5D4OD9qiGF/2jJVwtg2VVIK7gTAUa4YjFT7KQd7K7g5SR5x qvXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=X08WQM6rRdrlXWoC0RJnpMaQyaW9j+CjQ5tdWJgPrvk=; b=sgEjbA2GRMrmdi5GOcSkA0dhfp+MvGC2s9VLYJjBlWaUGWMKWhnA9aBhDte7Oar27t wZ8x2ZHTz6xemJxKSmYPs+aCNVZQZh3IOHi/sYRMqVRmKF2NBSVlE3+AqdUzgdFakn/f ICkJX8vlglAZ5A0FlI1vlSE9DNHKxQi00n6UHB66CYpocFavFjWiBzKWrwmZBiDHHFc+ L0dJkVwV+R339OjeBMmnQ4xcISMjiR1+1QnATtaxTaclrI8V8ihUVX/o9vTPzPLnrWQH 1RCP/S+qbVZ3dswdHIswis5CBvZvTVu1SoRm9poMlZ6D2Ts3ydNPQaDmIeLzpqC+CbJd 0eVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si5263784eje.2.2020.08.11.07.43.24; Tue, 11 Aug 2020 07:43:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728834AbgHKOmv (ORCPT + 99 others); Tue, 11 Aug 2020 10:42:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728750AbgHKOmu (ORCPT ); Tue, 11 Aug 2020 10:42:50 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A912C06174A; Tue, 11 Aug 2020 07:42:50 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5VUF-00DcmR-2g; Tue, 11 Aug 2020 14:42:47 +0000 Date: Tue, 11 Aug 2020 15:42:47 +0100 From: Al Viro To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, David Howells , Linus Torvalds , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , linux-kernel@vger.kernel.org Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) Message-ID: <20200811144247.GK1236603@ZenIV.linux.org.uk> References: <1845353.1596469795@warthog.procyon.org.uk> <20200811135419.GA1263716@miu.piliscsaba.redhat.com> <20200811140833.GH1236603@ZenIV.linux.org.uk> <20200811143107.GI1236603@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 04:36:32PM +0200, Miklos Szeredi wrote: > > > - strip off trailing part after first instance of /// > > > - perform path lookup as normal > > > - resolve meta path after /// on result of normal lookup > > > > ... and interpolation of relative symlink body into the pathname does change > > behaviour now, *including* the cases when said symlink body does not contain > > that triple-X^Hslash garbage. Wonderful... > > Can you please explain? Currently substituting the body of a relative symlink in place of its name results in equivalent pathname. With your patch that is not just no longer true, it's no longer true even when the symlink body does not contain that /// kludge - it can come in part from the symlink body and in part from the rest of pathname. I.e. you can't even tell if substitution is an equivalent replacement by looking at the symlink body alone.