loop-util: rename loop_device_open() -> loop_device_open_from_path()

No functional changes, just preparation for later commits.
This commit is contained in:
Yu Watanabe
2022-09-28 17:42:37 +09:00
parent fd690a4b7f
commit de3b7f168e
5 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ static int loop_device_make_internal(
/* If this is already a block device and we are supposed to cover the whole of it
* then store an fd to the original open device node — and do not actually create an
* unnecessary loopback device for it. */
return loop_device_open_full(NULL, fd, open_flags, lock_op, ret);
return loop_device_open_from_fd(fd, open_flags, lock_op, ret);
} else {
r = stat_verify_regular(&st);
if (r < 0)