]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44d9df1b9f967caec91a5f736cdcb4630bd2ff73
tree9d1df5bffef545755e61d3cd4db412922d60a815
parentcbe73086e5d826cfb8bab1d9ca89bdc349b7b8bc
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