]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: rename devpath_from_devnum() -> devname_from_devnum()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Sep 2022 15:28:03 +0000 (00:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Sep 2022 15:42:31 +0000 (00:42 +0900)
commit4fe46c349d98aee5d880f65ebbf4e9e879138346
treeb1adc6364163d3a10bebccffb868a4c449924d91
parent81e327c42c26b0a716fc75718e8d5fce8f6893e2
sd-device: rename devpath_from_devnum() -> devname_from_devnum()

In sd-device, `devpath` is a kind of syspath without '/sys' prefix, e.g.
/devices/pci0000:00/0000:00:1c.4/0000:3c:00.0/nvme/nvme0/nvme0n1,
and `devname` is a path to the device node, e.g. /dev/nvme0n1.

Let's use the consistent name for the helper function.
12 files changed:
src/core/swap.c
src/dissect/dissect.c
src/libsystemd/sd-device/device-util.c
src/libsystemd/sd-device/device-util.h
src/libsystemd/sd-device/test-sd-device.c
src/nspawn/nspawn-oci.c
src/partition/growfs.c
src/partition/repart.c
src/shared/find-esp.c
src/shared/quota-util.c
src/sysupdate/sysupdate-resource.c
src/udev/udevadm-lock.c