From owner-freebsd-geom@FreeBSD.ORG Fri Feb 2 12:29:43 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2DAD316A400; Fri, 2 Feb 2007 12:29:43 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id 9543613C48E; Fri, 2 Feb 2007 12:29:42 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l12CBAox012615; Fri, 2 Feb 2007 13:11:15 +0100 From: Pieter de Goeje To: freebsd-current@freebsd.org Date: Fri, 2 Feb 2007 13:11:10 +0100 User-Agent: KMail/1.9.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_epywF30SSJkq3Nj" Message-Id: <200702021311.10339.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Ivan Voras , freebsd-geom@freebsd.org Subject: Re: First steps towards importing gvirstor into -current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2007 12:29:43 -0000 --Boundary-00=_epywF30SSJkq3Nj Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I tried the beta3a version from the wiki on an amd64 -CURRENT machine. I made some changes (attached) to g_virstor.c and geom_virstor.c to let them compile cleanly on AMD64. Both files contained instances of some printf variant with format "%u" while the parameter was a size_t, so I changed the format to "%zu". Also, I needed to add -fPIC to the gcc command line to build geom_virstor.so. For some reason, it wasnt able to find "path.h" so I included that one in the search path. After successfully building gvirstor (and loading it), I tried to use it: # ./gvirstor label -s 10000 test /dev/ad0s3b Assertion failed: (G_OPT_TYPE(opt) != 0), function parse_arguments, file /usr/src/sbin/geom/core/geom.c, line 272. Abort (core dumped) Basically I'm stuck here. Regards, Pieter de Goeje PS. How do I download the latest sources from the p4 repository? --Boundary-00=_epywF30SSJkq3Nj--