block.c (707ff8282b66bb9471e253fe5f17b74576d36825) | block.c (6963a30d82413bea36c7545137b090b284cc2b18) |
---|---|
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 --- 756 unchanged lines hidden (view full) --- 765 if (options == NULL) { 766 options = qdict_new(); 767 } 768 769 bs = bdrv_new(""); 770 bs->options = options; 771 options = qdict_clone_shallow(options); 772 | 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 --- 756 unchanged lines hidden (view full) --- 765 if (options == NULL) { 766 options = qdict_new(); 767 } 768 769 bs = bdrv_new(""); 770 bs->options = options; 771 options = qdict_clone_shallow(options); 772 |
773 if (drv->bdrv_parse_filename) { 774 Error *local_err = NULL; 775 drv->bdrv_parse_filename(filename, options, &local_err); 776 if (error_is_set(&local_err)) { 777 qerror_report_err(local_err); 778 error_free(local_err); 779 ret = -EINVAL; 780 goto fail; 781 } 782 } 783 |
|
773 ret = bdrv_open_common(bs, NULL, filename, options, flags, drv); 774 if (ret < 0) { 775 goto fail; 776 } 777 778 /* Check if any unknown options were used */ 779 if (qdict_size(options) != 0) { 780 const QDictEntry *entry = qdict_first(options); --- 3958 unchanged lines hidden --- | 784 ret = bdrv_open_common(bs, NULL, filename, options, flags, drv); 785 if (ret < 0) { 786 goto fail; 787 } 788 789 /* Check if any unknown options were used */ 790 if (qdict_size(options) != 0) { 791 const QDictEntry *entry = qdict_first(options); --- 3958 unchanged lines hidden --- |