Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-07-22 | Merge pull request #3777 from poettering/id128-rework | Zbigniew Jędrzejewski-Szmek | |
uuid/id128 code rework | |||
2016-07-22 | core: support percentage specifications on TasksMax= | Lennart Poettering | |
This adds support for a TasksMax=40% syntax for specifying values relative to the system's configured maximum number of processes. This is useful in order to neatly subdivide the available room for tasks within containers. | |||
2016-07-22 | sd-id128: split UUID file read/write code into new id128-util.[ch] | Lennart Poettering | |
We currently have code to read and write files containing UUIDs at various places. Unify this in id128-util.[ch], and move some other stuff there too. The new files are located in src/libsystemd/sd-id128/ (instead of src/shared/), because they are actually the backend of sd_id128_get_machine() and sd_id128_get_boot(). In follow-up patches we can use this reduce the code in nspawn and machine-id-setup by adopted the common implementation. | |||
2016-06-14 | util: introduce physical_memory_scale() to unify how we scale by physical memory | Lennart Poettering | |
The various bits of code did the scaling all different, let's unify this, given that the code is not trivial. | |||
2016-06-14 | util: when determining the amount of memory on this system, take cgroup ↵ | Lennart Poettering | |
limit into account When determining the amount of RAM in the system, let's make sure we also read the root-level cgroup memory limit into account. This isn't particularly useful on the host, but in containers it makes sure that whatever memory the container got assigned is actually used for RAM size calculations. | |||
2016-06-13 | core: parse `rd.rescue` and `rd.emergency` as initrd-specific shorthands (#3488) | Ivan Shapovalov | |
Typing `rd.rescue` is easier than `rd.systemd.unit=rescue.target`. | |||
2016-04-28 | tree-wide: rename hidden_file to hidden_or_backup_file and optimize | Zbigniew Jędrzejewski-Szmek | |
In standard linux parlance, "hidden" usually means that the file name starts with ".", and nothing else. Rename the function to convey what the function does better to casual readers. Stop exposing hidden_file_allow_backup which is rather ugly and rewrite hidden_file to extract the suffix first. Note that hidden_file_allow_backup excluded files with "~" at the end, which is quite confusing. Let's get rid of it before it gets used in the wrong place. | |||
2016-04-13 | basic/util: silence stupid gcc warnings about unitialized variable | Zbigniew Jędrzejewski-Szmek | |
2016-04-12 | core: rework reboot parameter logic a bit | Lennart Poettering | |
Always warn if something fails, and clarify that the involved utility functions do so in their name. Drop the REBOOT_PARAM_FILE macro. We don't do this for other flag file paths like this, so don't do this for this one either. The path isn't configurable anyway, hence let's make this easier to read by avoiding this one indirection. | |||
2016-04-12 | core: be more paranoid when mixing umask and fopen() | Lennart Poettering | |
Let's be extra careful with the umask when we use simple fopen(), as this creates files with 0777 by default. | |||
2016-04-08 | basic/util: check return value of dup2 in fork_agent() | Zbigniew Jędrzejewski-Szmek | |
CID #1304689. | |||
2016-02-10 | tree-wide: remove Emacs lines from all files | Daniel Mack | |
This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file. | |||
2016-01-13 | tree-wide: check if errno is greater than zero (2) | Zbigniew Jędrzejewski-Szmek | |
Compare errno with zero in a way that tells gcc that (if the condition is true) errno is positive. | |||
2015-12-01 | basic: re-sort includes | Thomas Hindoe Paaboel Andersen | |
My previous patch to only include what we use accidentially placed the added inlcudes in non-sorted order. | |||
2015-11-30 | basic: include only what we use | Thomas Hindoe Paaboel Andersen | |
This is a cleaned up result of running iwyu but without forward declarations on src/basic. | |||
2015-11-17 | tree-wide: use right cast macros for UIDs, GIDs and PIDs | Lennart Poettering | |
2015-11-16 | tree-wide: sort includes | Thomas Hindoe Paaboel Andersen | |
Sort the includes accoding to the new coding style. | |||
2015-10-27 | util-lib: move fdname_is_valid() to fd-util.[ch] | Lennart Poettering | |
2015-10-27 | process-util: move a couple of process-related calls over | Lennart Poettering | |
2015-10-27 | process-util: actually move rename_process() over | Lennart Poettering | |
The prototype was moved long ago, actually move the definition over now, too. | |||
2015-10-27 | mount-util: move fstype_is_network() and name_to_handle_at() definitions over | Lennart Poettering | |
2015-10-27 | util-lib: split out allocation calls into alloc-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out globbing related calls into glob-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move web-related calls into web-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out syslog-related calls into syslog-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move running_in_chroot() into virt.[ch] | Lennart Poettering | |
It's a very weak kind of virtualization, after all. | |||
2015-10-27 | util-lib: move /proc/cmdline parsing code to proc-cmdline.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move is_main_thread() to process-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move more locale-related calls to locale-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move string table stuff into its own string-table.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split stat()/statfs()/stavfs() related calls into stat-util.[ch] | Lennart Poettering | |
2015-10-27 | util: move string_is_safe() to string-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move a number of fs operations into fs-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out file attribute calls to chattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split xattr-related calls into xattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: introduce dirent-util.[ch] for directory entry calls | Lennart Poettering | |
Also, move a couple of more path-related functions to path-util.c. | |||
2015-10-27 | util-lib: split out resource limits related calls into rlimit-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move take_password_lock() to user-util.[ch] | Lennart Poettering | |
Also, rename it take_etc_passwd_lock(), in order to make it more expressive. | |||
2015-10-27 | util: move filename_is_valid() and path_is_safe() to path-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move mount related utility calls to mount-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move fstab_node_to_udev_node() to fstab-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move more file I/O related calls into fileio.[ch] | Lennart Poettering | |
2015-10-27 | util: remove path_get_parent(), in favour of dirname_malloc() | Lennart Poettering | |
We don't need two functions that do essentialy the same, hence drop path_get_parent(), and stick to dirname_malloc(), but move it to path-util.[ch]. | |||
2015-10-27 | util-lib: split out hex/dec/oct encoding/decoding into its own file | Lennart Poettering | |
2015-10-27 | util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] | Lennart Poettering | |
2015-10-26 | process-util: move more process related calls to process-util.[ch] | Lennart Poettering | |
2015-10-26 | socket-util: move remaining socket-related calls from util.[ch] to ↵ | Lennart Poettering | |
socket-util.[ch] | |||
2015-10-26 | util-lib: split out user/group/uid/gid calls into user-util.[ch] | Lennart Poettering | |
2015-10-26 | util-lib: split out IO related calls to io-util.[ch] | Lennart Poettering | |
2015-10-25 | util-lib: split out fd-related operations into fd-util.[ch] | Lennart Poettering | |
There are more than enough to deserve their own .c file, hence move them over. |