Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 16:17:20 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Ulf Lilleengen <lulf@freebsd.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r194829 - in projects/libprocstat/sys: kern sys
Message-ID:  <20090624131720.GE2884@deviant.kiev.zoral.com.ua>
In-Reply-To: <200906241207.n5OC7PZx013705@svn.freebsd.org>
References:  <200906241207.n5OC7PZx013705@svn.freebsd.org>

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

--z3ND3gJe4e1E4uwh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jun 24, 2009 at 12:07:25PM +0000, Ulf Lilleengen wrote:
> Author: lulf
> Date: Wed Jun 24 12:07:25 2009
> New Revision: 194829
> URL: http://svn.freebsd.org/changeset/base/194829
>=20
> Log:
>   - Add extra fields to kinfo_file that is needed by fstat, and export it=
 in the
>     kern.proc.filedesc sysctl.
>  #if defined(__amd64__) || defined(__i386__)
> -#define	KINFO_FILE_SIZE	1392
> +#define	KINFO_FILE_SIZE	1412
>  #endif
> =20
>  struct kinfo_file {
> @@ -324,6 +324,11 @@ struct kinfo_file {
>  	int	kf_sock_protocol;		/* Socket protocol. */
>  	struct sockaddr_storage kf_sa_local;	/* Socket address. */
>  	struct sockaddr_storage	kf_sa_peer;	/* Peer address. */
> +	long	kf_fsid;			/* Vnode filesystem id. */
> +	long	kf_fileid;			/* Global file id. */
> +	mode_t	kf_mode;			/* File mode. */
> +	u_long	kf_size;			/* File size. */
> +	dev_t	kf_rdev;			/* File device. */
>  	int	_kf_ispare[16];			/* Space for more stuff. */
>  	/* Truncated before copyout in sysctl */
>  	char	kf_path[PATH_MAX];		/* Path to file, if any. */

I think these new fields should be taken from the spare padding in
the kinfo_file structure.

--z3ND3gJe4e1E4uwh
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAkpCJ18ACgkQC3+MBN1Mb4hImgCgs9fZ7ZGDENVb5tY8KtGc6vgH
0SsAn2R2p+TP6j5QDfmWtHITSf3+XL4j
=xzeW
-----END PGP SIGNATURE-----

--z3ND3gJe4e1E4uwh--



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