Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/lfs_cleanerd Shut down the cleaner earlier if the fi...



details:   https://anonhg.NetBSD.org/src/rev/9019080a8156
branches:  trunk
changeset: 773436:9019080a8156
user:      perseant <perseant%NetBSD.org@localhost>
date:      Thu Feb 02 03:47:11 2012 +0000

description:
Shut down the cleaner earlier if the filesystem is unmounted.

diffstat:

 libexec/lfs_cleanerd/lfs_cleanerd.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 9e99ffa3bf81 -r 9019080a8156 libexec/lfs_cleanerd/lfs_cleanerd.c
--- a/libexec/lfs_cleanerd/lfs_cleanerd.c       Thu Feb 02 03:00:48 2012 +0000
+++ b/libexec/lfs_cleanerd/lfs_cleanerd.c       Thu Feb 02 03:47:11 2012 +0000
@@ -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 @@
                                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;
+                       }
                }
        }
 



Home | Main Index | Thread Index | Old Index