qcow.c (2c8cfc0b52b5a4d123c26c0b5fdf941be24805be) | qcow.c (7dc847ebba953db90853d15f140c20eef74d4fb2) |
---|---|
1/* 2 * Block driver for the QCOW format 3 * 4 * Copyright (c) 2004-2006 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 982 unchanged lines hidden (view full) --- 991 } 992 993 /* Now get the QAPI type BlockdevCreateOptions */ 994 qdict_put_str(qdict, "driver", "qcow"); 995 qdict_put_str(qdict, "file", bs->node_name); 996 997 qobj = qdict_crumple(qdict, errp); 998 QDECREF(qdict); | 1/* 2 * Block driver for the QCOW format 3 * 4 * Copyright (c) 2004-2006 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 982 unchanged lines hidden (view full) --- 991 } 992 993 /* Now get the QAPI type BlockdevCreateOptions */ 994 qdict_put_str(qdict, "driver", "qcow"); 995 qdict_put_str(qdict, "file", bs->node_name); 996 997 qobj = qdict_crumple(qdict, errp); 998 QDECREF(qdict); |
999 qdict = qobject_to_qdict(qobj); | 999 qdict = qobject_to(QDict, qobj); |
1000 if (qdict == NULL) { 1001 ret = -EINVAL; 1002 goto fail; 1003 } 1004 1005 v = qobject_input_visitor_new_keyval(QOBJECT(qdict)); 1006 visit_type_BlockdevCreateOptions(v, NULL, &create_options, &local_err); 1007 visit_free(v); --- 208 unchanged lines hidden --- | 1000 if (qdict == NULL) { 1001 ret = -EINVAL; 1002 goto fail; 1003 } 1004 1005 v = qobject_input_visitor_new_keyval(QOBJECT(qdict)); 1006 visit_type_BlockdevCreateOptions(v, NULL, &create_options, &local_err); 1007 visit_free(v); --- 208 unchanged lines hidden --- |