Lines Matching full:flat

137     bool flat;  member
529 BdrvChild *file, bool flat, int64_t sectors, in vmdk_add_extent() argument
576 extent->flat = flat; in vmdk_add_extent()
583 extent->cluster_sectors = flat ? sectors : cluster_sectors; in vmdk_add_extent()
1172 * RW [size in sectors] FLAT "file-name.vmdk" OFFSET in vmdk_parse_extents()
1183 } else if (!strcmp(type, "FLAT")) { in vmdk_parse_extents()
1198 (strcmp(type, "FLAT") && strcmp(type, "SPARSE") && in vmdk_parse_extents()
1227 if (strcmp(type, "FLAT") != 0 && strcmp(type, "VMFS") != 0) { in vmdk_parse_extents()
1228 /* non-flat extents have metadata */ in vmdk_parse_extents()
1243 if (!strcmp(type, "FLAT") || !strcmp(type, "VMFS")) { in vmdk_parse_extents()
1244 /* FLAT extent */ in vmdk_parse_extents()
1431 if (!s->extents[i].flat) { in vmdk_refresh_limits()
1568 * For flat extents, the start offset as parsed from the description file is
1600 if (extent->flat) { in get_cluster_offset()
1814 if (extent->flat) { in vmdk_co_block_status()
2216 vmdk_init_extent(BlockBackend *blk, int64_t filesize, bool flat, bool compress, in vmdk_init_extent() argument
2225 if (flat) { in vmdk_init_extent()
2328 vmdk_create_extent(const char *filename, int64_t filesize, bool flat, in vmdk_create_extent() argument
2350 ret = vmdk_init_extent(blk, filesize, flat, compress, zeroed_grain, errp); in vmdk_create_extent()
2409 (*vmdk_create_extent_fn)(int64_t size, int idx, bool flat, bool split,
2443 bool flat, split, compress; in vmdk_co_do_create() local
2500 flat = (subformat == BLOCKDEV_VMDK_SUBFORMAT_MONOLITHICFLAT) || in vmdk_co_do_create()
2504 if (flat) { in vmdk_co_do_create()
2505 extent_line_fmt = "RW %" PRId64 " FLAT \"%s\" 0\n"; in vmdk_co_do_create()
2509 if (flat && backing_file) { in vmdk_co_do_create()
2510 error_setg(errp, "Flat image can't have backing file"); in vmdk_co_do_create()
2514 if (flat && zeroed_grain) { in vmdk_co_do_create()
2515 error_setg(errp, "Flat image can't enable zeroed grain"); in vmdk_co_do_create()
2526 if (!split && !flat) { in vmdk_co_do_create()
2532 blk = extent_fn(created_size, 0, flat, split, compress, zeroed_grain, in vmdk_co_do_create()
2538 if (!split && !flat) { in vmdk_co_do_create()
2585 extent_blk = extent_fn(cur_size, extent_idx, flat, split, compress, in vmdk_co_do_create()
2599 extent_blk = extent_fn(-1, extent_idx, flat, split, compress, zeroed_grain, in vmdk_co_do_create()
2623 if (!split && !flat) { in vmdk_co_do_create()
2659 vmdk_co_create_opts_cb(int64_t size, int idx, bool flat, bool split, in vmdk_co_create_opts_cb() argument
2680 flat ? 'f' : 's', idx, data->postfix); in vmdk_co_create_opts_cb()
2683 rel_filename = g_strdup_printf("%s-flat%s", data->prefix, data->postfix); in vmdk_co_create_opts_cb()
2690 flat, compress, zeroed_grain, &blk, data->opts, in vmdk_co_create_opts_cb()
2810 vmdk_co_create_cb(int64_t size, int idx, bool flat, bool split, bool compress, in vmdk_co_create_cb() argument
2851 ret = vmdk_init_extent(blk, size, flat, compress, zeroed_grain, errp); in vmdk_co_create_cb()
2925 /* If has a flat extent and its underlying storage doesn't have zero init, in vmdk_has_zero_init()
2928 if (s->extents[i].flat) { in vmdk_has_zero_init()
2949 .has_cluster_size = !extent->flat, in vmdk_get_extent_info()
3045 return a->flat == b->flat && in vmdk_extents_type_eq()
3047 (a->flat || a->cluster_sectors == b->cluster_sectors); in vmdk_extents_type_eq()
3064 if (!s->extents[0].flat) { in vmdk_co_get_info()
3134 "VMDK flat extent format, can be one of "