Yu Watanabe
db9ecf0501
license: LGPL-2.1+ -> LGPL-2.1-or-later
2020-11-09 13:23:58 +09:00
Frantisek Sumsal
d7a0f1f4f9
tree-wide: assorted coccinelle fixes
2020-10-09 15:02:23 +02:00
Benjamin Robin
20c3acfaad
tree-wide: Replace assert() by assert_se() when there is side effect
2020-05-10 09:23:12 +02:00
Benjamin Robin
f391597c67
tree-wide: Fix, replace assert() by assert_se() when there is side effect
2020-05-06 23:03:25 +02:00
Zbigniew Jędrzejewski-Szmek
8c227e7f2b
Drop RATELIMIT macros
...
Using plain structure initialization is both shorter _and_ more clearer.
We get type safety for free.
2019-09-20 16:05:53 +02:00
Yu Watanabe
270384b2d4
tree-wide: replace strjoina() with prefix_roota()
2019-06-25 01:31:26 +09:00
Yu Watanabe
aa89266900
util: introduce format_bytes_full()
...
And move it into format-util.c.
2019-06-19 23:15:19 +09:00
Lennart Poettering
dc90e0faae
basic: add new helper call empty_or_dash_to_null()
...
We have a function like this at two places already. Let's unify it in
one generic location and let's port a number of users over.
2019-04-08 12:11:11 +02:00
Lennart Poettering
e7b88b7bc1
tree-wide: introduce empty_or_dash() helper
...
At quite a few places we check isempty() || streq(…, "-"), let's add a
helper to simplify that, and replace that by a single function call.
2019-04-08 12:03:33 +02:00
Zbigniew Jędrzejewski-Szmek
ca78ad1de9
headers: remove unneeded includes from util.h
...
This means we need to include many more headers in various files that simply
included util.h before, but it seems cleaner to do it this way.
2019-03-27 11:53:12 +01:00
Lennart Poettering
e4de72876e
util-lib: split out all temporary file related calls into tmpfiles-util.c
...
This splits out a bunch of functions from fileio.c that have to do with
temporary files. Simply to make the header files a bit shorter, and to
group things more nicely.
No code changes, just some rearranging of source files.
2018-12-02 13:22:29 +01:00
Lennart Poettering
e21b7229ff
import: rerrange tarball/fs imports that have a single top-level directory containing the OS tree
...
Let's handle tarball imports nicer that have a single top-level
directory containing the OS tree: let's move everything down during
import, so that the OS tree is ready to use automatically.
Fixes : #2116
2018-11-26 18:09:01 +01:00
Lennart Poettering
1d7579c473
machine: add support for importing containers from plain directories
...
Fixes : #2728
This is also supposed to be preparation for doing #10234 eventually,
where a very similar operation is requested: instead of importing a tree
to /var/lib/machines it would need to be imported into
/var/lib/portables/.
2018-11-26 18:09:01 +01:00