X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fautomount.c;h=c9b87d5174e69b455d4ab72018efe41bc6b10acc;hb=e872b43c7ee51efb6bd6ca31d79e02af8cc3cb82;hp=c4a75280fc0c6a7616985a5e3d53921183e869d8;hpb=257f1d8ec49046c7b481801acfdd5bf57c9efa5c;p=elogind.git diff --git a/src/core/automount.c b/src/core/automount.c index c4a75280f..c9b87d517 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;