Re: [BUG] Cdrom labels are always 'padded' with spaces at the end

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-09-22 at 03:19 +0300, Maxim Levitsky wrote: 
> Hi, 
> 
> After updating to ubuntu 9.10 I noticed that cdrom labels are always
> prepended a long row of spaces.
> 
> like that:
> 
> maxim@maxim-laptop:~$ sudo /sbin/blkid -o udev -p /dev/sr0
> ID_FS_LABEL=CDROM
> ID_FS_LABEL_ENC=CDROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
> ID_FS_VERSION=Joliet\x20Extension
> ID_FS_TYPE=iso9660
> ID_FS_USAGE=filesystem
> 
> 
> It appears that it is ok for superblock probe drivers to send a label
> that is padded with spaces on physical hardware.
> 
> However blkid_probe_set_label removes this whitespace, but
> blkid_probe_set_utf8label don't.
> 
> Attached patch (against -git) just adds the whitespace removal to second
> function.
> 
> Bug reported at launchpad at:
> https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/432215
> 
> 
> Best regards,
> Maxim Levitsky
> 

However there is additional problem,
Problem is that Joliet label is saved in UTF-16, thus consists only of
16 chars, while, normal label is 32 chars wide.

Many disks I have recorded have labels longer that 16 bytes, thus are
truncated.

What you suggest to do?

Is that this important to use joilet label?

Best regards,
Maxim Levitsky

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux