volume label parsing regression

Alberto Milone albertomilone at alice.it
Thu Apr 9 00:59:51 PDT 2009


On Thursday 09 April 2009 09:00:25 Martin Pitt wrote:
> Hello Alberto,
>
> Alberto Milone [2009-04-08 18:21 +0200]:
> > I'm not sure as to whether this change caused the problem that I'm
> > experiencing but my label seems to show up as %mnt%hdc5
> >  instead of /mnt/hdc5:
> >
> > ID_FS_LABEL_ENC=\x2fmnt\x2fhdc5
>
> 2f is '/', so this looks correct.
>
> > Furthermore if I compile a small program which has only
> > hal_util_decode_escape() and hexdigit() and I pass "\x2fmnt\x2fhdc5" to
> > hal_util_decode_escape() I get /mnt/hdc5.
>
> Indeed.
>
> > Any ideas as to what could be causing the problem?
>
> It might be translated in the higher levels, like gvfs. Can you please
> plug in the device and check the label in lshal? Does that have / or % ?
>
> Since when did you get this regression? Does downgrading hal to the
> previous version (without my patch) help?
>
I've got it since March. I also downgraded to hal 
0.5.12~rc1+git20090204-0ubuntu4 which doesn't contain your patch but lshal 
still reports: volume.label = '%mnt%hdc5'  (string)

Maybe it's something in gvfs.

Regards,

-- 
Alberto Milone
Sustaining Engineer (system)
Foundations Team
Canonical OEM Services


More information about the hal mailing list