From owner-freebsd-current@FreeBSD.ORG Tue Oct 19 14:56:51 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 8BC6E1065674 for ; Tue, 19 Oct 2010 14:56:51 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [95.108.130.120]) by mx1.freebsd.org (Postfix) with ESMTP id 3079D8FC1E for ; Tue, 19 Oct 2010 14:56:50 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward13.mail.yandex.net (Yandex) with ESMTP id 52A631080E27; Tue, 19 Oct 2010 18:56:49 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1287500209; bh=jLN+OsO/RnAGhq3v18rnzcdLO43ytI9MDoU6ba5tvxI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=HEz3BCRInk8XVnBCtlJuLOzIvuAG/ciAe2zYdPWBd9OBZHWIycMNCLIgcIV5rlWpF M3zK6/OgAiPNR+45mYVV1jkPzGNwKMNR/66Q8j/Gsc8cRqPq6cG22HwEfQQpMmAK6/ BFN3WkSRo6CsD0vU8ZYyBXEIqDM1x6XhGTr16XB8= Received: from [10.43.163.197] (nat-77-119.kirovnet.ru [92.39.77.119]) by smtp13.mail.yandex.net (Yandex) with ESMTPSA id DAA9F4158088; Tue, 19 Oct 2010 18:56:48 +0400 (MSD) Message-ID: <4CBDB17C.4040607@yandex.ru> Date: Tue, 19 Oct 2010 18:55:56 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100925 Thunderbird/3.1.4 MIME-Version: 1.0 To: FreeBSD Current References: <4CBCDD3A.9070404@delphij.net> <4CBD26B4.2020205@yandex.ru> In-Reply-To: <4CBD26B4.2020205@yandex.ru> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2F7F4E52FC567B1555BB59E2" X-Yandex-TimeMark: 1287500209 X-Yandex-Spam: 1 X-Yandex-Front: smtp13.mail.yandex.net Cc: Marcel Moolenaar , Xin LI 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: Tue, 19 Oct 2010 14:56:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2F7F4E52FC567B1555BB59E2 Content-Type: multipart/mixed; boundary="------------040201060102040101070507" This is a multi-part message in MIME format. --------------040201060102040101070507 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 19.10.2010 09:03, Andrey V. Elsukov wrote: >> Mounting from (...) failed with error 19 >> >> On boot. The system is using pure ZFS setup. It seems that 19 means >> ENODEV but according to the dmesg the device do exist. >=20 > Yes, i have the same problem. I fixed it with attached patch. --=20 WBR, Andrey V. Elsukov --------------040201060102040101070507 Content-Type: text/plain; name="vfs_mountroot.c.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="vfs_mountroot.c.diff" Index: vfs_mountroot.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- vfs_mountroot.c (revision 214058) +++ vfs_mountroot.c (working copy) @@ -713,7 +713,8 @@ goto out; } =20 - if (dev[0] !=3D '\0' && !parse_mount_dev_present(dev)) { + if (strcmp(fs, "zfs") && dev[0] !=3D '\0' && + !parse_mount_dev_present(dev)) { printf("mountroot: waiting for device %s ...\n", dev); delay =3D hz / 10; timeout =3D root_mount_timeout * hz; --------------040201060102040101070507-- --------------enig2F7F4E52FC567B1555BB59E2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBAgAGBQJMvbF8AAoJEAHF6gQQyKF60XkIAJZK1TlRow5eoOZNJiuKReuv /JgDTG0iQRigPkxRk7v1caargnPjzDI6FT2g9yJ90uGxiF1Gaxu8tNKzh2VJjqVx VhC7q17BL8jzyDO/kfbHySN2MdMopIkjaJko/534afpoqHRdSPpHBb03FpLhFCQu bDZQ6swnzQafoV7m7iAZky9iZL3WpaKEDpV9Y4Jqmee/bD5BLD3PGFF3/CpBSzUW jg61PDaN+VP/JuxPM38qMa9b4lIpTNkOvsfMHYnXELXXJb+ZFjpVChQpLsD58ZGZ w+FF4L8ljf59CMOTWtGPnfrezj9fUuG3UhmEQAtmlvmPumQrrBxizcUdiCDud1Y= =vNna -----END PGP SIGNATURE----- --------------enig2F7F4E52FC567B1555BB59E2--