mirror of https://gitlab.com/qemu-project/qemu
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>
This commit is contained in:
parent
d134cf73b1
commit
0789890467
|
@ -35,7 +35,7 @@
|
||||||
#define HEADER_SIZE 64
|
#define HEADER_SIZE 64
|
||||||
|
|
||||||
// always little-endian
|
// always little-endian
|
||||||
struct parallels_header {
|
typedef struct ParallelsHeader {
|
||||||
char magic[16]; // "WithoutFreeSpace"
|
char magic[16]; // "WithoutFreeSpace"
|
||||||
uint32_t version;
|
uint32_t version;
|
||||||
uint32_t heads;
|
uint32_t heads;
|
||||||
|
@ -46,7 +46,7 @@ struct parallels_header {
|
||||||
uint32_t inuse;
|
uint32_t inuse;
|
||||||
uint32_t data_off;
|
uint32_t data_off;
|
||||||
char padding[12];
|
char padding[12];
|
||||||
} QEMU_PACKED;
|
} QEMU_PACKED ParallelsHeader;
|
||||||
|
|
||||||
typedef struct BDRVParallelsState {
|
typedef struct BDRVParallelsState {
|
||||||
CoMutex lock;
|
CoMutex lock;
|
||||||
|
@ -61,7 +61,7 @@ typedef struct BDRVParallelsState {
|
||||||
|
|
||||||
static int parallels_probe(const uint8_t *buf, int buf_size, const char *filename)
|
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)
|
if (buf_size < HEADER_SIZE)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -79,7 +79,7 @@ static int parallels_open(BlockDriverState *bs, QDict *options, int flags,
|
||||||
{
|
{
|
||||||
BDRVParallelsState *s = bs->opaque;
|
BDRVParallelsState *s = bs->opaque;
|
||||||
int i;
|
int i;
|
||||||
struct parallels_header ph;
|
ParallelsHeader ph;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
bs->read_only = 1; // no write support yet
|
bs->read_only = 1; // no write support yet
|
||||||
|
|
Loading…
Reference in New Issue