Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2007 13:11:10 +0100
From:      Pieter de Goeje <pieter@degoeje.nl>
To:        freebsd-current@freebsd.org
Cc:        Ivan Voras <ivoras@fer.hr>, freebsd-geom@freebsd.org
Subject:   Re: First steps towards importing gvirstor into -current
Message-ID:  <200702021311.10339.pieter@degoeje.nl>
In-Reply-To: <epspv7$a9e$1@sea.gmane.org>
References:  <epspv7$a9e$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702021311.10339.pieter>