Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Jul 2009 17:27:23 +0200
From:      Ralf Wenk <IZ-FreeBSD0902-nospam@hs-karlsruhe.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Ralf Wenk <IZ-FreeBSD0902-nospam@hs-karlsruhe.de>
Subject:   kern/136467: glabel destroys access to GEOM tree if volume label contains non ASCII characters
Message-ID:  <E1MOZ3L-0008AI-F6@RZ-Wenk1.HS-Karlsruhe.DE>
Resent-Message-ID: <200907081610.n68GA43Q038356@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136467
>Category:       kern
>Synopsis:       glabel destroys access to GEOM tree if volume label contains non ASCII characters
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 08 16:10:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ralf Wenk
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
Hochschule Karlsruhe, University of Applied Sciences
>Environment:
System: FreeBSD ptavv.ka.sub.org 7.2-STABLE FreeBSD 7.2-STABLE #2: Mon Jul 6 23:44:29 CEST 2009 root@ptavv.ka.sub.org:/usr/obj/usr/src/sys/ptavv-ng i386



>Description:
When GEOM_LABEL is configured into the kernel and e.g. a DVD with an volume
label containing an "ä" character is found while booting later gmirror list
or gmirror status commands return
gmirror: Cannot get GEOM tree: Unknown error: -1

GEOM_LABEL is configured into the kernel, geom_mirror loadad as a module
during boot.

Some simple tests showed, that loading geom_label as a module before or
after geom_mirror does not trigger the problem here.

>How-To-Repeat:
I found the problem mentioned on the current mailing-list at
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-06/msg00448.html
where Kazuaki ODA shows the follwing example:
# dd if=/dev/zero of=/var/tmp/disk1.img bs=1k count=1k
# mdconfig -a -t vnode -f /var/tmp/disk1.img
md0
# glabel create <LABEL_NAME_ENCODED_OTHER_THAN_UTF8> md0
# glabel list
glabel: Cannot get GEOM tree: Unknown error: -1

>Fix:

As a work around you can avoid non-ascii characters in volume labels or
do not use geom_label at all.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1MOZ3L-0008AI-F6>