aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2015-04-28 10:46:35 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2015-05-22 09:37:31 +0100
commit0789890467d30e2ab10d84b5398bdc903db8cb91 (patch)
tree6086142cc714f5139f2fb6d96fde589d5070b9c2 /block
parentd134cf73b10e9d0283e1d2531299c8f9ab13b5eb (diff)
block/parallels: rename parallels_header to ParallelsHeader
this follows QEMU coding convention Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Roman Kagan <rkagan@parallels.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1430207220-24458-3-git-send-email-den@openvz.org CC: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/parallels.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block/parallels.c b/block/parallels.c
index 4f9cd8dd23..dca0df6f77 100644
--- a/block/parallels.c
+++ b/block/parallels.c
@@ -35,7 +35,7 @@
#define HEADER_SIZE 64
// always little-endian
-struct parallels_header {
+typedef struct ParallelsHeader {
char magic[16]; // "WithoutFreeSpace"
uint32_t version;
uint32_t heads;
@@ -46,7 +46,7 @@ struct parallels_header {
uint32_t inuse;
uint32_t data_off;
char padding[12];
-} QEMU_PACKED;
+} QEMU_PACKED ParallelsHeader;
typedef struct BDRVParallelsState {
CoMutex lock;
@@ -61,7 +61,7 @@ typedef struct BDRVParallelsState {
static int parallels_probe(const uint8_t *buf, int buf_size, const char *filename)
{
- const struct parallels_header *ph = (const void *)buf;
+ const ParallelsHeader *ph = (const void *)buf;
if (buf_size < HEADER_SIZE)
return 0;
@@ -79,7 +79,7 @@ static int parallels_open(BlockDriverState *bs, QDict *options, int flags,
{
BDRVParallelsState *s = bs->opaque;
int i;
- struct parallels_header ph;
+ ParallelsHeader ph;
int ret;
bs->read_only = 1; // no write support yet