Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2010 18:55:56 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        FreeBSD Current <freebsd-current@FreeBSD.ORG>
Cc:        Marcel Moolenaar <xcllnt@mac.com>, Xin LI <delphij@delphij.net>
Subject:   Re: [zfs] Mounting from (...) failed with error 19
Message-ID:  <4CBDB17C.4040607@yandex.ru>
In-Reply-To: <4CBD26B4.2020205@yandex.ru>
References:  <4CBCDD3A.9070404@delphij.net> <4CBD26B4.2020205@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CBDB17C.4040607>