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

version 1.1.1.1, 2018/04/24 16:37:52 version 1.1.1.2, 2018/04/24 16:38:25
Line 123  static int vmdk_open(BlockDriverState *b Line 123  static int vmdk_open(BlockDriverState *b
                   
         if (read(fd, &header, sizeof(header)) != sizeof(header))          if (read(fd, &header, sizeof(header)) != sizeof(header))
             goto fail;              goto fail;
         bs->total_sectors = le32_to_cpu(header.capacity);          bs->total_sectors = le64_to_cpu(header.capacity);
         s->cluster_sectors = le32_to_cpu(header.granularity);          s->cluster_sectors = le64_to_cpu(header.granularity);
         s->l2_size = le32_to_cpu(header.num_gtes_per_gte);          s->l2_size = le32_to_cpu(header.num_gtes_per_gte);
         s->l1_entry_sectors = s->l2_size * s->cluster_sectors;          s->l1_entry_sectors = s->l2_size * s->cluster_sectors;
         if (s->l1_entry_sectors <= 0)          if (s->l1_entry_sectors <= 0)

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


unix.superglobalmegacorp.com