diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-19 09:12:15 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-28 17:42:37 +0900 |
commit | de3b7f168e13cffe6067d5a7b6df4f301c9b05b9 (patch) | |
tree | 728b75f1edae1c9c55df2c62bb625b141419b913 /src/gpt-auto-generator | |
parent | fd690a4b7fbb0c823c2b0df4d2096a1b441f7482 (diff) | |
download | systemd-de3b7f168e13cffe6067d5a7b6df4f301c9b05b9.tar.gz |
loop-util: rename loop_device_open() -> loop_device_open_from_path()
No functional changes, just preparation for later commits.
Diffstat (limited to 'src/gpt-auto-generator')
-rw-r--r-- | src/gpt-auto-generator/gpt-auto-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index 3155a7cb60..31377d877d 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -647,7 +647,7 @@ static int enumerate_partitions(dev_t devnum) { /* Let's take a LOCK_SH lock on the block device, in case udevd is already running. If we don't take * the lock, udevd might end up issuing BLKRRPART in the middle, and we don't want that, since that * might remove all partitions while we are operating on them. */ - r = loop_device_open(devname, O_RDONLY, LOCK_SH, &loop); + r = loop_device_open_from_path(devname, O_RDONLY, LOCK_SH, &loop); if (r < 0) return log_debug_errno(r, "Failed to open %s: %m", devname); |