rbd: notrim map option
authorIlya Dryomov <idryomov@gmail.com>
Fri, 23 Mar 2018 05:14:47 +0000 (06:14 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Apr 2018 07:38:40 +0000 (09:38 +0200)
commitd93605407af34eb0b7eb8aff6b1eae2cde3cdd22
tree9d1df5bffef545755e61d3cd4db412922d60a815
parent420efbdf4d2358dc12913298ad44d041c6ac0ed6
rbd: notrim map option

Add an option to turn off discard and write zeroes offload support to
avoid deprovisioning a fully provisioned image.  When enabled, discard
requests will fail with -EOPNOTSUPP, write zeroes requests will fall
back to manually zeroing.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Tested-by: Hitoshi Kamei <hitoshi.kamei.xm@hitachi.com>
drivers/block/rbd.c