[systemd-devel] [PATCH] umount: log_info about what we unmounted

harald at redhat.com harald at redhat.com
Fri May 20 07:27:09 PDT 2011


From: Harald Hoyer <harald at redhat.com>

---
 src/umount.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/umount.c b/src/umount.c
index 31e91ec..35e04de 100644
--- a/src/umount.c
+++ b/src/umount.c
@@ -417,6 +417,7 @@ static int mount_points_list_umount(MountPoint **head, bool *changed) {
 
                 /* Trying to umount. Forcing to umount if busy (only for NFS mounts) */
                 if (umount2(m->path, MNT_FORCE) == 0) {
+                        log_info("unmounted %s", m->path);
                         if (changed)
                                 *changed = true;
 
-- 
1.7.3.4



More information about the systemd-devel mailing list