Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp264246ybb; Fri, 3 Apr 2020 02:14:11 -0700 (PDT) X-Google-Smtp-Source: APiQypLA2L7PCIqTl2bEsi0nw1gID5MjxGF0ytH2wS/i/Jdct2jxsR/XagNz7Lb92nCa3i/nFIa8 X-Received: by 2002:aca:3dd7:: with SMTP id k206mr2312766oia.63.1585905251730; Fri, 03 Apr 2020 02:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585905251; cv=none; d=google.com; s=arc-20160816; b=fdJq+/5VSNNg3XsNf1v8Yvq0bF/I/iccwhoPckzCUON5wZwheY5yk/5EKcwVkLfbJy k0zrQErlmzEq7KHzrRmxKbpW5A6A+VIq0jUZYHcZZ1GfM+r2lcTquLZaoPwtaVaTPUNs mRxE9S61rT5wDL3J2ygXPzekDFKzgKGNQSLc+bhB/6h0i0TIeJPd5C/ay+XdxeiE8Mfn aEqU1VcW+xZjgB9wPVYm73CtUBIKLPrY5th8MT3SNn3cKZaOdmETXVsyE/tY841W/XFd M2fqu+UotmzXeBKQc/oNRNW+tGPgX1KsA+prp9ICO/YxXJifblAJEfAM733Rr/XGzYZq qanA== 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 :dkim-signature; bh=dF3+ctXKfP325/PTZukd3/+N81P9zSwSKiKuEMFAQio=; b=k2VqZVxC22F4+V3WCmynJJPBHuV9RIJAG3zHlFCkLD9cRUd5s2uijTIMqGNeGoooS/ V71Y65drxm4gHerhS8VJxEpW7AqOpcOg8+OjwNhSPLIQej9LIShGTUGq6Z/lkGnFPujY G6ITdhh4a0BO2AmFBiz4/ys9TCt3Md3hipYU8OgW+NzLsDuhUgBh4vi9zz127Bi1AWhA vsttBDiw87xTyJ1RJP7BOHMs8EhGY9g4ANLi/5Jg/FFKXhavsKmXgmsikFiHN9u5akum 1yk3NKtzDwpLDSDSWJ10UBIOLKQpxuETYmJPWggC/wQjT9DK+rPWdgGz/C6NrVRjaA46 p1wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UkkQE2BY; 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=pass (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 n4si3396852oic.213.2020.04.03.02.13.59; Fri, 03 Apr 2020 02:14:11 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UkkQE2BY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390400AbgDCJLl (ORCPT + 99 others); Fri, 3 Apr 2020 05:11:41 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:56004 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727635AbgDCJLk (ORCPT ); Fri, 3 Apr 2020 05:11:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585905100; 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=dF3+ctXKfP325/PTZukd3/+N81P9zSwSKiKuEMFAQio=; b=UkkQE2BYez1a0lGknX3ysTpoRpzA0qC+LWDLHu8V0BXuAuRRjEFfNhz2zDv870Lyg7O9AY rTzsw75mG1Szb2hpSmjoMVoeUQV5FNSYWMYwvmWpj/qH3BCUxqccRCHFuUyNVm0NBed+CC 3Ouk9JIjnQil3zzmlJD+nas1lYkyQdM= 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-345-jyX_pzL0PguTukUJevsVaQ-1; Fri, 03 Apr 2020 05:11:37 -0400 X-MC-Unique: jyX_pzL0PguTukUJevsVaQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BDCC8801A04; Fri, 3 Apr 2020 09:11:34 +0000 (UTC) Received: from ws.net.home (unknown [10.40.194.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 737AF9A24F; Fri, 3 Apr 2020 09:11:28 +0000 (UTC) Date: Fri, 3 Apr 2020 11:11:24 +0200 From: Karel Zak To: Miklos Szeredi Cc: David Howells , Christian Brauner , Linus Torvalds , Al Viro , dray@redhat.com, Miklos Szeredi , Steven Whitehouse , Jeff Layton , Ian Kent , andres@anarazel.de, keyrings@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Lennart Poettering , Aleksa Sarai Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() Message-ID: <20200403091124.zxo7cckcvygzwvgl@ws.net.home> References: <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <1445647.1585576702@warthog.procyon.org.uk> <2418286.1585691572@warthog.procyon.org.uk> <20200401090445.6t73dt7gz36bv4rh@ws.net.home> <2488530.1585749351@warthog.procyon.org.uk> <2488734.1585749502@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 01, 2020 at 05:25:54PM +0200, Miklos Szeredi wrote: > fsinfo(2) will never be substantially cheaper than reading and parsing > /mnt/MNT_ID/info. In fact reading a large part of the mount table > using fsinfo(2) will be substantially slower than parsing > /proc/self/mountinfo (this doesn't actually do the parsing but that > would add a very small amount of overhead): I think nobody wants to use fsinfo() or mountfs as replacement to whole /proc/self/mountinfo. It does not make sense. We need per-mountpoint API, for whole mount table use-cases (like findmnt or lsblk) the current mountinfo is good enough. Karel -- Karel Zak http://karelzak.blogspot.com