block-io.h (79a292e5ec767eea27a0cc456570ee028f4e3972) block-io.h (48aef7944090fdddd6a89e07b790798cf31b56a4)
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

--- 76 unchanged lines hidden (view full) ---

85int64_t co_wrapper_mixed bdrv_getlength(BlockDriverState *bs);
86
87int64_t coroutine_fn bdrv_co_get_allocated_file_size(BlockDriverState *bs);
88int64_t co_wrapper bdrv_get_allocated_file_size(BlockDriverState *bs);
89
90BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts,
91 BlockDriverState *in_bs, Error **errp);
92void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr);
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

--- 76 unchanged lines hidden (view full) ---

85int64_t co_wrapper_mixed bdrv_getlength(BlockDriverState *bs);
86
87int64_t coroutine_fn bdrv_co_get_allocated_file_size(BlockDriverState *bs);
88int64_t co_wrapper bdrv_get_allocated_file_size(BlockDriverState *bs);
89
90BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts,
91 BlockDriverState *in_bs, Error **errp);
92void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr);
93int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
94void coroutine_fn bdrv_co_delete_file_noerr(BlockDriverState *bs);
95
93
94int coroutine_fn GRAPH_RDLOCK
95bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
96
96
97void coroutine_fn GRAPH_RDLOCK
98bdrv_co_delete_file_noerr(BlockDriverState *bs);
99
100
97/* async block I/O */
98void bdrv_aio_cancel(BlockAIOCB *acb);
99void bdrv_aio_cancel_async(BlockAIOCB *acb);
100
101/* sg packet commands */
102int coroutine_fn GRAPH_RDLOCK
103bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf);
104

--- 294 unchanged lines hidden ---
101/* async block I/O */
102void bdrv_aio_cancel(BlockAIOCB *acb);
103void bdrv_aio_cancel_async(BlockAIOCB *acb);
104
105/* sg packet commands */
106int coroutine_fn GRAPH_RDLOCK
107bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf);
108

--- 294 unchanged lines hidden ---