Re: [PATCH RFC 1/3] block: Add support for REQ_OP_ASSIGN_RANGE operation

From: Martin K. Petersen
Date: Thu Dec 19 2019 - 21:23:09 EST



Darrick,

[Anchor]

> What happens if you anchor and then try to read the results? IO
> error?

Depends on the device. Typically you get the same results as UNMAP.

Anchoring is essentially a way to preallocate blocks on a thinly
provisioned device. If you then run out of actual storage capacity you
won't get a write failure writing to those LBAs. It is intended to
protect block ranges that do not tolerate write failures (journals,
metadata).

--
Martin K. Petersen Oracle Linux Engineering