Revision 8cfacf07 block_int.h
b/block_int.h | ||
---|---|---|
209 | 209 |
typedef struct BlockConf { |
210 | 210 |
struct DriveInfo *dinfo; |
211 | 211 |
uint16_t physical_block_size; |
212 |
uint16_t logical_block_size; |
|
212 | 213 |
uint16_t min_io_size; |
213 | 214 |
uint32_t opt_io_size; |
214 | 215 |
} BlockConf; |
... | ... | |
226 | 227 |
|
227 | 228 |
#define DEFINE_BLOCK_PROPERTIES(_state, _conf) \ |
228 | 229 |
DEFINE_PROP_DRIVE("drive", _state, _conf.dinfo), \ |
230 |
DEFINE_PROP_UINT16("logical_block_size", _state, \ |
|
231 |
_conf.logical_block_size, 512), \ |
|
229 | 232 |
DEFINE_PROP_UINT16("physical_block_size", _state, \ |
230 | 233 |
_conf.physical_block_size, 512), \ |
231 | 234 |
DEFINE_PROP_UINT16("min_io_size", _state, _conf.min_io_size, 512), \ |
Also available in: Unified diff