block.c (79a292e5ec767eea27a0cc456570ee028f4e3972) | block.c (48aef7944090fdddd6a89e07b790798cf31b56a4) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * Copyright (c) 2020 Virtuozzo International GmbH. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 726 unchanged lines hidden (view full) --- 735 736int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp) 737{ 738 Error *local_err = NULL; 739 int ret; 740 741 IO_CODE(); 742 assert(bs != NULL); | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * Copyright (c) 2020 Virtuozzo International GmbH. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 726 unchanged lines hidden (view full) --- 735 736int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp) 737{ 738 Error *local_err = NULL; 739 int ret; 740 741 IO_CODE(); 742 assert(bs != NULL); |
743 assert_bdrv_graph_readable(); |
|
743 744 if (!bs->drv) { 745 error_setg(errp, "Block node '%s' is not opened", bs->filename); 746 return -ENOMEDIUM; 747 } 748 749 if (!bs->drv->bdrv_co_delete_file) { 750 error_setg(errp, "Driver '%s' does not support image deletion", --- 7496 unchanged lines hidden --- | 744 745 if (!bs->drv) { 746 error_setg(errp, "Block node '%s' is not opened", bs->filename); 747 return -ENOMEDIUM; 748 } 749 750 if (!bs->drv->bdrv_co_delete_file) { 751 error_setg(errp, "Driver '%s' does not support image deletion", --- 7496 unchanged lines hidden --- |