block.c (426c0df9e3e6e64c7ea489092c57088ca4d227d0) | block.c (d44f928a54497188c25357840a3224925d1b527b) |
---|---|
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 --- 1067 unchanged lines hidden (view full) --- 1076 return -EINVAL; 1077 } 1078 1079 if (!drv->bdrv_needs_filename) { 1080 qdict_del(*options, "filename"); 1081 } 1082 } 1083 | 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 --- 1067 unchanged lines hidden (view full) --- 1076 return -EINVAL; 1077 } 1078 1079 if (!drv->bdrv_needs_filename) { 1080 qdict_del(*options, "filename"); 1081 } 1082 } 1083 |
1084 if (runstate_check(RUN_STATE_INMIGRATE)) { 1085 *flags |= BDRV_O_INCOMING; 1086 } 1087 |
|
1084 return 0; 1085} 1086 1087static BdrvChild *bdrv_attach_child(BlockDriverState *parent_bs, 1088 BlockDriverState *child_bs, 1089 const BdrvChildRole *child_role) 1090{ 1091 BdrvChild *child = g_new(BdrvChild, 1); --- 3070 unchanged lines hidden --- | 1088 return 0; 1089} 1090 1091static BdrvChild *bdrv_attach_child(BlockDriverState *parent_bs, 1092 BlockDriverState *child_bs, 1093 const BdrvChildRole *child_role) 1094{ 1095 BdrvChild *child = g_new(BdrvChild, 1); --- 3070 unchanged lines hidden --- |