Shut down the cleaner earlier if the filesystem is unmounted.
This commit is contained in:
parent
ded3ab848b
commit
ccf39d2d9b
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: lfs_cleanerd.c,v 1.28 2012/01/02 21:35:18 perseant Exp $ */
|
/* $NetBSD: lfs_cleanerd.c,v 1.29 2012/02/02 03:47:11 perseant Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2005 The NetBSD Foundation, Inc.
|
* Copyright (c) 2005 The NetBSD Foundation, Inc.
|
||||||
@ -1158,6 +1158,12 @@ clean_fs(struct clfs *fs, CLEANERINFO *cip)
|
|||||||
fd_release_all(fs->clfs_devvp);
|
fd_release_all(fs->clfs_devvp);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
if (oerrno == ESHUTDOWN) {
|
||||||
|
syslog(LOG_NOTICE, "%s: filesystem unmounted",
|
||||||
|
fs->lfs_fsmnt);
|
||||||
|
fd_release_all(fs->clfs_devvp);
|
||||||
|
return r;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user