Skip to content
Commit 7a649737 authored by Minfei Huang's avatar Minfei Huang Committed by Jens Axboe
Browse files

loop: Make user notify for adding loop device failed



There is no error number returned if loop driver fails in function
alloc_disk to add new loop device. Add a correct error number to make
user notify in this case.

Signed-off-by: default avatarMinfei Huang <mnghuan@gmail.com>
Reviewed-by: default avatarMing Lei <tom.leiming@gmail.com>
Reviewed-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 6eae8c45
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment