bin/144736: devd should consider spaces in event description when processing events

Henry Hu henry.hu.sh at gmail.com
Sun Mar 14 13:30:06 UTC 2010


>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 at 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:


More information about the freebsd-bugs mailing list