Date: Sat, 10 Nov 2007 15:58:11 +0300 From: Anton Yuzhaninov <citrin@citrin.ru> To: freebsd-geom@freebsd.org Subject: gstat don't work on 7.0-BETA2 Message-ID: <4735AAE3.7070209@citrin.ru>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000603020804000907080706
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit
gstat don't work on my system:
# gstat
gstat: geom_gettree = -1: No such file or directory
Error "No such file or directory" seems to be irrelevant to the cause of error. It show saved errno from:
readlink("/etc/malloc.conf",0x7fffffffe1f0,1024) ERR#2 'No such file or directory'
But real problem in other place...
To test I'v written simple test (attached as geom-test.c)
which show that:
1. geom_getxml() return xml
2. geom_xml2tree() can't parse this xml
xml output from geom_getxml attached as geom-tree.xml.
--
WBR,
Anton Yuzhaninov
--------------000603020804000907080706
Content-Type: text/plain;
name="geom-test.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="geom-test.c"
/* to compile tipe: gcc -lgeom -o geom-test geom-test.c */
#include <err.h>
#include <libgeom.h>
#include <stdio.h>
#include <stdlib.h>
int
main(int argc, char *argv[])
{
char *p;
struct gmesh gmp;
int x2t_err;
p = geom_getxml();
if (p == NULL)
err(1, "geom_getxml() failed");
printf("%s\n", p);
x2t_err = geom_xml2tree(&gmp, p);
free(p);
printf("geom_xml2tree() return: %d\n", x2t_err);
exit(0);
}
--------------000603020804000907080706--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4735AAE3.7070209>
