]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ctl(4): Do hole-punching for UNMAP to file-backed LUNs
authorKa Ho Ng <khng@FreeBSD.org>
Tue, 14 Sep 2021 19:51:58 +0000 (03:51 +0800)
committerKa Ho Ng <khng@FreeBSD.org>
Tue, 14 Sep 2021 19:51:58 +0000 (03:51 +0800)
commit49050613ef1fac244c3cb9767cbdff3d10bee670
tree41cb6dbc64fd3c86c8ac9e797c9a665191d3b21a
parent8cba2003e85b49a482ca623945209ca537374229
ctl(4): Do hole-punching for UNMAP to file-backed LUNs

This adds support for SCSI UNMAP command to file-backed LUNs, if the
underlying file system has a non-zerofilling VOP_DEALLOCATE
implementation where some or all parts of the requested operation range
may be deallocated.

Sponsored by: The FreeBSD Foundation
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D31922
sys/cam/ctl/ctl_backend_block.c