From owner-freebsd-geom@FreeBSD.ORG Fri Feb 2 13:27:46 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 353F716A409; Fri, 2 Feb 2007 13:27:46 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.freebsd.org (Postfix) with ESMTP id B1B3813C4BB; Fri, 2 Feb 2007 13:27:45 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (localhost.cc.fer.hr [127.0.0.1]) by lara.cc.fer.hr (8.13.8/8.13.8) with ESMTP id l12D4NEX036717; Fri, 2 Feb 2007 14:04:23 +0100 (CET) (envelope-from ivoras@fer.hr) Message-ID: <45C336D7.2060109@fer.hr> Date: Fri, 02 Feb 2007 14:04:23 +0100 From: Ivan Voras User-Agent: Thunderbird 1.5.0.9 (X11/20070110) MIME-Version: 1.0 To: Pieter de Goeje References: <200702021311.10339.pieter@degoeje.nl> In-Reply-To: <200702021311.10339.pieter@degoeje.nl> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, 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 13:27:46 -0000 Pieter de Goeje wrote: > 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. Yes, I forgot to mention this - no testing was done on anything but i386. Thanks for the patches! > 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. Interesting. It seems that the geom main() couldn't parse command line arguments. I don't know what to make of it. > Regards, > Pieter de Goeje > > PS. > How do I download the latest sources from the p4 repository? > They are the same as in the tarball. I don't really know if you can access p4 by an anonymous account.