chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: add global settings for enabling CPUAccounting=, MemoryAccounting=, BlockIOAcco...
[elogind.git]
/
src
/
core
/
mount.c
diff --git
a/src/core/mount.c
b/src/core/mount.c
index a0cea1e7d492ee1bf50a5a6f8eec2dd608f79051..814674a02d09f626420e9b75034877e197b20834 100644
(file)
--- a/
src/core/mount.c
+++ b/
src/core/mount.c
@@
-141,6
+141,8
@@
static void mount_init(Unit *u) {
kill_context_init(&m->kill_context);
cgroup_context_init(&m->cgroup_context);
kill_context_init(&m->kill_context);
cgroup_context_init(&m->cgroup_context);
+ unit_cgroup_context_init_defaults(u, &m->cgroup_context);
+
if (unit_has_name(u, "-.mount")) {
/* Don't allow start/stop for root directory */
u->refuse_manual_start = true;
if (unit_has_name(u, "-.mount")) {
/* Don't allow start/stop for root directory */
u->refuse_manual_start = true;
@@
-577,7
+579,7
@@
static int mount_add_extras(Mount *m) {
if (r < 0)
return r;
if (r < 0)
return r;
- r = unit_exec_context_defaults(u, &m->exec_context);
+ r = unit_exec_context_
patch_
defaults(u, &m->exec_context);
if (r < 0)
return r;
if (r < 0)
return r;