summaryrefslogtreecommitdiffstats
path: root/src/shared/find-esp.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-02 17:28:03 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-02 17:42:31 +0200
commit4fe46c349d98aee5d880f65ebbf4e9e879138346 (patch)
treeb1adc6364163d3a10bebccffb868a4c449924d91 /src/shared/find-esp.c
parentMerge pull request #24491 from poettering/compare-order (diff)
downloadsystemd-4fe46c349d98aee5d880f65ebbf4e9e879138346.tar.xz
systemd-4fe46c349d98aee5d880f65ebbf4e9e879138346.zip
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.
Diffstat (limited to 'src/shared/find-esp.c')
-rw-r--r--src/shared/find-esp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c
index d21b6742b9..61831c2dc8 100644
--- a/src/shared/find-esp.c
+++ b/src/shared/find-esp.c
@@ -45,7 +45,7 @@ static int verify_esp_blkid(
const char *v;
int r;
- r = devpath_from_devnum(S_IFBLK, devid, &node);
+ r = devname_from_devnum(S_IFBLK, devid, &node);
if (r < 0)
return log_error_errno(r, "Failed to get device path for " DEVNUM_FORMAT_STR ": %m", DEVNUM_FORMAT_VAL(devid));
@@ -508,7 +508,7 @@ static int verify_xbootldr_blkid(
const char *type, *v;
int r;
- r = devpath_from_devnum(S_IFBLK, devid, &node);
+ r = devname_from_devnum(S_IFBLK, devid, &node);
if (r < 0)
return log_error_errno(r, "Failed to get block device path for " DEVNUM_FORMAT_STR ": %m",
DEVNUM_FORMAT_VAL(devid));