From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 2 15:50:11 2012 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 AEA01106566C for ; Mon, 2 Jan 2012 15:50:11 +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 9DA3F8FC15 for ; Mon, 2 Jan 2012 15:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q02FoBCi070979 for ; Mon, 2 Jan 2012 15:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q02FoBAe070978; Mon, 2 Jan 2012 15:50:11 GMT (envelope-from gnats) Date: Mon, 2 Jan 2012 15:50:11 GMT Message-Id: <201201021550.q02FoBAe070978@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jaakko Heinonen Cc: Subject: Re: conf/163668: fstab 'failok' option has no effect on missing hard drive X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jaakko Heinonen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 15:50:11 -0000 The following reply was made to PR conf/163668; it has been noted by GNATS. From: Jaakko Heinonen To: Oleg Baranov Cc: bug-followup@freebsd.org Subject: Re: conf/163668: fstab 'failok' option has no effect on missing hard drive Date: Mon, 2 Jan 2012 17:45:41 +0200 Hi, On 2011-12-28, Oleg Baranov wrote: > System drops to Single mode on boot in case special device is missing > even corresponding filesystem is marked as 'failok' in /etc/fstab. This is a bug in mount(8). The mountfs() function calls several functions which may cause mount(8) to exit with error status. This breaks the "failok" functionality. I tried to remove most exit points in the following patch. Changing checkpath() isn't trivial because also file system specific mount commands use the function. http://people.freebsd.org/~jh/patches/mount-failok.diff Please report back if you are able to test the patch. -- Jaakko