First steps towards importing gvirstor into -current
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Feb 2 13:31:59 UTC 2007
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 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.
The API for geom(8) command have changed at some point. Where you used
G_TYPE_NONE, you should now use G_TYPE_BOOL.
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070202/8456af58/attachment.pgp
More information about the freebsd-geom
mailing list