HomeFreeBSD

Add SCSI_PASSTHROUGH to zvols to enable UNMAP support

Description

Add SCSI_PASSTHROUGH to zvols to enable UNMAP support

When exporting ZVOLs as SCSI LUNs, by default Windows will not
issue them UNMAP commands. This reduces storage efficiency in
many cases.

We add the SCSI_PASSTHROUGH flag to the zvol's device queue,
which lets the SCSI target logic know that it can handle SCSI
commands.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Gallagher <john.gallagher@delphix.com>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #8933

Details

Provenance
pcd_delphix.comAuthored on Jun 21 2019, 4:40 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 21 2019, 4:40 PM
Parents
rG3976fd65d367: Redacted Send/Receive broke zfs(8) help message
Branches
Unknown
Tags
Unknown