Revision 8d278467 block.c

b/block.c
1305 1305
    bs->secs = secs;
1306 1306
}
1307 1307

  
1308
void bdrv_set_type_hint(BlockDriverState *bs, int type)
1309
{
1310
    bs->type = type;
1311
    bs->removable = ((type == BDRV_TYPE_CDROM ||
1312
                      type == BDRV_TYPE_FLOPPY));
1313
}
1314

  
1315 1308
void bdrv_set_translation_hint(BlockDriverState *bs, int translation)
1316 1309
{
1317 1310
    bs->translation = translation;
......
1428 1421
    }
1429 1422
}
1430 1423

  
1431
int bdrv_get_type_hint(BlockDriverState *bs)
1432
{
1433
    return bs->type;
1434
}
1435

  
1436 1424
int bdrv_get_translation_hint(BlockDriverState *bs)
1437 1425
{
1438 1426
    return bs->translation;

Also available in: Unified diff