mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
mount: don't fire PropertiesChanged signals for mounts that are stopped
This commit is contained in:
parent
ff5f34d08c
commit
aef831369c
@ -1679,20 +1679,20 @@ static int mount_dispatch_io(sd_event_source *source, int fd, uint32_t revents,
|
||||
Mount *mount = MOUNT(u);
|
||||
|
||||
if (!mount->is_mounted) {
|
||||
/* This has just been unmounted. */
|
||||
|
||||
mount->from_proc_self_mountinfo = false;
|
||||
|
||||
switch (mount->state) {
|
||||
|
||||
case MOUNT_MOUNTED:
|
||||
/* This has just been unmounted by
|
||||
* somebody else, follow the state
|
||||
* change. */
|
||||
mount_enter_dead(mount, MOUNT_SUCCESS);
|
||||
break;
|
||||
|
||||
default:
|
||||
mount_set_state(mount, mount->state);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
} else if (mount->just_mounted || mount->just_changed) {
|
||||
@ -1703,6 +1703,9 @@ static int mount_dispatch_io(sd_event_source *source, int fd, uint32_t revents,
|
||||
|
||||
case MOUNT_DEAD:
|
||||
case MOUNT_FAILED:
|
||||
/* This has just been mounted by
|
||||
* somebody else, follow the state
|
||||
* change. */
|
||||
mount_enter_mounted(mount, MOUNT_SUCCESS);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user