summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-14 00:43:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-14 00:43:35 +0200
commit7e23b34c7da85e24c92e984f1d99eead3e9817f5 (patch)
treed226e5613367c83d0de6f24e4b8e0975d30dd411 /src
parentce726252a9a9487a694cbd68f4d13542ba965258 (diff)
umount: be a bit more verbose when unable to umount/unswap/delete loopbacks
Diffstat (limited to 'src')
-rw-r--r--src/umount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/umount.c b/src/umount.c
index ff1296fc0f..44bed611ea 100644
--- a/src/umount.c
+++ b/src/umount.c
@@ -293,7 +293,7 @@ static int mount_points_list_umount(MountPoint **mount_point_list_head) {
if (umount2(mp->path, MNT_FORCE) == 0)
mount_point_remove_and_free(mp, mount_point_list_head);
else {
- log_debug("Could not unmount %s: %m", mp->path);
+ log_warning("Could not unmount %s: %m", mp->path);
failed++;
}
}
@@ -310,7 +310,7 @@ static int mount_points_list_remount_read_only(MountPoint **mount_point_list_hea
if (mount(NULL, mp->path, NULL, MS_MGC_VAL|MS_REMOUNT|MS_RDONLY, NULL) == 0)
mount_point_remove_and_free(mp, mount_point_list_head);
else {
- log_debug("Could not remount as read-only %s: %m", mp->path);
+ log_warning("Could not remount as read-only %s: %m", mp->path);
failed++;
}
}
@@ -326,7 +326,7 @@ static int swap_points_list_off(MountPoint **swap_list_head) {
if (swapoff(swap->path) == 0)
mount_point_remove_and_free(swap, swap_list_head);
else {
- log_debug("Could not swapoff %s: %m", swap->path);
+ log_warning("Could not deactivate swap %s: %m", swap->path);
failed++;
}
}
@@ -342,7 +342,7 @@ static int loopback_points_list_detach(MountPoint **loopback_list_head) {
if (delete_loopback(loopback->path) == 0)
mount_point_remove_and_free(loopback, loopback_list_head);
else {
- log_debug("Could not delete loopback %s: %m", loopback->path);
+ log_warning("Could not delete loopback %s: %m", loopback->path);
failed++;
}
}