From mi@symbion.zaytman.com  Tue Nov 14 20:00:11 2006
Return-Path: <mi@symbion.zaytman.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E2FE316A4A7
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Nov 2006 20:00:11 +0000 (UTC)
	(envelope-from mi@symbion.zaytman.com)
Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4340A43DD2
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Nov 2006 19:58:45 +0000 (GMT)
	(envelope-from mi@symbion.zaytman.com)
Received: from mr08.lnh.mail.rcn.net ([207.172.157.28])
  by smtp02.lnh.mail.rcn.net with ESMTP; 14 Nov 2006 14:58:28 -0500
Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11])
	by mr08.lnh.mail.rcn.net (MOS 3.7.5a-GA)
	with ESMTP id HPH08765;
	Tue, 14 Nov 2006 14:58:22 -0500 (EST)
Received: from 207-172-77-34.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com (HELO symbion.zaytman.com) ([207.172.77.34])
  by smtp01.lnh.mail.rcn.net with ESMTP; 14 Nov 2006 14:58:21 -0500
Received: from symbion.zaytman.com (localhost.zaytman.com [127.0.0.1])
	by symbion.zaytman.com (8.13.8/8.13.4) with ESMTP id kAEJwK0k065767
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Nov 2006 14:58:20 -0500 (EST)
	(envelope-from mi@symbion.zaytman.com)
Received: (from mi@localhost)
	by symbion.zaytman.com (8.13.8/8.13.4/Submit) id kAEJwKbg065766;
	Tue, 14 Nov 2006 14:58:20 -0500 (EST)
	(envelope-from mi)
Message-Id: <200611141958.kAEJwKbg065766@symbion.zaytman.com>
Date: Tue, 14 Nov 2006 14:58:20 -0500 (EST)
From: Mikhail Teterin <mi@aldan.algebra.com>
Reply-To: Mikhail Teterin <mi@aldan.algebra.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: newly added disk devices don't have slice-devices created
X-Send-Pr-Version: 3.113

>Number:         105539
>Category:       kern
>Synopsis:       newly added disk devices don't have slice-devices created
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 14 20:10:02 GMT 2006
>Closed-Date:    Fri Sep 23 19:32:24 UTC 2011
>Last-Modified:  Fri Sep 23 19:32:24 UTC 2011
>Originator:     Mikhail Teterin
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
Virtual Estates, Inc.
>Environment:
System: FreeBSD symbion.zaytman.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Thu Oct 19 16:48:49 EDT 2006 root@symbion.zaytman.com:/usr/obj/ibm/src/sys/SYMBION i386

	I've seen this for a few years now -- ever since starting to
	use devfs, actually.

>Description:

	An external flash-card reader is connected to the PC via USB:

	% usbdevs 
	addr 1: UHCI root hub, Intel
	addr 1: UHCI root hub, Intel
	 addr 2: product 0x0140, vendor 0x0424
	  addr 4: ImageMate CompactFlash USB, SanDisk Corporation
	  addr 3: officejet 7100 series, Hewlett-Packard

	When a flash-card (with FAT filesystem) is inserted, it is not,
	unfortunately, immediately mountable, because /dev/da0s1 is
	missing -- only the /dev/da0 is present:

	% ls -l /dev/da0*
	crw-r-----  1 root  operator    0,  96 Nov  7 22:03 /dev/da0

>How-To-Repeat:
>Fix:

	Trying to mount /dev/da0 directly will fail, but after such
	an attempt, the /dev/da0s1 appears and can be mounted:

	% ls -l /dev/da0*
	crw-r-----  1 root  operator    0,  96 Nov  7 22:03 /dev/da0
	crw-r-----  1 root  operator    0,  96 Nov  7 22:03 /dev/da0s1

	% mount -t msdosfs /dev/da0s1 /sandisk
	%

	This is a work-around, but true fix is needed...
>Release-Note:
>Audit-Trail:

From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To: Mikhail Teterin <mi@aldan.algebra.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/105539: newly added disk devices don't have slice-devices created 
Date: Tue, 14 Nov 2006 20:32:58 +0000

 In message <200611141958.kAEJwKbg065766@symbion.zaytman.com>, Mikhail Teterin w
 rites:
 
 This is a well known "sort of design choice" in the CAM code.
 
 You can work around it two ways:
 
 Insert the flash card in the reader before you plug the reader in.
 
 or
 
 after insterting the card do
 
 	true > /dev/da0
 
 -- 
 Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
 phk@FreeBSD.ORG         | TCP/IP since RFC 956
 FreeBSD committer       | BSD since 4.3-tahoe    
 Never attribute to malice what can adequately be explained by incompetence.
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Fri Sep 23 19:32:22 UTC 2011 
State-Changed-Why:  
Duplicate of kern/85975. 

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