Date: Sun, 14 Mar 2010 13:22:33 GMT From: Henry Hu <henry.hu.sh@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/144736: devd should consider spaces in event description when processing events Message-ID: <201003141322.o2EDMXJ0095275@www.freebsd.org> Resent-Message-ID: <201003141330.o2EDU63O077178@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 144736
>Category: bin
>Synopsis: devd should consider spaces in event description when processing events
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 14 13:30:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Henry Hu
>Release: FreeBSD 8.0-STABLE
>Organization:
Tsinghua University, Beijing, China
>Environment:
FreeBSD henryhu9.net9.org 8.0-STABLE FreeBSD 8.0-STABLE #1: Sun Feb 7 21:31:22 CST 2010 root@henryhu9.net9.org:/usr/obj/usr/src/sys/MYKERNEL i386
>Description:
devd uses space as delimiter. However, sometimes spaces appear in description.
For example, consider such debug log:
Processing event '!system=DEVFS subsystem=CDEV type=CREATE cdev=ntfs/SAMSUNG I'
Pushing table
setting system=DEVFS
setting subsystem=CDEV
setting type=CREATE
setting cdev=ntfs/SAMSUNG
Processing notify event
Testing system=DEVFS against ^DEVFS
Testing subsystem=CDEV against ^CDEV
Testing type=CREATE against ^CREATE
In fact, the label of the ntfs partition is "SAMSUNG I", so cdev should be "ntfs/SAMSUNG I", but devd sets cdev to ntfs/SAMSUNG, which is wrong.
>How-To-Repeat:
Insert any disk with a space in the label, and see the debug output of devd.
>Fix:
Maybe it is /sys/kern/kern_conf.c which should be changed, since devd can realize double quotes(").
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003141322.o2EDMXJ0095275>
