From owner-freebsd-bugs@FreeBSD.ORG Wed May 6 00:10:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62568106568A for ; Wed, 6 May 2009 00:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1CF0D8FC22 for ; Wed, 6 May 2009 00:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n460A2PW030516 for ; Wed, 6 May 2009 00:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n460A2fc030515; Wed, 6 May 2009 00:10:02 GMT (envelope-from gnats) Resent-Date: Wed, 6 May 2009 00:10:02 GMT Resent-Message-Id: <200905060010.n460A2fc030515@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48AD31065673 for ; Wed, 6 May 2009 00:03:58 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id 03DE98FC15 for ; Wed, 6 May 2009 00:03:57 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1M1Uc8-0005S7-Ls for FreeBSD-gnats-submit@freebsd.org; Wed, 06 May 2009 04:03:56 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id BF27AB84D for ; Wed, 6 May 2009 04:02:38 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id DDE79108841; Wed, 6 May 2009 04:02:58 +0400 (MSD) Message-Id: <20090506000258.DDE79108841@hades.panopticon> Date: Wed, 6 May 2009 04:02:58 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/134250: [rc.d] mountlate: bogus error message when using nested late mounts X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2009 00:10:04 -0000 >Number: 134250 >Category: bin >Synopsis: [rc.d] mountlate: bogus error message when using nested late mounts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 06 00:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Apr 30 06:41:20 MSD 2009 root@hades.panopticon:/async/obj/usr/src/sys/HADES i386 >Description: On some configs it's possible that bogus error from mount is displayed during boot. The bug shows when there are nested late mounts, i.e. /dev/ad8d /mnt ufs rw,late 0 0 /dev/ad8e /mnt/somedir ufs rw,late 0 0 Here's what mount -d -a -l shows in this case: # mount -d -a -l mount -t ufs -o rw -o noatime -o update /dev/ad8a / mount -t ufs -o rw /dev/ad8d /mnt mount: /mnt/somedir: No such file or directory True, as /mnt/somedir does not exists unless /dev/ad8d is mounted. That mount -d -a -l is called from /etc/rc.d/mountlate: latefs="`/sbin/mount -d -a -l | grep -v ' /$'`" thus that error gets into boot output - it confused me badly, though it turned out to be harmless. >How-To-Repeat: >Fix: Obvious fix is: - latefs="`/sbin/mount -d -a -l | grep -v ' /$'`" + latefs="`/sbin/mount -d -a -l 2>&1 | grep -v ' /$'`" >Release-Note: >Audit-Trail: >Unformatted: