Re: [PATCH RFC 4/8] fs: Introduce FALLOC_FL_PROVISION
From: Christoph Hellwig
Date: Tue Sep 20 2022 - 03:50:43 EST
On Thu, Sep 15, 2022 at 09:48:22AM -0700, Sarthak Kukreti wrote:
> From: Sarthak Kukreti <sarthakkukreti@xxxxxxxxxxxx>
>
> FALLOC_FL_PROVISION is a new fallocate() allocation mode that
> sends a hint to (supported) thinly provisioned block devices to
> allocate space for the given range of sectors via REQ_OP_PROVISION.
So, how does that "provisioning" actually work in todays world where
storage is usually doing out of place writes in one or more layers,
including the flash storage everyone is using. Does it give you one
write? And unlimited number? Some undecided number inbetween? How
is it affected by write zeroes to that range or a discard?