From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 10:57:46 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 772BB187; Fri, 8 Aug 2014 10:57:46 +0000 (UTC) Received: from forward7l.mail.yandex.net (forward7l.mail.yandex.net [IPv6:2a02:6b8:0:1819::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D0D820CE; Fri, 8 Aug 2014 10:57:46 +0000 (UTC) Received: from smtp16.mail.yandex.net (smtp16.mail.yandex.net [95.108.252.16]) by forward7l.mail.yandex.net (Yandex) with ESMTP id 26B36BC0511; Fri, 8 Aug 2014 14:57:43 +0400 (MSK) Received: from smtp16.mail.yandex.net (localhost [127.0.0.1]) by smtp16.mail.yandex.net (Yandex) with ESMTP id 964406A0886; Fri, 8 Aug 2014 14:57:42 +0400 (MSK) Received: from 84.201.167.16-vpn.dhcp.yndx.net (84.201.167.16-vpn.dhcp.yndx.net [84.201.167.16]) by smtp16.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id frBuwGIR8N-vgROK9bi; Fri, 8 Aug 2014 14:57:42 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: f3bbacab-fa85-4685-863d-4a9500cee5b9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1407495462; bh=rC5aC4KZ47/qVqEX4r2eML3+v9ZQq49oRgbDMCk/zKk=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=NPntrSNFopUQZ1n+xxj960/2ykZa6JHfSrfbvzZPmsqSgF0YGu3DA4BIiZvj3pHkT 35qblxH2Xb3TroN3kzTgy1YPYGNzrvJ5A/tHoqSMEuiJdnIDDXWJGvbLipf1OHVZOG WF+m4c8kTKV0LEnTeuNFt40P53/wicSf/CAa2uBQ= Authentication-Results: smtp16.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <53E4ACF4.4030001@yandex.ru> Date: Fri, 08 Aug 2014 14:56:52 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: hiren panchasara , Xin LI Subject: Re: Where is loader.conf.gz? References: <53E3C44C.9000500@delphij.net> <53E4A6E7.3080309@yandex.ru> In-Reply-To: <53E4A6E7.3080309@yandex.ru> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 10:57:46 -0000 On 08.08.2014 14:31, Andrey V. Elsukov wrote: > On 08.08.2014 01:46, hiren panchasara wrote: >> /* pass file name to the different filesystem open routines */ >> besterror = ENOENT; >> for (i = 0; file_system[i] != NULL; i++) { >> fs = file_system[i]; >> error = (fs->fo_open)(file, f); <-----zf_open() is called >> which returns ENOENT >> if (error == 0) >> goto ok; >> if (error != EINVAL) >> besterror = error; >> } >> error = besterror; >> >> So, the error is ENOENT at this point. But it fails in what happens after this: > > It looks like loader.efi should first open /boot/loader.conf via > devopen() a bit earlier in this code. Did you see this attempt in the > tcpdump? Can you stop loader and see what value has currdev environment > variable? Sorry, devopen() doesn't open a file, but nfs_fsops should be tried first. Maybe this code has been failed in nfs_open? #ifndef __i386__ if (strcmp(f->f_dev->dv_name, "net") != 0) return(EINVAL); #else -- WBR, Andrey V. Elsukov