Date: Mon, 2 Jan 2012 15:50:11 GMT From: Jaakko Heinonen <jh@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/163668: fstab 'failok' option has no effect on missing hard drive Message-ID: <201201021550.q02FoBAe070978@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/163668; it has been noted by GNATS. From: Jaakko Heinonen <jh@FreeBSD.org> To: Oleg Baranov <ol@csa.ru> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201021550.q02FoBAe070978>