[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Sep 18 09:59:19 PDT 2012
src/core/automount.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit e872b43c7ee51efb6bd6ca31d79e02af8cc3cb82
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Sep 18 18:59:01 2012 +0200
automount: also whine if an automount directory is not empty
diff --git a/src/core/automount.c b/src/core/automount.c
index c4a7528..c9b87d5 100644
--- a/src/core/automount.c
+++ b/src/core/automount.c
@@ -501,6 +501,9 @@ static void automount_enter_waiting(Automount *a) {
/* We knowingly ignore the results of this call */
mkdir_p_label(a->where, 0555);
+ if (dir_is_empty(a->where) <= 0)
+ log_notice("%s: Directory %s to mount over is not empty, ignoring. (To see the over-mounted files, please manually mount the underlying file system to a secondary location.)", a->meta.id, a->where);
+
if (pipe2(p, O_NONBLOCK|O_CLOEXEC) < 0) {
r = -errno;
goto fail;
More information about the systemd-commits
mailing list