block.c (ebabb67a17b58c729e12523cb21b2d6c1d93abc6) | block.c (a1c7273b82dc084d85e2344e0562f5ee4e414d59) |
---|---|
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 --- 733 unchanged lines hidden (view full) --- 742{ 743 return bs->peer; 744} 745 746/* 747 * Run consistency checks on an image 748 * 749 * Returns 0 if the check could be completed (it doesn't mean that the image is | 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 --- 733 unchanged lines hidden (view full) --- 742{ 743 return bs->peer; 744} 745 746/* 747 * Run consistency checks on an image 748 * 749 * Returns 0 if the check could be completed (it doesn't mean that the image is |
750 * free of errors) or -errno when an internal error occured. The results of the | 750 * free of errors) or -errno when an internal error occurred. The results of the |
751 * check are stored in res. 752 */ 753int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res) 754{ 755 if (bs->drv->bdrv_check == NULL) { 756 return -ENOTSUP; 757 } 758 --- 2293 unchanged lines hidden --- | 751 * check are stored in res. 752 */ 753int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res) 754{ 755 if (bs->drv->bdrv_check == NULL) { 756 return -ENOTSUP; 757 } 758 --- 2293 unchanged lines hidden --- |