On Wed, Jun 21, 2017 at 3:05 AM, Piotr Dałek <piotr.dalek@xxxxxxxxxxxx> wrote: > I saw that RBD (librbd) does that - replacing writes with discards when > buffer contains only zeros. Some code that does the same in librados could > be added and it shouldn't impact performance much, current implementation of > mem_is_zero is fast and shouldn't be a big problem. I'm pretty sure the only place where librbd converts a write to a discard is actually the specialized "writesame" operation used by tcmu-runner, as an optimization for ESX's initialization of a new image. -- Jason _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com