Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2010 11:10:29 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Fernando =?iso-8859-15?q?Apestegu=EDa?= <fernando.apesteguia@gmail.com>
Subject:   Re: [PATCH] linprocfs dofilesystems
Message-ID:  <201001151110.29417.jhb@freebsd.org>
In-Reply-To: <1bd550a01001080919p20ec1b20t82b3761705cd1ff3@mail.gmail.com>
References:  <1bd550a01001080919p20ec1b20t82b3761705cd1ff3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 08 January 2010 12:19:29 pm Fernando Apestegu=EDa wrote:
> Hi all,
>=20
> This patch implements the "filesystems" file in the linux proc fs.
> I have used it for some time without seeing any problems. Let me
> know in case this is useful.
>=20
> Tested against 8.0-RELEASE-p1

This patch is not correct.  It seems that /proc/filesystems is a list of=20
available filesystems, not a list of mounted filesystems.  E.g.:

> cat /proc/filesystems                                                    =
    =20
nodev   sysfs                                                              =
    =20
nodev   rootfs                                                             =
    =20
nodev   bdev
nodev   proc
nodev   sockfs
nodev   binfmt_misc
nodev   usbfs
nodev   usbdevfs
nodev   futexfs
nodev   tmpfs
nodev   pipefs
nodev   eventpollfs
nodev   devpts
        ext2
nodev   ramfs
nodev   hugetlbfs
        iso9660
nodev   relayfs
nodev   mqueue
        ext3
nodev   rpc_pipefs
nodev   nfs
nodev   nfs4
nodev   autofs

To do the same thing in FreeBSD you would need to walk the vfsconf list=20
instead.  However, I'm not sure it is worth it to add this unless there
are apps people commonly use that need it.

=2D-=20
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001151110.29417.jhb>