]> git.proxmox.com Git - mirror_qemu.git/commit
sheepdog: fix confused return values
authorLiu Yuan <liuyuan@cmss.chinamobile.com>
Wed, 18 Feb 2015 03:57:55 +0000 (11:57 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:02:23 +0000 (14:02 +0100)
commit833a7cc36e63653641558ba27148076f9a32062f
treea0daafb1344b0547457472bfe45947d554794a63
parente0c59cc7608f84fcaddc827e05d38af8d10447a3
sheepdog: fix confused return values

These functions mix up -1 and -errno in return values and would might cause
trouble error handling in the call chain.

This patch let them return -errno and add some comments.

Cc: qemu-devel@nongnu.org
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Liu Yuan <liuyuan@cmss.chinamobile.com>
Message-id: 1424231875-7131-1-git-send-email-namei.unix@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c