diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-04-13 15:38:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-04-13 16:26:31 +0200 |
commit | 7176f06c9efea4b86f3f55e448fc80e16d43e54b (patch) | |
tree | 7143992013c291f643297d98ff003bf4bfbeaa1f /src/shared/loop-util.c | |
parent | c87c30780624df257ed96909a2286b2b933f8c44 (diff) | |
download | systemd-7176f06c9efea4b86f3f55e448fc80e16d43e54b.tar.gz |
basic: split out dev_t related calls into new devno-util.[ch]
No actual code changes, just splitting out of some dev_t handling
related calls from stat-util.[ch], they are quite a number already, and
deserve their own module now I think.
Also, try to settle on the name "devnum" as the name for the concept,
instead of "devno" or "dev" or "devid". "devnum" is the name exported in
udev APIs, hence probably best to stick to that. (this just renames a
few symbols to "devum", local variables are left untouched, to make the
patch not too invasive)
No actual code changes.
Diffstat (limited to 'src/shared/loop-util.c')
-rw-r--r-- | src/shared/loop-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index 39a9a766c0..530688fc97 100644 --- a/src/shared/loop-util.c +++ b/src/shared/loop-util.c @@ -18,6 +18,7 @@ #include "alloc-util.h" #include "blockdev-util.h" #include "device-util.h" +#include "devnum-util.h" #include "env-util.h" #include "errno-util.h" #include "fd-util.h" @@ -876,7 +877,7 @@ static int resize_partition(int partition_fd, uint64_t offset, uint64_t size) { r = read_one_line_file(sysfs, &buffer); if (r < 0) return r; - r = parse_dev(buffer, &devno); + r = parse_devnum(buffer, &devno); if (r < 0) return r; |