]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/loop-util.c
basic: split out dev_t related calls into new devno-util.[ch]
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Apr 2022 13:38:21 +0000 (15:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Apr 2022 14:26:31 +0000 (16:26 +0200)
commit7176f06c9efea4b86f3f55e448fc80e16d43e54b
tree7143992013c291f643297d98ff003bf4bfbeaa1f
parentc87c30780624df257ed96909a2286b2b933f8c44
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.
39 files changed:
src/basic/devnum-util.c [new file with mode: 0644]
src/basic/devnum-util.h [new file with mode: 0644]
src/basic/meson.build
src/basic/parse-util.c
src/basic/parse-util.h
src/basic/stat-util.c
src/basic/stat-util.h
src/basic/terminal-util.c
src/boot/bless-boot.c
src/boot/bootctl.c
src/core/bpf-devices.c
src/core/cgroup.c
src/gpt-auto-generator/gpt-auto-generator.c
src/home/homed-manager.c
src/home/homework-luks.c
src/home/homework-quota.c
src/libsystemd/sd-device/sd-device.c
src/login/logind-session-dbus.c
src/login/logind-session.c
src/nspawn/nspawn-oci.c
src/partition/growfs.c
src/partition/repart.c
src/shared/blockdev-util.c
src/shared/bootspec.c
src/shared/find-esp.c
src/shared/loop-util.c
src/shared/quota-util.c
src/shared/quota-util.h
src/shared/sleep-config.c
src/sysext/sysext.c
src/sysupdate/sysupdate-resource.c
src/test/meson.build
src/test/test-devnum-util.c [new file with mode: 0644]
src/test/test-parse-util.c
src/test/test-stat-util.c
src/tmpfiles/tmpfiles.c
src/udev/udev-node.c
src/udev/udevadm-lock.c
src/volatile-root/volatile-root.c