mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-24 02:20:45 +07:00
automount: also whine if an automount directory is not empty
This commit is contained in:
parent
257f1d8ec4
commit
e872b43c7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user