Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3921115ybb; Tue, 31 Mar 2020 14:57:26 -0700 (PDT) X-Google-Smtp-Source: APiQypIE3trdQyrClxxshGnxOuTeY2Ok1CJOsk/QZv5ZCl0krvWAI1v8US2jZYxMmsiH1aQX5MwX X-Received: by 2002:aca:4046:: with SMTP id n67mr769104oia.156.1585691846199; Tue, 31 Mar 2020 14:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585691846; cv=none; d=google.com; s=arc-20160816; b=qrclB+sNdi3MIOKZefC5jcnh5Go9R2lvky1Jv+wnPmfTLv5QIzGE+aeq9URVvyAITr 9QRiKZoqb46XnfAnPW+ETYyz3kci7QK1VGrv30ijFW7dUZ1qqUXcrAay4oZcHC10qXtW 6S1BGRtuZtH0MWCl7mC0NnS80QyX4tQumfkO92uvCgWcrtJTdH/NLWlF6tZIql2OHp1a XZvFjVPMKfUzu6cHNxRNEBYGtBDCl3pBqUx3m1ygECl74u6bOsidNSOBuJiNzemPXpUi rVykBlxnbGtXzW+zMxO69G+Wa0SYB65dasKDicHAJpEA9Fszyo69dAqKCkpryCLiL96G 31mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=JBMA6jXiru2mPeg8fq1WPRUiBwr+Arv7dJnUuWmimoc=; b=fhwzJOLgym1PISFAzA8PCiXQHxB/aFNbbzwFJtky48Wd13t30OcBiglw8jv0JtLVQJ Qof70EXsO/2eOAWuzRqWPduEktfpGpCbN+c2n6baokYJRvxuKNTfqH49w0MFdKkuaR0r bQ+un0dVDRo2j3jrMnOc5M93ZUPltPiOlRLTRK+jw53s3UX+sgZxG66Km0+O3MALeIba luEvif4lBWawqe64qfXuDPWbk+PE/OF6JgwpWBWLGXMu23ag3S/XM8iKjzZnwn+H8kXB QFv6Qhz1eFW4+jsRHMv6lDeHY3Mit99mWVLc5bPA5IMcOLwgP9cG0BjRHYvYH+J26rF+ 954w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ASixq9Dc; 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 w29si8816162oth.24.2020.03.31.14.57.14; Tue, 31 Mar 2020 14:57:26 -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=ASixq9Dc; 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 S1731493AbgCaV4g (ORCPT + 99 others); Tue, 31 Mar 2020 17:56:36 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:42388 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731486AbgCaV4g (ORCPT ); Tue, 31 Mar 2020 17:56:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585691795; 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=JBMA6jXiru2mPeg8fq1WPRUiBwr+Arv7dJnUuWmimoc=; b=ASixq9DcpgDyi27m7UF9PS/TIbW+o/KwvtO/6S0Ub6UnPXw5CRMDO4iPoSokPDKrvk+AVV qlJ8JSNWriDr7uDpLi0XqD8R810600VLQzqjjEbEX5JT4fKuB0Ffc8XQdNq34zWLGDTjs2 bb45hJn2JhQXChgsWN6DjC+Zg3Wny8I= 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-162-MUdl86boN4K15gh8KATflA-1; Tue, 31 Mar 2020 17:56:32 -0400 X-MC-Unique: MUdl86boN4K15gh8KATflA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4F7A78017CE; Tue, 31 Mar 2020 21:56:30 +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 21B941A269; Tue, 31 Mar 2020 21:56:26 +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: <20200331122554.GA27469@gardel-login> References: <20200331122554.GA27469@gardel-login> <1445647.1585576702@warthog.procyon.org.uk> <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <20200331083430.kserp35qabnxvths@ws.net.home> To: Lennart Poettering 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, Aleksa Sarai Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2418580.1585691786.1@warthog.procyon.org.uk> Date: Tue, 31 Mar 2020 22:56:26 +0100 Message-ID: <2418581.1585691786@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lennart Poettering wrote: > - We also have code that needs to check if /dev/ is plain tmpfs or > devtmpfs. We cannot use statfs for that, since in both cases > TMPFS_MAGIC is reported, hence we currently parse > /proc/self/mountinfo for that to find the fstype string there, which > is different for both cases. btw, fsinfo(FSINFO_ATTR_IDS) gets you the name of the filesystem type in addition to the magic number. David