Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 77140

Summary: hal 0.4.4 cuts cdrom volume names to 16 characters
Product: Gentoo Linux Reporter: Giacomo Perale <ghepeu>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2004.3   
Hardware: All   
OS: Linux   
URL: http://ghepeu.altervista.org/immagini/varie/hal.jpg
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: joliet label fix
cdrom dump
iso label patch
cdrom dump

Description Giacomo Perale 2005-01-08 08:38:26 UTC
I've just upgraded to hal 0.4.4, and I noted that now mounted cd icons on desktop displays only the first 16 characters of volume name. In volume properties as well names are 16 characters long. Reverting to hal-0.4.2-r1 fixed the problem.
Comment 1 foser (RETIRED) gentoo-dev 2005-01-08 12:35:14 UTC
Created attachment 47958 [details, diff]
joliet label fix

could you try and apply this patch to the ebuild (see src_unpack for examples)
& check if it has any effect ?
Comment 2 Giacomo Perale 2005-01-08 18:41:35 UTC
I'm sorry but there were no effects, still 16 characters
Comment 3 foser (RETIRED) gentoo-dev 2005-01-08 19:09:16 UTC
attach the output of the following command : 

dd if=/dev/<cddrive> bs=1 count=4096 skip=32769 | hexdump -C

where <cddrive> is you cd device, with the cd mounted
Comment 4 Giacomo Perale 2005-01-08 19:14:37 UTC
Created attachment 47990 [details]
cdrom dump
Comment 5 foser (RETIRED) gentoo-dev 2005-01-09 05:03:41 UTC
well it's quite obvious now : it uses the second label, which uses 2 bytes per char, so you get only 16 chars total.
Comment 6 foser (RETIRED) gentoo-dev 2005-01-09 10:42:03 UTC
Created attachment 48034 [details, diff]
iso label patch

here's another patch, it's not very pretty but i think it works. Please test.
Comment 7 Giacomo Perale 2005-01-09 11:53:22 UTC
Created attachment 48036 [details]
cdrom dump

applying this patch everything works, with cdrom where second label is better
than the first one as well. thank you.
Comment 8 foser (RETIRED) gentoo-dev 2005-01-12 06:56:30 UTC
ok patch added to 0.4.4-r1, thanks for the report & testing.