From owner-svn-src-projects@FreeBSD.ORG Wed Jun 24 13:40:21 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8078D1065719; Wed, 24 Jun 2009 13:40:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id DC59B8FC08; Wed, 24 Jun 2009 13:40:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n5ODHKEQ081366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jun 2009 16:17:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n5ODHKnH018711; Wed, 24 Jun 2009 16:17:20 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n5ODHKEY018710; Wed, 24 Jun 2009 16:17:20 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 24 Jun 2009 16:17:20 +0300 From: Kostik Belousov To: Ulf Lilleengen Message-ID: <20090624131720.GE2884@deviant.kiev.zoral.com.ua> References: <200906241207.n5OC7PZx013705@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z3ND3gJe4e1E4uwh" Content-Disposition: inline In-Reply-To: <200906241207.n5OC7PZx013705@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.1 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r194829 - in projects/libprocstat/sys: kern sys X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 13:40:22 -0000 --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--