blkdebug.c (80d6f5eae79b009bf3e02e59e9e225db42ddf887) | blkdebug.c (87ea75d5e135c0527c6a9dbac4317913409f28c7) |
---|---|
1/* 2 * Block protocol for I/O error injection 3 * 4 * Copyright (c) 2010 Kevin Wolf <kwolf@redhat.com> 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 --- 345 unchanged lines hidden (view full) --- 354 Error **errp) 355{ 356 BDRVBlkdebugState *s = bs->opaque; 357 QemuOpts *opts; 358 Error *local_err = NULL; 359 const char *filename, *config; 360 int ret; 361 | 1/* 2 * Block protocol for I/O error injection 3 * 4 * Copyright (c) 2010 Kevin Wolf <kwolf@redhat.com> 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 --- 345 unchanged lines hidden (view full) --- 354 Error **errp) 355{ 356 BDRVBlkdebugState *s = bs->opaque; 357 QemuOpts *opts; 358 Error *local_err = NULL; 359 const char *filename, *config; 360 int ret; 361 |
362 opts = qemu_opts_create_nofail(&runtime_opts); | 362 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort); |
363 qemu_opts_absorb_qdict(opts, options, &local_err); 364 if (error_is_set(&local_err)) { 365 error_propagate(errp, local_err); 366 ret = -EINVAL; 367 goto fail; 368 } 369 370 /* Read rules from config file */ --- 308 unchanged lines hidden --- | 363 qemu_opts_absorb_qdict(opts, options, &local_err); 364 if (error_is_set(&local_err)) { 365 error_propagate(errp, local_err); 366 ret = -EINVAL; 367 goto fail; 368 } 369 370 /* Read rules from config file */ --- 308 unchanged lines hidden --- |