mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
shared/loop-util: rename function
As suggested in https://github.com/systemd/systemd/pull/14261#pullrequestreview-332398625.
This commit is contained in:
parent
7a670b1dd9
commit
1b49e3e3c4
@ -29,7 +29,7 @@ static void cleanup_clear_loop_close(int *fd) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int loop_device_make_full(
|
int loop_device_make(
|
||||||
int fd,
|
int fd,
|
||||||
int open_flags,
|
int open_flags,
|
||||||
uint64_t offset,
|
uint64_t offset,
|
||||||
@ -166,7 +166,7 @@ int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_fla
|
|||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
return loop_device_make_full(fd, open_flags, 0, 0, loop_flags, ret);
|
return loop_device_make(fd, open_flags, 0, 0, loop_flags, ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
LoopDevice* loop_device_unref(LoopDevice *d) {
|
LoopDevice* loop_device_unref(LoopDevice *d) {
|
||||||
|
@ -14,7 +14,7 @@ struct LoopDevice {
|
|||||||
bool relinquished;
|
bool relinquished;
|
||||||
};
|
};
|
||||||
|
|
||||||
int loop_device_make_full(int fd, int open_flags, uint64_t offset, uint64_t size, uint32_t loop_flags, LoopDevice **ret);
|
int loop_device_make(int fd, int open_flags, uint64_t offset, uint64_t size, uint32_t loop_flags, LoopDevice **ret);
|
||||||
int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_flags, LoopDevice **ret);
|
int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_flags, LoopDevice **ret);
|
||||||
int loop_device_open(const char *loop_path, int open_flags, LoopDevice **ret);
|
int loop_device_open(const char *loop_path, int open_flags, LoopDevice **ret);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user