From owner-freebsd-current@FreeBSD.ORG Wed Oct 20 16:23:42 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20D80106566C for ; Wed, 20 Oct 2010 16:23:42 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by mx1.freebsd.org (Postfix) with ESMTP id 042EA8FC1C for ; Wed, 20 Oct 2010 16:23:41 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0LAL006J9K7A6020@asmtp030.mac.com> for freebsd-current@FreeBSD.ORG; Wed, 20 Oct 2010 09:23:36 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=5 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1010200085 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-10-20_08:2010-10-20, 2010-10-20, 1970-01-01 signatures=0 From: Marcel Moolenaar In-reply-to: <4CBE7254.5060502@yandex.ru> Date: Wed, 20 Oct 2010 09:23:34 -0700 Message-id: References: <4CBCDD3A.9070404@delphij.net> <4CBD26B4.2020205@yandex.ru> <4CBDB17C.4040607@yandex.ru> <44B33168-C432-4AA0-A765-8222DB4C048D@mac.com> <4CBE0BE5.2060708@delphij.net> <023E61D3-7E4C-4793-95A0-088ABCD0F92F@mac.com> <4CBE7254.5060502@yandex.ru> To: "Andrey V. Elsukov" X-Mailer: Apple Mail (2.1081) Cc: FreeBSD Current , d@delphij.net Subject: Re: [zfs] Mounting from (...) failed with error 19 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 16:23:42 -0000 On Oct 19, 2010, at 9:38 PM, Andrey V. Elsukov wrote: > On 20.10.2010 2:33, Marcel Moolenaar wrote: >>> What about the attached patch? I'm going to give it a swirl soon. The >>> difference is that it tests whether dev begins with /dev/. >> >> Interesting. I've been thinking about this too, but isn't >> exactly fool-proof. When devfs is the root file system, >> you can use "ufs:da0s1a" to refer to the device special >> file. It seems inconsistent to have "ufs:da0s1" fail when >> ufs:/dev/da0s1" works (a real scenario with USB based mass >> storage devices -- root mount is unheld as soon as umass >> is created, but before daX exists for it). >> >> This patch at least covers the problem cases with a single >> strstr(), and we may get away with the inconsistency given >> above by documenting it properly. >> >> Andrey: any thoughts? > > Currently usage information in parse_dir_ask() says that device should > be specified with "/dev/". But conf0 does not use "/dev/". Also, Marcel, > do you have any plans write some documentation with examples about using > of new features? Yes, this will be documented. -- Marcel Moolenaar xcllnt@mac.com