svn commit: r350812 - stable/12/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Fri Aug 9 00:50:02 UTC 2019
Author: mav
Date: Fri Aug 9 00:50:02 2019
New Revision: 350812
URL: https://svnweb.freebsd.org/changeset/base/350812
Log:
MFC r350383: Reenable UNMAP support on ramdisks by default.
For some reason, I guess just mechanical editing, it was disable in r333446.
Modified:
stable/12/sys/cam/ctl/ctl_backend_ramdisk.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/cam/ctl/ctl_backend_ramdisk.c
==============================================================================
--- stable/12/sys/cam/ctl/ctl_backend_ramdisk.c Fri Aug 9 00:49:31 2019 (r350811)
+++ stable/12/sys/cam/ctl/ctl_backend_ramdisk.c Fri Aug 9 00:50:02 2019 (r350812)
@@ -1073,7 +1073,7 @@ ctl_backend_ramdisk_create(struct ctl_be_ramdisk_softc
params->lun_size_bytes = be_lun->size_bytes;
value = dnvlist_get_string(cbe_lun->options, "unmap", NULL);
- if (value != NULL && strcmp(value, "off") != 0)
+ if (value == NULL || strcmp(value, "off") != 0)
cbe_lun->flags |= CTL_LUN_FLAG_UNMAP;
value = dnvlist_get_string(cbe_lun->options, "readonly", NULL);
if (value != NULL) {
More information about the svn-src-stable-12
mailing list