forked from pool/systemd
bbba62be60
- Add or port upstream bugfix patches: 0001-Fix-systemd-stdio-bridge-symlink.patch 0002-execute-free-directory-path-if-we-fail-to-remove-it-.patch 0003-Do-not-print-invalid-UTF-8-in-error-messages.patch 0004-man-document-missing-options-of-systemd-run.patch 0005-systemd-run-add-some-extra-safety-checks.patch 0006-journal-assume-that-next-entry-is-after-previous-ent.patch 0007-journal-forget-file-after-encountering-an-error.patch 0008-core-correctly-unregister-PIDs-from-PID-hashtables.patch 0009-logind-fix-reference-to-systemd-user-sessions.servic.patch 0010-man-update-link-to-LSB.patch 0011-man-systemd-bootchart-fix-spacing-in-command.patch 0012-man-add-missing-comma.patch 0013-units-Do-not-unescape-instance-name-in-systemd-backl.patch - Add linker scripts as place holder of the old systemd shared libraries now all included in libsystemd.so (bnc#867128) - Make patch 1006-udev-always-rename-network.patch work again and add it again. - address missing owner functionality in systemd-tmpfiles (fate#314974) 1022-systemd-tmpfiles-ownerkeep.patch - Generate the bash completion files on the fly for the case of not having the package bash-completion around - Add or port upstream bugfix patches: 0001-nspawn-fix-detection-of-missing-proc-self-loginuid.patch 0002-cdrom_id-use-the-old-MMC-fallback.patch 0003-journalctl-refuse-extra-arguments-with-verify-and-si.patch OBS-URL: https://build.opensuse.org/request/show/225408 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=177
71 lines
2.1 KiB
Diff
71 lines
2.1 KiB
Diff
From ff5f34d08c191c326c41a083745522383ac86cae Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Wed, 26 Feb 2014 04:27:50 +0100
|
|
Subject: [PATCH] mount: don't send out PropertiesChanged message if actually
|
|
nothing got changed
|
|
|
|
---
|
|
src/core/mount.c | 15 ++++++++++++---
|
|
1 file changed, 12 insertions(+), 3 deletions(-)
|
|
|
|
diff --git src/core/mount.c src/core/mount.c
|
|
index b35e507..98812c9 100644
|
|
--- src/core/mount.c
|
|
+++ src/core/mount.c
|
|
@@ -1390,7 +1390,7 @@ static int mount_add_one(
|
|
_cleanup_free_ char *e = NULL, *w = NULL, *o = NULL, *f = NULL;
|
|
bool load_extras = false;
|
|
MountParameters *p;
|
|
- bool delete;
|
|
+ bool delete, changed = false;
|
|
Unit *u;
|
|
int r;
|
|
|
|
@@ -1458,6 +1458,7 @@ static int mount_add_one(
|
|
}
|
|
|
|
unit_add_to_load_queue(u);
|
|
+ changed = true;
|
|
} else {
|
|
delete = false;
|
|
|
|
@@ -1476,6 +1477,7 @@ static int mount_add_one(
|
|
/* Load in the extras later on, after we
|
|
* finished initialization of the unit */
|
|
load_extras = true;
|
|
+ changed = true;
|
|
}
|
|
}
|
|
|
|
@@ -1488,10 +1490,16 @@ static int mount_add_one(
|
|
}
|
|
|
|
p = &MOUNT(u)->parameters_proc_self_mountinfo;
|
|
+
|
|
+ changed = changed ||
|
|
+ !streq_ptr(p->options, options) ||
|
|
+ !streq_ptr(p->what, what) ||
|
|
+ !streq_ptr(p->fstype, fstype);
|
|
+
|
|
if (set_flags) {
|
|
MOUNT(u)->is_mounted = true;
|
|
MOUNT(u)->just_mounted = !MOUNT(u)->from_proc_self_mountinfo;
|
|
- MOUNT(u)->just_changed = !streq_ptr(p->options, o);
|
|
+ MOUNT(u)->just_changed = changed;
|
|
}
|
|
|
|
MOUNT(u)->from_proc_self_mountinfo = true;
|
|
@@ -1514,7 +1522,8 @@ static int mount_add_one(
|
|
goto fail;
|
|
}
|
|
|
|
- unit_add_to_dbus_queue(u);
|
|
+ if (changed)
|
|
+ unit_add_to_dbus_queue(u);
|
|
|
|
return 0;
|
|
|
|
--
|
|
1.7.9.2
|
|
|