From nobody@FreeBSD.org  Sun Mar 14 13:22:35 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 256F4106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Mar 2010 13:22:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 151888FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Mar 2010 13:22:35 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2EDMYra095276
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Mar 2010 13:22:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2EDMXJ0095275;
	Sun, 14 Mar 2010 13:22:33 GMT
	(envelope-from nobody)
Message-Id: <201003141322.o2EDMXJ0095275@www.freebsd.org>
Date: Sun, 14 Mar 2010 13:22:33 GMT
From: Henry Hu <henry.hu.sh@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devd should consider spaces in event description when processing events
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144736
>Category:       bin
>Synopsis:       devd(8) should consider spaces in event description when processing events
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 14 13:30:06 UTC 2010
>Closed-Date:    Fri Mar 23 07:27:25 UTC 2012
>Last-Modified:  Sat Dec 22 15:25:20 UTC 2012
>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:
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Fri Mar 23 07:27:24 UTC 2012 
State-Changed-Why:  
Duplicate of kern/161912. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144736 
Responsible-Changed-From-To: freebsd-bugs->jh 
Responsible-Changed-By: jh 
Responsible-Changed-When: Sat Dec 22 15:25:19 UTC 2012 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144736 
>Unformatted:
