Home
last modified time | relevance | path

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

/openbmc/qemu/block/
H A Dthrottle.c184 static int throttle_reopen_prepare(BDRVReopenState *reopen_state, in throttle_reopen_prepare() argument
190 assert(reopen_state != NULL); in throttle_reopen_prepare()
191 assert(reopen_state->bs != NULL); in throttle_reopen_prepare()
194 reopen_state->opaque = group; in throttle_reopen_prepare()
200 BlockDriverState *bs = reopen_state->bs; in throttle_reopen_commit()
202 char *group = reopen_state->opaque; in throttle_reopen_commit()
210 g_free(reopen_state->opaque); in throttle_reopen_commit()
211 reopen_state->opaque = NULL; in throttle_reopen_commit()
214 static void throttle_reopen_abort(BDRVReopenState *reopen_state) in throttle_reopen_abort() argument
216 g_free(reopen_state->opaque); in throttle_reopen_abort()
[all …]
H A Dpreallocate.c228 static int preallocate_reopen_prepare(BDRVReopenState *reopen_state, in preallocate_reopen_prepare() argument
237 if (!preallocate_absorb_opts(opts, reopen_state->options, in preallocate_reopen_prepare()
238 reopen_state->bs->file->bs, errp)) { in preallocate_reopen_prepare()
248 if ((reopen_state->flags & BDRV_O_RDWR) == 0) { in preallocate_reopen_prepare()
249 ret = preallocate_drop_resize(reopen_state->bs, errp); in preallocate_reopen_prepare()
256 reopen_state->opaque = opts; in preallocate_reopen_prepare()
H A Draw-format.c141 static int raw_reopen_prepare(BDRVReopenState *reopen_state, in raw_reopen_prepare() argument
151 assert(reopen_state != NULL); in raw_reopen_prepare()
152 assert(reopen_state->bs != NULL); in raw_reopen_prepare()
154 reopen_state->opaque = g_new0(BDRVRawState, 1); in raw_reopen_prepare()
156 ret = raw_read_options(reopen_state->options, &offset, &has_size, &size, in raw_reopen_prepare()
162 ret = raw_apply_options(reopen_state->bs, reopen_state->opaque, in raw_reopen_prepare()
H A Dnull.c223 static int null_reopen_prepare(BDRVReopenState *reopen_state, in null_reopen_prepare() argument
H A Dfile-posix.c157 BDRVReopenState *reopen_state; member
1156 s->reopen_state = state; in raw_reopen_prepare()
1175 assert(s->reopen_state == state); in raw_reopen_commit()
1176 s->reopen_state = NULL; in raw_reopen_commit()
1193 assert(s->reopen_state == state); in raw_reopen_abort()
1194 s->reopen_state = NULL; in raw_reopen_abort()
3754 int input_flags = s->reopen_state ? s->reopen_state->flags : bs->open_flags; in raw_check_perm()
H A Discsi.c2129 static void iscsi_reopen_commit(BDRVReopenState *reopen_state) in iscsi_reopen_commit() argument
2131 IscsiLun *iscsilun = reopen_state->bs->opaque; in iscsi_reopen_commit()
2135 iscsi_allocmap_init(iscsilun, reopen_state->flags); in iscsi_reopen_commit()
H A Dblkdebug.c1034 static int blkdebug_reopen_prepare(BDRVReopenState *reopen_state, in blkdebug_reopen_prepare() argument
H A Dnvme.c1511 static int nvme_reopen_prepare(BDRVReopenState *reopen_state, in nvme_reopen_prepare() argument
/openbmc/qemu/
H A Dblock.c4840 assert(reopen_state != NULL); in bdrv_reopen_prepare()
4843 drv = reopen_state->bs->drv; in bdrv_reopen_prepare()
4860 old_flags = reopen_state->flags; in bdrv_reopen_prepare()
4873 reopen_state->detect_zeroes = in bdrv_reopen_prepare()
4945 (reopen_state->bs->backing || reopen_state->bs->backing_file[0])) { in bdrv_reopen_prepare()
5031 qobject_unref(reopen_state->options); in bdrv_reopen_prepare()
5061 assert(reopen_state != NULL); in bdrv_reopen_commit()
5062 bs = reopen_state->bs; in bdrv_reopen_commit()
5078 qobject_ref(reopen_state->options); in bdrv_reopen_commit()
5107 assert(reopen_state != NULL); in bdrv_reopen_abort()
[all …]
/openbmc/qemu/include/block/
H A Dblock_int-common.h239 BDRVReopenState *reopen_state, BlockReopenQueue *queue, Error **errp);
241 BDRVReopenState *reopen_state);
243 BDRVReopenState *reopen_state);
245 BDRVReopenState *reopen_state);