summaryrefslogtreecommitdiff
path: root/hw/block/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/block/block.c')
-rw-r--r--hw/block/block.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/hw/block/block.c b/hw/block/block.c
index 8dc9d84a3..97a59d4fa 100644
--- a/hw/block/block.c
+++ b/hw/block/block.c
@@ -51,34 +51,6 @@ void blkconf_blocksizes(BlockConf *conf)
}
}
-void blkconf_apply_backend_options(BlockConf *conf)
-{
- BlockBackend *blk = conf->blk;
- BlockdevOnError rerror, werror;
- bool wce;
-
- switch (conf->wce) {
- case ON_OFF_AUTO_ON: wce = true; break;
- case ON_OFF_AUTO_OFF: wce = false; break;
- case ON_OFF_AUTO_AUTO: wce = blk_enable_write_cache(blk); break;
- default:
- abort();
- }
-
- rerror = conf->rerror;
- if (rerror == BLOCKDEV_ON_ERROR_AUTO) {
- rerror = blk_get_on_error(blk, true);
- }
-
- werror = conf->werror;
- if (werror == BLOCKDEV_ON_ERROR_AUTO) {
- werror = blk_get_on_error(blk, false);
- }
-
- blk_set_enable_write_cache(blk, wce);
- blk_set_on_error(blk, rerror, werror);
-}
-
void blkconf_geometry(BlockConf *conf, int *ptrans,
unsigned cyls_max, unsigned heads_max, unsigned secs_max,
Error **errp)