X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fautomount.c;h=9447c0d8fcf81af7c3c3a169bc4bccd70741ca90;hb=a76fad090a6a1388fbaa609e8ca37e82223d2bd7;hp=0ae467cbd4f79a8fc005d78e05f0cbfd686c7e3c;hpb=e2f3b44cfc8864bfea7c77ff4c383ce9b535f27e;p=elogind.git diff --git a/src/automount.c b/src/automount.c index 0ae467cbd..9447c0d8f 100644 --- a/src/automount.c +++ b/src/automount.c @@ -573,7 +573,8 @@ static void automount_enter_runnning(Automount *a) { /* We don't take mount requests anymore if we are supposed to * shut down anyway */ - if (a->meta.job && a->meta.job->type == JOB_STOP) { + if (unit_pending_inactive(UNIT(a))) { + log_debug("Suppressing automount request on %s since unit stop is scheduled.", a->meta.id); automount_send_ready(a, -EHOSTDOWN); return; }