Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp519567pxa; Tue, 11 Aug 2020 08:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ5EaIDW/LyG/gR4VOkN82751XgBRY3kD8TC9UObyUScFt1XTN++Su4JUogZR5PgyK0NNE X-Received: by 2002:a05:6402:1b1c:: with SMTP id by28mr27437699edb.89.1597160026353; Tue, 11 Aug 2020 08:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597160026; cv=none; d=google.com; s=arc-20160816; b=VYINDwLKA1fVpEr+ds3dJOh6FAoCHvcKlvt3Lfzr3YAcmTLC9wcPgwTwT20ZVvFl8/ BSU4AOGvAXzaKKU3VpznJtBPhDPEf8W3YGXs7jgcHwMi4yyT7panDsDKjvQfUs2+BTsu lI8NS1M3TGgDhFVzmwpabutoeaHAoAkBLiwo8Hx1IFi4IRYekvQkB8IvkzY01XS6g+YZ JlmAcYrG6A5axK3PrGOLlmdJCfW5/Yl0rkil/EnAJivcxMPtM/PRo8ptcE/Ee51fZOSv B1dUStzsEb/E2jwGQBm95Ha6NC4bxdWcyhIOLIQQ5MLrHvpa55vJEaSQOjbjlrbLS9PC ckDA== 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=2+Iq2qCHUHVaNAKHuF0ZSvBIxw9aZEr5eRrwEH0pyDM=; b=S13NAl/fkAefxm8T6nU4vcf6sCcLNlm/mYeKkIwmZhgmLruUiScpFRWIoY4nnlSIx1 hV8UPtW8IoObLrnijjOzxkKk7v3ycb/01hkuWzkTtVz9xs9XTgsRvP/kGWwRnGXQfEy5 5uor98ZPsDSahA4NkvZDsbZSrMgVmz3hNhRbNeIaHJdCbBCfqqio/eSzj+xbg6B9wkvm 1hqVW7WckJuZ+DmntVIjgTXB4h95tSXJP16UU8SHOCO+EZ5OdBJu6N5Ehg4xFCTpaLEb TZ4LjZ2BUGWXw9Bmsa/sOXv4OO7v6d+RNa7PoG8zUl7LgNnVH4ELu4VDBuXgk/udVtJ8 EJ/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=UHuiqJr7; 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 j8si12474027ejy.610.2020.08.11.08.33.23; Tue, 11 Aug 2020 08:33:46 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=UHuiqJr7; 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 S1728903AbgHKPat (ORCPT + 99 others); Tue, 11 Aug 2020 11:30:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728883AbgHKPaq (ORCPT ); Tue, 11 Aug 2020 11:30:46 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 588A2C06178A for ; Tue, 11 Aug 2020 08:30:45 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id qc22so13554026ejb.4 for ; Tue, 11 Aug 2020 08:30:44 -0700 (PDT) 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=2+Iq2qCHUHVaNAKHuF0ZSvBIxw9aZEr5eRrwEH0pyDM=; b=UHuiqJr7X2atxIGSHLT+svSK5gdNsubwckkEdoLhXVa0P5T2fMneByo6aZKzG8LldX T1q+WwMY0FUEt+jhdI91DgqUpJ4E3NQyPft4lnwP2z3OP679ywggUOEnwc9ZpPQSZeqm UJZcOolg7KSv4Nk5wS9SsRafbH+gx/jq+8o2c= 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=2+Iq2qCHUHVaNAKHuF0ZSvBIxw9aZEr5eRrwEH0pyDM=; b=GYvZ2uB15Bosq+kEHER5V00iq4/urE14ucHykZQKo/sg1MpS58umlY+3/7H8LREl0N eR0HfL4j1tcTh1IN2reHsB4NnNZdjCp1zirpap1RhSvC7Qjx9XUTEKi2RAdgxlinmVtG 3kQv3uY20B7SQah5ohViW9z2dMFzxeiZTPXua0q9J5C5f2pb/3LK4INhvTE9TN51QrJX SLBlV4l+S488ykX9SvWeU9IHllqFNNQAWJ1tuH7Ys7zA8XgpBRMpQQmy5NPfuCglRy7K sVow6iZ9PhSqG/2V+mQSCURO2E0/t55kBQTG0ik+nFQv92EkfuG1Ydmacd3jylrbMmDU rGYw== X-Gm-Message-State: AOAM531S0IQIw1Aba9qlEt9KQKlh/pumguiGI/Jppt44/Fgo5fEHNQSQ QRsik09u9fuywDgGeUmhUfiNzuNIPUn0G//RG1p/PQ== X-Received: by 2002:a17:907:94ca:: with SMTP id dn10mr26676759ejc.110.1597159843363; Tue, 11 Aug 2020 08:30:43 -0700 (PDT) MIME-Version: 1.0 References: <1842689.1596468469@warthog.procyon.org.uk> <1845353.1596469795@warthog.procyon.org.uk> <20200811135419.GA1263716@miu.piliscsaba.redhat.com> In-Reply-To: From: Miklos Szeredi Date: Tue, 11 Aug 2020 17:30:32 +0200 Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Linus Torvalds Cc: linux-fsdevel , David Howells , Al Viro , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List 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 Tue, Aug 11, 2020 at 5:20 PM Linus Torvalds wrote: > > [ I missed the beginning of this discussion, so maybe this was already > suggested ] > > On Tue, Aug 11, 2020 at 6:54 AM Miklos Szeredi wrote: > > > > > > > > E.g. > > > openat(AT_FDCWD, "foo/bar//mnt/info", O_RDONLY | O_ALT); > > > > Proof of concept patch and test program below. > > I don't think this works for the reasons Al says, but a slight > modification might. > > IOW, if you do something more along the lines of > > fd = open(""foo/bar", O_PATH); > metadatafd = openat(fd, "metadataname", O_ALT); > > it might be workable. That would have been my backup suggestion, in case the unified namespace doesn't work out. I wouldn't think the normal lookup rules really get in the way if we explicitly enable alternative path lookup with a flag. The rules just need to be documented. What's the disadvantage of doing it with a single lookup WITH an enabling flag? It's definitely not going to break anything, so no backward compatibility issues whatsoever. Thanks, Miklos