sheepdog: check if '-o redundancy' is passed from user
authorLiu Yuan <namei.unix@gmail.com>
Sun, 8 Dec 2013 16:11:20 +0000 (00:11 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 13 Dec 2013 13:49:50 +0000 (14:49 +0100)
commita3120deee5fc1d702ba5da98fd9c845ad1c8f301
tree2920245681d7674ba597cc87f4c99463c54a1ec4
parent47acdd63a33a5966bf4fc94a6ac835d72a70c555
sheepdog: check if '-o redundancy' is passed from user

This fix a segfault (that is caused by b3af018f3) of following command:

$ qemu-img convert some_img sheepdog:some_img

Cc: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c