[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH] file-posix: add rough-block-status parameter
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-block] [PATCH] file-posix: add rough-block-status parameter |
Date: |
Wed, 9 Jan 2019 17:51:11 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Am 09.01.2019 um 17:42 hat Paolo Bonzini geschrieben:
> On 09/01/19 12:23, Kevin Wolf wrote:
> > Also note that this is only metadata preallocation; full preallocation
> > will still return allocated for the protocol layer and so it will always
> > be slow.
>
> Full preallocation these days can create images with preallocated but
> known-zero blocks, I think?
That would defeat one of the main purposes of preallocation because it
would still require COW and metadata updates on the first write.
If there is demand, we could add something like preallocation=data where
data clusters are preallocated but COW/metadata updates still happen at
runtime, but so far nobody has asked for it. Not sure when you would use
it either.
Kevin
Re: [Qemu-block] [PATCH] file-posix: add rough-block-status parameter, Stefan Hajnoczi, 2019/01/09