Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2010 23:55:54 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r205541 - head/sys/compat/linprocfs
Message-ID:  <20100323215554.GH2415@deviant.kiev.zoral.com.ua>
In-Reply-To: <201003232149.o2NLnYfs097218@svn.freebsd.org>
References:  <201003232149.o2NLnYfs097218@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--hAW+M2+FUO+onfmf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 23, 2010 at 09:49:34PM +0000, John Baldwin wrote:
> Author: jhb
> Date: Tue Mar 23 21:49:33 2010
> New Revision: 205541
> URL: http://svn.freebsd.org/changeset/base/205541
>=20
> Log:
>   Implement /proc/filesystems.
>  =20
>   Submitted by:	Fernando Apesteguia fernando.apesteguia (gmail)
>=20
> Modified:
>   head/sys/compat/linprocfs/linprocfs.c
>=20
> Modified: head/sys/compat/linprocfs/linprocfs.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/sys/compat/linprocfs/linprocfs.c	Tue Mar 23 21:43:01 2010	(r2055=
40)
> +++ head/sys/compat/linprocfs/linprocfs.c	Tue Mar 23 21:49:33 2010	(r2055=
41)
> @@ -1227,6 +1227,22 @@ linprocfs_docmdline(PFS_FILL_ARGS)
>  	return (0);
>  }
> =20
> +/*
> + * Filler function for proc/filesystems
> + */
> +static int
> +linprocfs_dofilesystems(PFS_FILL_ARGS)
> +{
> +	struct vfsconf *vfsp;
> +
> +	TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) {
> +		if (vfsp->vfc_flags & VFCF_SYNTHETIC)
> +			sbuf_printf(sb, "nodev");
> +		sbuf_printf(sb, "\t%s\n", vfsp->vfc_name);
> +	}
> +	return(0);
> +}
I think the list iteration should be protected by Giant.
Am I mistaken ?

--hAW+M2+FUO+onfmf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkupOOgACgkQC3+MBN1Mb4h57QCg23Y+hINPTvNqv+n+mZLrkRMr
YG8AmwbDmVij6X/k9JG8s+45gybWv5G8
=tR7F
-----END PGP SIGNATURE-----

--hAW+M2+FUO+onfmf--



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