Home
last modified time | relevance | path

Searched refs:catalog_size (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/block/
H A Dbochs.c74 uint32_t catalog_size; member
147 s->catalog_size = le32_to_cpu(bochs.catalog); in bochs_open()
148 if (s->catalog_size > 0x100000) { in bochs_open()
153 s->catalog_bitmap = g_try_new(uint32_t, s->catalog_size); in bochs_open()
154 if (s->catalog_size && s->catalog_bitmap == NULL) { in bochs_open()
159 ret = bdrv_pread(bs->file, le32_to_cpu(bochs.header), s->catalog_size * 4, in bochs_open()
165 for (i = 0; i < s->catalog_size; i++) in bochs_open()
168 s->data_offset = le32_to_cpu(bochs.header) + (s->catalog_size * 4); in bochs_open()
191 if (s->catalog_size < DIV_ROUND_UP(bs->total_sectors, in bochs_open()