HomeFreeBSD

Log zvol truncate/discard operations

Description

Log zvol truncate/discard operations

As the comments in zvol_discard() suggested, the discard operation
could be logged to the zil. This is a port of the relevant code from
Nexenta as it was added in "701 UNMAP support for COMSTAR" and has been
attributed to the author of that commit.

References:

https://github.com/Nexenta/illumos-nexenta/commit/b77b923
https://github.com/zfsonlinux/zfs/blob/089fa91b/module/zfs/zvol.c#L637

Ported-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Dan McDonald <danmcd@nexenta.com>Authored on Aug 2 2015, 1:01 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 26 2016, 10:16 PM
Parents
rGd93b45aefc74: mount.zfs: use getopt_long instead of getopt to guarantee permutation of argv.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG460a021391d3: Log zvol truncate/discard operations (authored by Dan McDonald <danmcd@nexenta.com>).Jan 26 2016, 10:16 PM