From owner-freebsd-current@FreeBSD.ORG Wed Aug 4 14:43:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C52416A4CE for ; Wed, 4 Aug 2004 14:43:54 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7714643D39 for ; Wed, 4 Aug 2004 14:43:54 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 22589 invoked from network); 4 Aug 2004 14:43:53 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Aug 2004 14:43:53 -0000 Received: from hydrogen.funkthat.com (dixgpk@localhost.funkthat.com [127.0.0.1])i74EhruU054528; Wed, 4 Aug 2004 07:43:53 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i74EhoVk054527; Wed, 4 Aug 2004 07:43:50 -0700 (PDT) Date: Wed, 4 Aug 2004 07:43:50 -0700 From: John-Mark Gurney To: Maxim Sobolev Message-ID: <20040804144350.GX991@funkthat.com> Mail-Followup-To: Maxim Sobolev , current@freebsd.org References: <62768.1091287144@critter.freebsd.dk> <410BBB74.9010804@portaone.com> <864qnoyv06.fsf@kamino.rfc1149.org> <410BD3BC.9090704@portaone.com> <20040803212227.GW991@funkthat.com> <20040804102742.GC55271@www.portaone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040804102742.GC55271@www.portaone.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 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: current@freebsd.org Subject: Re: GEOM is too verbose X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 14:43:54 -0000 Maxim Sobolev wrote this message on Wed, Aug 04, 2004 at 12:27 +0200: > On Tue, Aug 03, 2004 at 02:22:27PM -0700, John-Mark Gurney wrote: > > Maxim Sobolev wrote this message on Sat, Jul 31, 2004 at 20:15 +0300: > > > >>It is python program, so that ioctl() is out of question. Usage of > > > > > > > > > > > >Hm python has ioctl support, where is the problem? > > > > > > Really? Anyway, I doubt that name of this ioctl is the same on the > > > different unices, so that binary search is still the best from the > > > portability POV. > > > > fcntl.ioctl... it might take some hand expansion of the ioctl macros > > to get it though... the old pytoh that would generate these couldn't > > handle FreeBSD's ioctl defines (but this was back in the early 4.x > > days)... You could always write a simple C program to get the value > > necessary.. > > Heh, but I have other means to spend my spare time. Rewriting perfectly > working code for perfection sake is not one of them. I only suggested: #include #include void main() { printf("%ul\n", DIOCGMEDIASIZE); } and then use that value in python's fctl.ioctl. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."