[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/5] qcow2: Options to enable discard for freed
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 3/5] qcow2: Options to enable discard for freed clusters |
Date: |
Mon, 17 Jun 2013 17:41:59 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jun 13, 2013 at 01:47:41PM +0200, Kevin Wolf wrote:
> @@ -532,6 +548,16 @@ static int qcow2_open(BlockDriverState *bs, QDict
> *options, int flags)
> s->use_lazy_refcounts = qemu_opt_get_bool(opts, QCOW2_OPT_LAZY_REFCOUNTS,
> (s->compatible_features & QCOW2_COMPAT_LAZY_REFCOUNTS));
>
> + s->discard_passthrough[QCOW2_DISCARD_NEVER] = false,
comma instead of semicolon?
> @@ -187,6 +190,8 @@ typedef struct BDRVQcowState {
> int qcow_version;
> bool use_lazy_refcounts;
>
> + bool discard_passthrough[QCOW2_DISCARD_MAX];
> +
Neat solution to specifying discard behavior.
Stefan
Re: [Qemu-devel] [PATCH 3/5] qcow2: Options to enable discard for freed clusters,
Stefan Hajnoczi <=
[Qemu-devel] [PATCH 2/5] qcow2: Add refcount update reason to all callers, Kevin Wolf, 2013/06/13
[Qemu-devel] [PATCH 4/5] qcow2: Batch discards, Kevin Wolf, 2013/06/13
[Qemu-devel] [PATCH 5/5] block: Always enable discard on the protocol level, Kevin Wolf, 2013/06/13
Re: [Qemu-devel] [PATCH 0/5] qcow2: Discard freed clusters, Wenchao Xia, 2013/06/17