block.c (b3fc0af1ff5e922d4dd7c875394dbd26dc7313b4) | block.c (1bf6e9ca9234e1dbcaa18baa06eca9d55cc2dbbb) |
---|---|
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 --- 4448 unchanged lines hidden (view full) --- 4457 return bdrv_get_info(bs->file->bs, bdi); 4458 } 4459 return -ENOTSUP; 4460 } 4461 memset(bdi, 0, sizeof(*bdi)); 4462 return drv->bdrv_get_info(bs, bdi); 4463} 4464 | 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 --- 4448 unchanged lines hidden (view full) --- 4457 return bdrv_get_info(bs->file->bs, bdi); 4458 } 4459 return -ENOTSUP; 4460 } 4461 memset(bdi, 0, sizeof(*bdi)); 4462 return drv->bdrv_get_info(bs, bdi); 4463} 4464 |
4465ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs) | 4465ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs, 4466 Error **errp) |
4466{ 4467 BlockDriver *drv = bs->drv; 4468 if (drv && drv->bdrv_get_specific_info) { | 4467{ 4468 BlockDriver *drv = bs->drv; 4469 if (drv && drv->bdrv_get_specific_info) { |
4469 return drv->bdrv_get_specific_info(bs); | 4470 return drv->bdrv_get_specific_info(bs, errp); |
4470 } 4471 return NULL; 4472} 4473 4474void bdrv_debug_event(BlockDriverState *bs, BlkdebugEvent event) 4475{ 4476 if (!bs || !bs->drv || !bs->drv->bdrv_debug_event) { 4477 return; --- 1164 unchanged lines hidden --- | 4471 } 4472 return NULL; 4473} 4474 4475void bdrv_debug_event(BlockDriverState *bs, BlkdebugEvent event) 4476{ 4477 if (!bs || !bs->drv || !bs->drv->bdrv_debug_event) { 4478 return; --- 1164 unchanged lines hidden --- |