block_int.h (0f01b9fdd4ba0a3d38e26e89e1b1faf1213eb4f1) | block_int.h (061ca8a368165fae300748c17971824a089f521f) |
---|---|
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 --- 275 unchanged lines hidden (view full) --- 284 285 /* 286 * Drivers setting this field must be able to work with just a plain 287 * filename with '<protocol_name>:' as a prefix, and no other options. 288 * Options may be extracted from the filename by implementing 289 * bdrv_parse_filename. 290 */ 291 const char *protocol_name; | 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 --- 275 unchanged lines hidden (view full) --- 284 285 /* 286 * Drivers setting this field must be able to work with just a plain 287 * filename with '<protocol_name>:' as a prefix, and no other options. 288 * Options may be extracted from the filename by implementing 289 * bdrv_parse_filename. 290 */ 291 const char *protocol_name; |
292 int (*bdrv_truncate)(BlockDriverState *bs, int64_t offset, 293 PreallocMode prealloc, Error **errp); | 292 int coroutine_fn (*bdrv_co_truncate)(BlockDriverState *bs, int64_t offset, 293 PreallocMode prealloc, Error **errp); |
294 295 int64_t (*bdrv_getlength)(BlockDriverState *bs); 296 bool has_variable_length; 297 int64_t (*bdrv_get_allocated_file_size)(BlockDriverState *bs); 298 BlockMeasureInfo *(*bdrv_measure)(QemuOpts *opts, BlockDriverState *in_bs, 299 Error **errp); 300 301 int coroutine_fn (*bdrv_co_pwritev_compressed)(BlockDriverState *bs, --- 859 unchanged lines hidden --- | 294 295 int64_t (*bdrv_getlength)(BlockDriverState *bs); 296 bool has_variable_length; 297 int64_t (*bdrv_get_allocated_file_size)(BlockDriverState *bs); 298 BlockMeasureInfo *(*bdrv_measure)(QemuOpts *opts, BlockDriverState *in_bs, 299 Error **errp); 300 301 int coroutine_fn (*bdrv_co_pwritev_compressed)(BlockDriverState *bs, --- 859 unchanged lines hidden --- |