block-io.h (1e97be915697fff198e9922321066cf9b44ef4b9) block-io.h (c86422c5549c0983b4b4525b8f56a1c69dd67aa1)
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

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

71 */
72int coroutine_fn bdrv_co_pwrite_zeroes(BdrvChild *child, int64_t offset,
73 int64_t bytes, BdrvRequestFlags flags);
74
75int coroutine_fn bdrv_co_truncate(BdrvChild *child, int64_t offset, bool exact,
76 PreallocMode prealloc, BdrvRequestFlags flags,
77 Error **errp);
78
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

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

71 */
72int coroutine_fn bdrv_co_pwrite_zeroes(BdrvChild *child, int64_t offset,
73 int64_t bytes, BdrvRequestFlags flags);
74
75int coroutine_fn bdrv_co_truncate(BdrvChild *child, int64_t offset, bool exact,
76 PreallocMode prealloc, BdrvRequestFlags flags,
77 Error **errp);
78
79int64_t bdrv_nb_sectors(BlockDriverState *bs);
80int64_t bdrv_getlength(BlockDriverState *bs);
79int64_t coroutine_fn bdrv_co_nb_sectors(BlockDriverState *bs);
80int64_t co_wrapper_mixed bdrv_nb_sectors(BlockDriverState *bs);
81
82int64_t coroutine_fn bdrv_co_getlength(BlockDriverState *bs);
83int64_t co_wrapper_mixed bdrv_getlength(BlockDriverState *bs);
84
81int64_t bdrv_get_allocated_file_size(BlockDriverState *bs);
82BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts,
83 BlockDriverState *in_bs, Error **errp);
84void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr);
85int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
86void coroutine_fn bdrv_co_delete_file_noerr(BlockDriverState *bs);
87
88

--- 291 unchanged lines hidden ---
85int64_t bdrv_get_allocated_file_size(BlockDriverState *bs);
86BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts,
87 BlockDriverState *in_bs, Error **errp);
88void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr);
89int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
90void coroutine_fn bdrv_co_delete_file_noerr(BlockDriverState *bs);
91
92

--- 291 unchanged lines hidden ---