Blame SOURCES/0692-set-automount-state-to-waiting-when-the-mount-is-sto.patch
|
|
c62b8e |
From 4b125d957a082250b83ff1bff775edefe90356de Mon Sep 17 00:00:00 2001
|
|
|
c62b8e |
From: David Tardon <dtardon@redhat.com>
|
|
|
c62b8e |
Date: Mon, 19 Nov 2018 15:58:27 +0100
|
|
|
c62b8e |
Subject: [PATCH] set automount state to waiting when the mount is stopped
|
|
|
c62b8e |
|
|
|
c62b8e |
Resolves: #1651257
|
|
|
c62b8e |
---
|
|
|
c62b8e |
src/core/automount.c | 2 ++
|
|
|
c62b8e |
1 file changed, 2 insertions(+)
|
|
|
c62b8e |
|
|
|
c62b8e |
diff --git a/src/core/automount.c b/src/core/automount.c
|
|
|
c62b8e |
index f57782b9b8..4678bdc7c9 100644
|
|
|
c62b8e |
--- a/src/core/automount.c
|
|
|
c62b8e |
+++ b/src/core/automount.c
|
|
|
c62b8e |
@@ -523,6 +523,8 @@ int automount_update_mount(Automount *a, MountState old_state, MountState state)
|
|
|
c62b8e |
if (old_state != state)
|
|
|
c62b8e |
automount_send_ready(a, a->tokens, -ENODEV);
|
|
|
c62b8e |
(void) sd_event_source_set_enabled(a->expire_event_source, SD_EVENT_OFF);
|
|
|
c62b8e |
+ if (a->state == AUTOMOUNT_RUNNING)
|
|
|
c62b8e |
+ automount_set_state(a, AUTOMOUNT_WAITING);
|
|
|
c62b8e |
break;
|
|
|
c62b8e |
default:
|
|
|
c62b8e |
break;
|