svn commit: r350383 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Sat Jul 27 18:07:47 UTC 2019
Author: mav
Date: Sat Jul 27 18:07:46 2019
New Revision: 350383
URL: https://svnweb.freebsd.org/changeset/base/350383
Log:
Reenable UNMAP support on ramdisks by default.
For some reason, I guess just mechanical editing, it was disable in r333446.
MFC after: 2 weeks
Modified:
head/sys/cam/ctl/ctl_backend_ramdisk.c
Modified: head/sys/cam/ctl/ctl_backend_ramdisk.c
==============================================================================
--- head/sys/cam/ctl/ctl_backend_ramdisk.c Sat Jul 27 17:59:30 2019 (r350382)
+++ head/sys/cam/ctl/ctl_backend_ramdisk.c Sat Jul 27 18:07:46 2019 (r350383)
@@ -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-all
mailing list