348 |
type == BDRV_TYPE_FLOPPY)); |
type == BDRV_TYPE_FLOPPY)); |
349 |
} |
} |
350 |
|
|
351 |
|
void bdrv_set_translation_hint(BlockDriverState *bs, int translation) |
352 |
|
{ |
353 |
|
bs->translation = translation; |
354 |
|
} |
355 |
|
|
356 |
void bdrv_get_geometry_hint(BlockDriverState *bs, |
void bdrv_get_geometry_hint(BlockDriverState *bs, |
357 |
int *pcyls, int *pheads, int *psecs) |
int *pcyls, int *pheads, int *psecs) |
358 |
{ |
{ |
366 |
return bs->type; |
return bs->type; |
367 |
} |
} |
368 |
|
|
369 |
|
int bdrv_get_translation_hint(BlockDriverState *bs) |
370 |
|
{ |
371 |
|
return bs->translation; |
372 |
|
} |
373 |
|
|
374 |
int bdrv_is_removable(BlockDriverState *bs) |
int bdrv_is_removable(BlockDriverState *bs) |
375 |
{ |
{ |
376 |
return bs->removable; |
return bs->removable; |