Displaying 3 results from an estimated 3 matches for "enable_write_cache".
2010 Jan 11
5
internal backup power supplies?
With all the recent discussion of SSD''s that lack suitable
power-failure cache protection, surely there''s an opportunity for a
separate modular solution?
I know there used to be (years and years ago) small internal UPS''s
that fit in a few 5.25" drive bays. They were designed to power the
motherboard and peripherals, with the advantage of simplicity and
efficiency
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...v_is_sg(BlockDriverState *bs)
return bs->sg;
}
+void bdrv_set_sg(BlockDriverState *bs, int set)
+{
+ bs->sg = set;
+}
+
+int bdrv_get_tcq(BlockDriverState *bs)
+{
+ return bs->tcq;
+}
+
+void bdrv_set_tcq(BlockDriverState *bs, int set)
+{
+ bs->tcq = set;
+}
+
int bdrv_enable_write_cache(BlockDriverState *bs)
{
return bs->enable_write_cache;
diff --git a/block.h b/block.h
index a966afb..7862fa0 100644
--- a/block.h
+++ b/block.h
@@ -134,9 +134,12 @@ void bdrv_get_geometry_hint(BlockDriverState *bs,
int *pcyls, int *pheads, int *psecs);
int bdr...
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...v_is_sg(BlockDriverState *bs)
return bs->sg;
}
+void bdrv_set_sg(BlockDriverState *bs, int set)
+{
+ bs->sg = set;
+}
+
+int bdrv_get_tcq(BlockDriverState *bs)
+{
+ return bs->tcq;
+}
+
+void bdrv_set_tcq(BlockDriverState *bs, int set)
+{
+ bs->tcq = set;
+}
+
int bdrv_enable_write_cache(BlockDriverState *bs)
{
return bs->enable_write_cache;
diff --git a/block.h b/block.h
index a966afb..7862fa0 100644
--- a/block.h
+++ b/block.h
@@ -134,9 +134,12 @@ void bdrv_get_geometry_hint(BlockDriverState *bs,
int *pcyls, int *pheads, int *psecs);
int bdr...