Diff for /qemu/block/vpc.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2018/04/24 17:25:24 version 1.1.1.2, 2018/04/24 17:40:43
Line 1 Line 1
 /*  /*
  * Block driver for Conectix/Microsoft Virtual PC images   * Block driver for Connectix / Microsoft Virtual PC images
  *   *
  * Copyright (c) 2005 Alex Beregszaszi   * Copyright (c) 2005 Alex Beregszaszi
  * Copyright (c) 2009 Kevin Wolf <kwolf@suse.de>   * Copyright (c) 2009 Kevin Wolf <kwolf@suse.de>
Line 511  static int vpc_create(const char *filena Line 511  static int vpc_create(const char *filena
     // Prepare the Hard Disk Footer      // Prepare the Hard Disk Footer
     memset(buf, 0, 1024);      memset(buf, 0, 1024);
   
     strncpy(footer->creator, "conectix", 8);      memcpy(footer->creator, "conectix", 8);
     // TODO Check if "qemu" creator_app is ok for VPC      // TODO Check if "qemu" creator_app is ok for VPC
     strncpy(footer->creator_app, "qemu", 4);      memcpy(footer->creator_app, "qemu", 4);
     strncpy(footer->creator_os, "Wi2k", 4);      memcpy(footer->creator_os, "Wi2k", 4);
   
     footer->features = be32_to_cpu(0x02);      footer->features = be32_to_cpu(0x02);
     footer->version = be32_to_cpu(0x00010000);      footer->version = be32_to_cpu(0x00010000);
Line 563  static int vpc_create(const char *filena Line 563  static int vpc_create(const char *filena
     // Prepare the Dynamic Disk Header      // Prepare the Dynamic Disk Header
     memset(buf, 0, 1024);      memset(buf, 0, 1024);
   
     strncpy(dyndisk_header->magic, "cxsparse", 8);      memcpy(dyndisk_header->magic, "cxsparse", 8);
   
     dyndisk_header->data_offset = be64_to_cpu(0xFFFFFFFF);      dyndisk_header->data_offset = be64_to_cpu(0xFFFFFFFF);
     dyndisk_header->table_offset = be64_to_cpu(3 * 512);      dyndisk_header->table_offset = be64_to_cpu(3 * 512);

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


unix.superglobalmegacorp.com