block.c (54a32bfec140e03ebb19863db944b1c81e4df25e) | block.c (fd4520212bd4fc9c86db4ccd4d9c3d612e8e58f9) |
---|---|
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 --- 2715 unchanged lines hidden (view full) --- 2724 role->inherit_options(&flags, options, parent_flags, parent_options); 2725 } 2726 2727 /* Old values are used for options that aren't set yet */ 2728 old_options = qdict_clone_shallow(bs->options); 2729 bdrv_join_options(bs, options, old_options); 2730 QDECREF(old_options); 2731 | 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 --- 2715 unchanged lines hidden (view full) --- 2724 role->inherit_options(&flags, options, parent_flags, parent_options); 2725 } 2726 2727 /* Old values are used for options that aren't set yet */ 2728 old_options = qdict_clone_shallow(bs->options); 2729 bdrv_join_options(bs, options, old_options); 2730 QDECREF(old_options); 2731 |
2732 /* bdrv_open() masks this flag out */ | 2732 /* bdrv_open_inherit() sets and clears some additional flags internally */ |
2733 flags &= ~BDRV_O_PROTOCOL; | 2733 flags &= ~BDRV_O_PROTOCOL; |
2734 if (flags & BDRV_O_RDWR) { 2735 flags |= BDRV_O_ALLOW_RDWR; 2736 } |
|
2734 2735 QLIST_FOREACH(child, &bs->children, next) { 2736 QDict *new_child_options; 2737 char *child_key_dot; 2738 2739 /* reopen can only change the options of block devices that were 2740 * implicitly created and inherited options. For other (referenced) 2741 * block devices, a syntax like "backing.foo" results in an error. */ --- 2203 unchanged lines hidden --- | 2737 2738 QLIST_FOREACH(child, &bs->children, next) { 2739 QDict *new_child_options; 2740 char *child_key_dot; 2741 2742 /* reopen can only change the options of block devices that were 2743 * implicitly created and inherited options. For other (referenced) 2744 * block devices, a syntax like "backing.foo" results in an error. */ --- 2203 unchanged lines hidden --- |