&u->job_path);
}
+static int warn_deprecated(const char *field, const char *eq) {
+ log_warning("D-Bus property %s is deprecated, ignoring assignment: %s=%s", field, field, eq);
+ return 1;
+}
+
#define DEFINE_BUS_APPEND_PARSE_PTR(bus_type, cast_type, type, parse_func) \
static int bus_append_##parse_func( \
sd_bus_message *m, \
return 1;
}
- if (STR_IN_SET(field, "CPUAccounting",
- "MemoryAccounting",
+ if (STR_IN_SET(field, "MemoryAccounting",
"MemoryZSwapWriteback",
"IOAccounting",
"TasksAccounting",
* means use the default memory pressure duration from oomd.conf. */
return bus_append_parse_sec_rename(m, field, isempty(eq) ? "infinity" : eq);
+ if (STR_IN_SET(field,
+ "MemoryLimit",
+ "CPUShares",
+ "StartupCPUShares",
+ "BlockIOAccounting",
+ "BlockIOWeight",
+ "StartupBlockIOWeight",
+ "BlockIODeviceWeight",
+ "BlockIOReadBandwidth",
+ "BlockIOWriteBandwidth",
+ "CPUAccounting"))
+ return warn_deprecated(field, eq);
+
return 0;
}