Revision 6ea44308 block.h

b/block.h
41 41

  
42 42
#define BDRV_O_CACHE_MASK  (BDRV_O_NOCACHE | BDRV_O_CACHE_WB)
43 43

  
44
#define BDRV_SECTOR_BITS   9
45
#define BDRV_SECTOR_SIZE   (1 << BDRV_SECTOR_BITS)
46
#define BDRV_SECTOR_MASK   ~(BDRV_SECTOR_SIZE - 1);
47

  
44 48
void bdrv_info(Monitor *mon);
45 49
void bdrv_info_stats(Monitor *mon);
46 50

  
......
188 192
int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,
189 193
                      int64_t pos, int size);
190 194

  
195
#define BDRV_SECTORS_PER_DIRTY_CHUNK 8
196

  
191 197
void bdrv_set_dirty_tracking(BlockDriverState *bs, int enable);
192 198
int bdrv_get_dirty(BlockDriverState *bs, int64_t sector);
193 199
void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector,
194 200
                      int nr_sectors);
195
int bdrv_get_sectors_per_chunk(void);
196 201
#endif

Also available in: Unified diff