Revision bb8bf76f block_int.h
b/block_int.h | ||
---|---|---|
72 | 72 |
BlockDriverCompletionFunc *cb, void *opaque); |
73 | 73 |
BlockDriverAIOCB *(*bdrv_aio_flush)(BlockDriverState *bs, |
74 | 74 |
BlockDriverCompletionFunc *cb, void *opaque); |
75 |
int (*bdrv_discard)(BlockDriverState *bs, int64_t sector_num, |
|
76 |
int nb_sectors); |
|
75 | 77 |
|
76 | 78 |
int (*bdrv_aio_multiwrite)(BlockDriverState *bs, BlockRequest *reqs, |
77 | 79 |
int num_reqs); |
... | ... | |
227 | 229 |
uint16_t min_io_size; |
228 | 230 |
uint32_t opt_io_size; |
229 | 231 |
int32_t bootindex; |
232 |
uint32_t discard_granularity; |
|
230 | 233 |
} BlockConf; |
231 | 234 |
|
232 | 235 |
static inline unsigned int get_physical_block_exp(BlockConf *conf) |
... | ... | |
250 | 253 |
_conf.physical_block_size, 512), \ |
251 | 254 |
DEFINE_PROP_UINT16("min_io_size", _state, _conf.min_io_size, 0), \ |
252 | 255 |
DEFINE_PROP_UINT32("opt_io_size", _state, _conf.opt_io_size, 0), \ |
253 |
DEFINE_PROP_INT32("bootindex", _state, _conf.bootindex, -1) \ |
|
256 |
DEFINE_PROP_INT32("bootindex", _state, _conf.bootindex, -1), \ |
|
257 |
DEFINE_PROP_UINT32("discard_granularity", _state, \ |
|
258 |
_conf.discard_granularity, 0) |
|
254 | 259 |
|
255 | 260 |
#endif /* BLOCK_INT_H */ |
Also available in: Unified diff