Subject: Re: lfs_cleanerd couldn't init: error code -4
To: None <ks@ub.uni-mainz.de>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 08/05/2006 22:40:30
On Sat, 5 Aug 2006 22:37:58 +0200
Kurt Schreiner <ks@ub.uni-mainz.de> wrote:
> Hi,
>
> after the last round of changes to fhopen & Co lfs_cleanerd doesn't do it's
> job anymore. From /var/log/messages:
>
> Aug 5 22:08:31 ipaddi-bsd lfs_cleanerd[505]: /home: couldn't init: error code -4
> Aug 5 22:08:31 ipaddi-bsd lfs_cleanerd[505]: : detaching cleaner
> Aug 5 22:08:38 ipaddi-bsd lfs_cleanerd[534]: /u: couldn't init: error code -4
> Aug 5 22:08:38 ipaddi-bsd lfs_cleanerd[534]: : detaching cleaner
>
> The problem seems to come from fhopen in line 236 of
> libexec/lfs_cleanerd/lfs_cleanerd.c
>
> 1 /* $NetBSD: lfs_cleanerd.c,v 1.10 2006/07/31 16:34:42 martin Exp $ */
> ...
> 236 if ((fs->clfs_ifilefd = fhopen(&fs->clfs_ifilefh,
> 237 sizeof(fs->clfs_ifilefh), O_RDONLY)) < 0)
> 238 return -4;
> ...
>
> But I've no idea how to fix this (- w/o causing more breakage ;-)
I had this error weeks ago, and the fix is:
$ cd /usr/src/sys/ufs/lfs && make USETOOLS=no includes
$cd /usr/src/libexec/lfs_cleanerd && make USETOOLS=no dependall install cleandir
Cheers.