Lines Matching refs:sn_info
235 int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
245 if (sn_info->id_str[0] == '\0') {
247 find_new_snapshot_id(bs, sn_info->id_str, sizeof(sn_info->id_str));
251 if (find_snapshot_by_id(bs, sn_info->id_str) >= 0)
254 sn->id_str = g_strdup(sn_info->id_str);
257 sn->name = g_strdup(sn_info->name);
260 sn->vm_state_size = sn_info->vm_state_size;
261 sn->date_sec = sn_info->date_sec;
262 sn->date_nsec = sn_info->date_nsec;
263 sn->vm_clock_nsec = sn_info->vm_clock_nsec;
393 QEMUSnapshotInfo *sn_tab, *sn_info;
404 sn_info = sn_tab + i;
406 pstrcpy(sn_info->id_str, sizeof(sn_info->id_str),
408 pstrcpy(sn_info->name, sizeof(sn_info->name),
410 sn_info->vm_state_size = sn->vm_state_size;
411 sn_info->date_sec = sn->date_sec;
412 sn_info->date_nsec = sn->date_nsec;
413 sn_info->vm_clock_nsec = sn->vm_clock_nsec;