Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2007 14:30:56 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Ivan Voras <ivoras@fer.hr>
Cc:        Pieter de Goeje <pieter@degoeje.nl>, freebsd-current@freebsd.org, freebsd-geom@freebsd.org
Subject:   Re: First steps towards importing gvirstor into -current
Message-ID:  <20070202133055.GB21290@garage.freebsd.pl>
In-Reply-To: <45C336D7.2060109@fer.hr>
References:  <epspv7$a9e$1@sea.gmane.org> <200702021311.10339.pieter@degoeje.nl> <45C336D7.2060109@fer.hr>

next in thread | previous in thread | raw e-mail | index | archive | help

--/NkBOFFp2J2Af1nK
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 02, 2007 at 02:04:23PM +0100, Ivan Voras wrote:
> Pieter de Goeje wrote:
> > Hi, I tried the beta3a version from the wiki on an amd64 -CURRENT machi=
ne.
> > I made some changes (attached) to g_virstor.c and geom_virstor.c to let=
 them=20
> > compile cleanly on AMD64. Both files contained instances of some printf=
=20
> > variant with format "%u" while the parameter was a size_t, so I changed=
 the=20
> > format to "%zu".
> >=20
> > Also, I needed to add -fPIC to the gcc command line to build geom_virst=
or.so.=20
> > For some reason, it wasnt able to find "path.h" so I included that one =
in the=20
> > search path.
>=20
> Yes, I forgot to mention this - no testing was done on anything but i386.
>=20
> Thanks for the patches!
>=20
> > After successfully building gvirstor (and loading it), I tried to use i=
t:
> > # ./gvirstor label -s 10000 test /dev/ad0s3b
> > Assertion failed: (G_OPT_TYPE(opt) !=3D 0), function parse_arguments,=
=20
> > file /usr/src/sbin/geom/core/geom.c, line 272.
> > Abort (core dumped)
> >=20
> > Basically I'm stuck here.
>=20
> Interesting. It seems that the geom main() couldn't parse command line
> arguments. I don't know what to make of it.

The API for geom(8) command have changed at some point. Where you used
G_TYPE_NONE, you should now use G_TYPE_BOOL.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--/NkBOFFp2J2Af1nK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFwz0PForvXbEpPzQRAkQgAKCOuqN9+pHrkkDTXMNZLZ5yR/wcZgCdGchk
E1y5L02HLJi4smEHVltN67Q=
=1UQ7
-----END PGP SIGNATURE-----

--/NkBOFFp2J2Af1nK--



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