gstat don't work on 7.0-BETA2

Anton Yuzhaninov citrin at citrin.ru
Sat Nov 10 09:30:12 PST 2007


On 10.11.2007 15:58, Anton Yuzhaninov wrote:
> 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

It fail to parse xml because it contain non-ASCII symbols (in my case cyrillic in cp1251) from CD label:
any
But it not obvious, what is the right way to fix this bug.

Remove CD from CD-ROM to run gstat is a bad workaround.
Better workaround change non ASCII symbols to "_" in glabel, but it also ugly...

Anyway error message should be more relevant than "No such file or directory" (errno after readlink 
/etc/malloc.conf).

-- 
WBR,
  Anton Yuzhaninov


More information about the freebsd-geom mailing list