[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2418581.1585691786@warthog.procyon.org.uk>
Date: Tue, 31 Mar 2020 22:56:26 +0100
From: David Howells <dhowells@...hat.com>
To: Lennart Poettering <mzxreary@...inter.de>
Cc: dhowells@...hat.com, Miklos Szeredi <miklos@...redi.hu>,
Karel Zak <kzak@...hat.com>,
Christian Brauner <christian.brauner@...ntu.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Al Viro <viro@...iv.linux.org.uk>, dray@...hat.com,
Miklos Szeredi <mszeredi@...hat.com>,
Steven Whitehouse <swhiteho@...hat.com>,
Jeff Layton <jlayton@...hat.com>, Ian Kent <raven@...maw.net>,
andres@...razel.de, keyrings@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Aleksa Sarai <cyphar@...har.com>
Subject: Re: Upcoming: Notifications, FS notifications and fsinfo()
Lennart Poettering <mzxreary@...inter.de> 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
Powered by blists - more mailing lists