From owner-freebsd-hackers@FreeBSD.ORG Mon May 7 18:53:13 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 46AFF16A401 for ; Mon, 7 May 2007 18:53:13 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 21DAB13C458 for ; Mon, 7 May 2007 18:53:12 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (ipwm8adx3ztght2l@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l47Ir7wO032961; Mon, 7 May 2007 11:53:07 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l47Ir3Xr032960; Mon, 7 May 2007 11:53:03 -0700 (PDT) (envelope-from jmg) Date: Mon, 7 May 2007 11:53:03 -0700 From: John-Mark Gurney To: Ivan Voras Message-ID: <20070507185303.GS17958@funkthat.com> Mail-Followup-To: Ivan Voras , freebsd-hackers@freebsd.org References: <20070507175143.GR17958@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org Subject: Re: MIME-ifying sysctl types X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 18:53:13 -0000 Ivan Voras wrote this message on Mon, May 07, 2007 at 20:12 +0200: > John-Mark Gurney wrote: > > Ivan Voras wrote this message on Mon, May 07, 2007 at 18:39 +0200: > >> My proposal is to MIME-ify the Format fields, best presented in examples: > >> > >> "S,proc" -> "x-struct/proc" > >> "S,xfile" -> "x-struct/xfile" > > > > If you do, don't forget to add the version of the field to the > > mime-type as these structures change over time.. > > It's a good idea, maybe something like "x-struct/proc-v1", but is it > necessary without the XMLizing part? AFAIK the fields are currently > unversioned? no, I was thinking: "x-struct/proc;version=1"... Doesn't mean they shouldn't be.. Currently most tools detect different versions of structs by examining the size.. This isn't always safe as fields could get shuffled or meanings changed w/o changing the size.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."