Revision 99cce9fa block/vdi.c

b/block/vdi.c
87 87
#define MiB     (KiB * KiB)
88 88

  
89 89
#define SECTOR_SIZE 512
90
#define DEFAULT_CLUSTER_SIZE (1 * MiB)
90 91

  
91 92
#if defined(CONFIG_VDI_DEBUG)
92 93
#define logout(fmt, ...) \
......
803 804
    int result = 0;
804 805
    uint64_t bytes = 0;
805 806
    uint32_t blocks;
806
    size_t block_size = 1 * MiB;
807
    size_t block_size = DEFAULT_CLUSTER_SIZE;
807 808
    uint32_t image_type = VDI_TYPE_DYNAMIC;
808 809
    VdiHeader header;
809 810
    size_t i;
......
921 922
    {
922 923
        .name = BLOCK_OPT_CLUSTER_SIZE,
923 924
        .type = OPT_SIZE,
924
        .help = "VDI cluster (block) size"
925
        .help = "VDI cluster (block) size",
926
        .value = { .n = DEFAULT_CLUSTER_SIZE },
925 927
    },
926 928
#endif
927 929
#if defined(CONFIG_VDI_STATIC_IMAGE)

Also available in: Unified diff