Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp704391ybb; Wed, 1 Apr 2020 08:09:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLCAvalATlF23RVYcdZ/UJFqvu1fdwDzFwLusJojp+hdV5d+ZTdLQKnXCYR01MOAIetQWOm X-Received: by 2002:aca:3b41:: with SMTP id i62mr2946544oia.55.1585753769742; Wed, 01 Apr 2020 08:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585753769; cv=none; d=google.com; s=arc-20160816; b=GAjLl3INYVgAXKzMurgaRIsQjvP48puMw9aL4ACMFC/t+SRUHFVR8OFhAwhSXfcKhT BSLVakGeXpSs6wqsD5nmlWTar+n3IYISH5+Y+KuF5VD+gAU2yhwnL9ViEeRzSXUcny1h 3XVn/5ib6VG29qIxMkiLiNXUqAxD25CJ35Sl3MjwJdkw9t2cTVPiLfW9vm4jhzxyTp5I e+1E97Cf0WunuSxzuT1qTPPSu1Z+ml+WoKmSmOTYGe4RQ8HMTaR7y8bWqQz61wpvGQt4 Ds03WuPH8XI5H0cMO5hAjqQWReA/dIOH7oU5rnp7ilGltOAudUeownYh4gxhUh0S/eYh OMAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date :content-transfer-encoding:content-id:mime-version:subject:cc :references:in-reply-to:from:organization:dkim-signature; bh=8B9xUBos0YJ8VlQ4fiT4d5rWb3J28k251TWX4OuYFvE=; b=SB2CiM/Td8u3oujdYgmB7/89XcabWYPvwESJEsclt29/s6a2yROw2zJdiartnafjA+ RYiREjqM1bfb9SDVaHEs/0XYLiaOURJKlIMEhBJKXVXUjX6cNJYrM11TAUHVfjyQWwQX QC4dK6DoN+OOzd+lfWwaQqdzACtDH8wkr6CnCx4gMPonTlq0nLDK+ZpRcrwRzw2+DCaW i87XRP7JnAJ4ehkSFd0XZ1Zan/Rl8AgxgzaDL1DrcnfZ22FKoJcOgOI4tjIvrFdRJQEd LfjujP6ClZzkjTWXL8x2KigQvxEgCBXEhjOjMyECWglO9F2ZuhuC4ZiMaN2IRTwWIiH6 zvFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b="dkfTb/Mg"; 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=fail (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 l126si990456oih.31.2020.04.01.08.09.14; Wed, 01 Apr 2020 08:09:29 -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=fail header.i=@redhat.com header.s=mimecast20190719 header.b="dkfTb/Mg"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732797AbgDAN6d (ORCPT + 99 others); Wed, 1 Apr 2020 09:58:33 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:58887 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732783AbgDAN6c (ORCPT ); Wed, 1 Apr 2020 09:58:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585749512; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8B9xUBos0YJ8VlQ4fiT4d5rWb3J28k251TWX4OuYFvE=; b=dkfTb/Mgd9p7IzU88Jtewzn0Q0HcLCVodoqSBGwo363Lc+AqLAWqrcnTrsI5JYZK7wvbyV zmuxzFLRKRmp1HpAMMIZzSGFu1PS6XM3ByUdwiyP9cNWyrbWQMv7aymQpyGCVGfWEw5MJf 7/44OfNnNHN0HjFz63Sj2CKy58J+aRo= 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-267-koarxiR7O2in1kPI6WwqkQ-1; Wed, 01 Apr 2020 09:58:28 -0400 X-MC-Unique: koarxiR7O2in1kPI6WwqkQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8B9C6800D4E; Wed, 1 Apr 2020 13:58:26 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-114-243.ams2.redhat.com [10.36.114.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id 558528AC2D; Wed, 1 Apr 2020 13:58:23 +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: <2488530.1585749351@warthog.procyon.org.uk> References: <2488530.1585749351@warthog.procyon.org.uk> <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <1445647.1585576702@warthog.procyon.org.uk> <2418286.1585691572@warthog.procyon.org.uk> <20200401090445.6t73dt7gz36bv4rh@ws.net.home> Cc: dhowells@redhat.com, Miklos Szeredi , Karel Zak , 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() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2488733.1585749502.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Apr 2020 14:58:22 +0100 Message-ID: <2488734.1585749502@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells wrote: > > Attached patch applies against readfile patch. > = > But doesn't actually do what Karel asked for. show_mountinfo() itself d= oes > not give you what Karel asked for. Plus there's more information you ne= ed to > add to it. And arguably, it's worse than just reading /proc/mounts. If you get a notification that something changed (ie. you poll /proc/mounts or mount notifications gives you an overrun) you now have to read *every* /mountfs/*/info file. That is way more expensive. David