sheepdog: explicitly set copies as type uint8_t
commit29a67f7e9204a25bc4b6221f287ad0ae38d8cbdc
authorLiu Yuan <namei.unix@gmail.com>
Wed, 23 Oct 2013 08:51:51 +0000 (23 16:51 +0800)
committerKevin Wolf <kwolf@redhat.com>
Mon, 28 Oct 2013 16:39:56 +0000 (28 17:39 +0100)
tree866053e18b4101eab63be524a6c77b255daa2e61
parent61ed2684539f7f31304e193d7c0e68d57ce6be88
sheepdog: explicitly set copies as type uint8_t

'copies' is actually uint8_t since day one, but request headers and some helper
functions parameterize it as uint32_t for unknown reasons and effectively
reserve 24 bytes for possible future use. This patch explicitly set the correct
for copies and reserve the left bytes.

This is a preparation patch that allow passing copy_policy in request header.

Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>
Acked-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c