[FS#1283] block info returns additional charactes in FAT32 label name

LEDE Bugs lede-bugs at lists.infradead.org
Fri Jan 19 05:29:16 PST 2018


A new Flyspray task has been opened.  Details are below. 

User who did this - fleskalebas (fleskalebas) 

Attached to Project - OpenWrt/LEDE Project
Summary - block info returns additional charactes in FAT32 label name
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - On several devices (ar71xx, ipq806x, mvebu) and with several versions of LEDE (all since 17.01.0) and even OpenWRT versions, block info returns not only the label name but it seems that also some random character in memory is added to the label name.

Expected:
root at router:~# block info
/dev/sda1: UUID="91f1-f7ed" LABEL="DATA" VERSION="FAT32" TYPE="vfat"

Current result:
root at router:~# block info
/dev/sda1: UUID="91f1-f7ed" LABEL="DATA         â-'" VERSION="FAT32" TYPE="vfat"

Above character is the ANSI equivalent of the UTF-8 character that is returned. Sometimes (on mvebu devices for example) I got the following results:
/dev/sda1: UUID="91f1-f7ed" LABEL="DATA         1" VERSION="FAT32" TYPE="vfat"
/dev/sda1: UUID="91f1-f7ed" LABEL="DATA         A" VERSION="FAT32" TYPE="vfat"
/dev/sda1: UUID="91f1-f7ed" LABEL="DATA         Z" VERSION="FAT32" TYPE="vfat"


Somehow block info adds spaces and the extra character (even when I label the disk with a 12-character label name).


More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1283



More information about the lede-bugs mailing list