block.c (3ee933c9d4869891a5614fba4815a3857dc3ef8f) | block.c (b20e61e0d52eef57cf5db55087b16e0b5207e730) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 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 --- 1214 unchanged lines hidden (view full) --- 1223 if (!filename && !reference && !qdict_size(image_options)) { 1224 if (allow_none) { 1225 ret = 0; 1226 } else { 1227 error_setg(errp, "A block device must be specified for \"%s\"", 1228 bdref_key); 1229 ret = -EINVAL; 1230 } | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 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 --- 1214 unchanged lines hidden (view full) --- 1223 if (!filename && !reference && !qdict_size(image_options)) { 1224 if (allow_none) { 1225 ret = 0; 1226 } else { 1227 error_setg(errp, "A block device must be specified for \"%s\"", 1228 bdref_key); 1229 ret = -EINVAL; 1230 } |
1231 QDECREF(image_options); |
|
1231 goto done; 1232 } 1233 1234 ret = bdrv_open(pbs, filename, reference, image_options, flags, NULL, errp); 1235 1236done: 1237 qdict_del(options, bdref_key); 1238 return ret; --- 4470 unchanged lines hidden --- | 1232 goto done; 1233 } 1234 1235 ret = bdrv_open(pbs, filename, reference, image_options, flags, NULL, errp); 1236 1237done: 1238 qdict_del(options, bdref_key); 1239 return ret; --- 4470 unchanged lines hidden --- |