Skip to content
Commit b51c83c2 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

rbd: return -ENOMEM instead of pool id if rbd_dev_create() fails



Returning pool id (i.e. >= 0) from a sysfs ->store() callback makes
userspace think it needs to retry the write.  Fix it - it's a leftover
from the times when the equivalent of rbd_dev_create() was the first
action in rbd_add().

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 343128ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment