Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #103 from dm0-/v239-coreos
Browse files Browse the repository at this point in the history
Rebase v238 patches onto v239
  • Loading branch information
dm0- authored Jun 26, 2018
2 parents de7436b + cfeb6d4 commit cfcafdd
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
3 changes: 1 addition & 2 deletions man/systemd-system.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@
<listitem><para>Configure the default value for the per-unit <varname>TasksMax=</varname> setting. See
<citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for details. This setting applies to all unit types that support resource control settings, with the exception
of slice units. Defaults to 15%, which equals 4915 with the kernel's defaults on the host, but might be smaller
in OS containers.</para></listitem>
of slice units. Defaults to 100%.</para></listitem>
</varlistentry>

<varlistentry>
Expand Down
2 changes: 1 addition & 1 deletion man/systemd-update-done.service.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<varname>ConditionNeedsUpdate=</varname> (see
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>)
condition to make sure to run when <filename>/etc</filename> or
<filename>/var</filename> are older than <filename>/usr</filename>
<filename>/var</filename> aren't the same age as <filename>/usr</filename>
according to the modification times of the files described above.
This requires that updates to <filename>/usr</filename> are always
followed by an update of the modification time of
Expand Down
2 changes: 1 addition & 1 deletion man/systemd.unit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@
inverting the condition). This condition may be used to
conditionalize units on whether the specified directory
requires an update because <filename>/usr</filename>'s
modification time is newer than the stamp file
modification time differs from that of the stamp file
<filename>.updated</filename> in the specified directory. This
is useful to implement offline updates of the vendor operating
system resources in <filename>/usr</filename> that require
Expand Down
2 changes: 1 addition & 1 deletion src/basic/cgroup-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static inline bool CGROUP_BLKIO_WEIGHT_IS_OK(uint64_t x) {
}

/* Default resource limits */
#define DEFAULT_TASKS_MAX_PERCENTAGE 15U /* 15% of PIDs, 4915 on default settings */
#define DEFAULT_TASKS_MAX_PERCENTAGE 100U /* 100% of PIDs */
#define DEFAULT_USER_TASKS_MAX_PERCENTAGE 33U /* 33% of PIDs, 10813 on default settings */

typedef enum CGroupUnified {
Expand Down
2 changes: 1 addition & 1 deletion src/core/selinux-access.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

int mac_selinux_generic_access_check(sd_bus_message *message, const char *path, const char *permission, sd_bus_error *error);

#if HAVE_SELINUX
#if 0

#define mac_selinux_access_check(message, permission, error) \
mac_selinux_generic_access_check((message), NULL, (permission), (error))
Expand Down
2 changes: 1 addition & 1 deletion src/core/system.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#DefaultBlockIOAccounting=no
#DefaultMemoryAccounting=@MEMORY_ACCOUNTING_DEFAULT@
#DefaultTasksAccounting=yes
#DefaultTasksMax=15%
#DefaultTasksMax=100%
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
Expand Down
2 changes: 2 additions & 0 deletions src/network/networkd-network.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ static int network_load_one(Manager *manager, const char *filename) {

network->link_local = ADDRESS_FAMILY_IPV6;

network->ip_forward = _ADDRESS_FAMILY_BOOLEAN_INVALID;

network->ipv6_privacy_extensions = IPV6_PRIVACY_EXTENSIONS_NO;
network->ipv6_accept_ra = -1;
network->ipv6_dad_transmits = -1;
Expand Down
4 changes: 2 additions & 2 deletions src/network/wait-online/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ bool manager_all_configured(Manager *m) {
if (!l->state) {
log_debug("link %s has not yet been processed by udev",
l->ifname);
return false;
continue;
}

if (STR_IN_SET(l->state, "configuring", "pending")) {
log_debug("link %s is being processed by networkd",
l->ifname);
return false;
continue;
}

if (l->operational_state &&
Expand Down
4 changes: 2 additions & 2 deletions src/shared/condition.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ static int condition_test_needs_update(Condition *c) {
* First, compare seconds as they are always accurate...
*/
if (usr.st_mtim.tv_sec != other.st_mtim.tv_sec)
return usr.st_mtim.tv_sec > other.st_mtim.tv_sec;
return true;

/*
* ...then compare nanoseconds.
Expand Down Expand Up @@ -480,7 +480,7 @@ static int condition_test_needs_update(Condition *c) {
timespec_store(&other.st_mtim, timestamp);
}

return usr.st_mtim.tv_nsec > other.st_mtim.tv_nsec;
return usr.st_mtim.tv_nsec != other.st_mtim.tv_nsec;
}

static int condition_test_first_boot(Condition *c) {
Expand Down

0 comments on commit cfcafdd

Please sign in to comment.