Liu Yuan 833a7cc36e 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>
2015-03-10 14:02:23 +01:00
..
2015-01-13 11:47:56 +00:00
2015-03-10 14:02:21 +01:00
2015-02-06 17:24:21 +01:00
2015-02-16 14:36:03 +00:00
2014-12-10 10:31:19 +01:00
2014-11-03 11:41:47 +00:00
2015-02-06 17:24:21 +01:00
2015-02-16 15:07:19 +00:00
2014-12-12 13:16:56 +00:00
2014-08-15 15:07:14 +02:00
2015-02-16 15:07:17 +00:00