Module Name:    src
Committed By:   perseant
Date:           Thu Feb  2 03:47:11 UTC 2012

Modified Files:
        src/libexec/lfs_cleanerd: lfs_cleanerd.c

Log Message:
Shut down the cleaner earlier if the filesystem is unmounted.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/libexec/lfs_cleanerd/lfs_cleanerd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/lfs_cleanerd/lfs_cleanerd.c
diff -u src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.28 src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.29
--- src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.28	Mon Jan  2 21:35:18 2012
+++ src/libexec/lfs_cleanerd/lfs_cleanerd.c	Thu Feb  2 03:47:11 2012
@@ -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.
@@ -1158,6 +1158,12 @@ clean_fs(struct clfs *fs, CLEANERINFO *c
 				fd_release_all(fs->clfs_devvp);
 				return r;
 			}
+			if (oerrno == ESHUTDOWN) {
+				syslog(LOG_NOTICE, "%s: filesystem unmounted",
+				       fs->lfs_fsmnt);
+				fd_release_all(fs->clfs_devvp);
+				return r;
+			}
 		}
 	}
 

Reply via email to