block.c (812b835fb4d23dd108b2f9802158472d50b73579) | block.c (66a5bdf3096cf8bc8c41eb7adcc9d10edef07a9d) |
---|---|
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 --- 4107 unchanged lines hidden (view full) --- 4116 4117typedef struct CheckCo { 4118 BlockDriverState *bs; 4119 BdrvCheckResult *res; 4120 BdrvCheckMode fix; 4121 int ret; 4122} CheckCo; 4123 | 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 --- 4107 unchanged lines hidden (view full) --- 4116 4117typedef struct CheckCo { 4118 BlockDriverState *bs; 4119 BdrvCheckResult *res; 4120 BdrvCheckMode fix; 4121 int ret; 4122} CheckCo; 4123 |
4124static void bdrv_check_co_entry(void *opaque) | 4124static void coroutine_fn bdrv_check_co_entry(void *opaque) |
4125{ 4126 CheckCo *cco = opaque; 4127 cco->ret = bdrv_co_check(cco->bs, cco->res, cco->fix); 4128 aio_wait_kick(); 4129} 4130 4131int bdrv_check(BlockDriverState *bs, 4132 BdrvCheckResult *res, BdrvCheckMode fix) --- 2098 unchanged lines hidden --- | 4125{ 4126 CheckCo *cco = opaque; 4127 cco->ret = bdrv_co_check(cco->bs, cco->res, cco->fix); 4128 aio_wait_kick(); 4129} 4130 4131int bdrv_check(BlockDriverState *bs, 4132 BdrvCheckResult *res, BdrvCheckMode fix) --- 2098 unchanged lines hidden --- |