001/* 002 * To change this license header, choose License Headers in Project Properties. 003 * To change this template file, choose Tools | Templates 004 * and open the template in the editor. 005 */ 006package org.anarres.qemu.image; 007 008import com.fasterxml.jackson.annotation.JsonProperty; 009import java.io.File; 010 011/** 012 * 013 * @author shevek 014 */ 015public class QEmuImageInfo { 016 017 public static class FormatSpecific { 018 } 019 020 public static class Qcow2FormatSpecific { 021 022 @JsonProperty("lazy-refcounts") 023 public boolean lazyRefcounts; 024 } 025 026 @JsonProperty("filename") 027 public File file; 028 @JsonProperty("format") 029 public QEmuImageFormat format; 030 @JsonProperty("virtual-size") 031 public long virtualSize; 032 @JsonProperty("actual-size") 033 public long actualSize; 034 @JsonProperty("dirty-flag") 035 public boolean dirty; 036 037 /** qcow2 and vdi. */ 038 @JsonProperty("cluster-size") 039 public int clusterSize; 040 /** qcow2 only?. */ 041 @JsonProperty("full-backing-filename") 042 public String backingFilenameFull; 043 @JsonProperty("backing-filename") 044 public String backingFilename; 045 046}