X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fmount.c;h=fab922ea9ef1dd8fa742e8086062f9a139fc3efb;hp=69cb6e24e4b23861b07ea8664de3c7befb889afa;hb=36fcd77e02cedf300e2f45f2449e7e091ef5a7ab;hpb=a9f55579e8cae256b91dfec9f775622698b1a605 diff --git a/src/core/mount.c b/src/core/mount.c index 69cb6e24e..fab922ea9 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -687,8 +687,10 @@ static void mount_set_state(Mount *m, MountState state) { state == MOUNT_REMOUNTING_SIGKILL || state == MOUNT_UNMOUNTING_SIGTERM || state == MOUNT_UNMOUNTING_SIGKILL || - state == MOUNT_FAILED) - mount_notify_automount(m, -ENODEV); + state == MOUNT_FAILED) { + if (state != old_state) + mount_notify_automount(m, -ENODEV); + } if (state != old_state) log_debug("%s changed %s -> %s",