diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index 2aa4936965..9ec2f0c1ab 100644 --- a/src/shared/loop-util.c +++ b/src/shared/loop-util.c @@ -441,7 +441,7 @@ int loop_device_make( }; *ret = d; - return 0; + return d->fd; } int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_flags, LoopDevice **ret) {