aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2019-07-27 18:07:46 +0000
committerAlexander Motin <mav@FreeBSD.org>2019-07-27 18:07:46 +0000
commit1173e5a721e1d5774806589211b508d1e9de7ce3 (patch)
tree399140f8962c560549fdc39a05f5be1d477553c6 /sys/cam/ctl
parent4b9fba0cc5e5e90d21170833cc23197a0c30d86f (diff)
downloadsrc-1173e5a721e1d5774806589211b508d1e9de7ce3.tar.gz
src-1173e5a721e1d5774806589211b508d1e9de7ce3.zip
Reenable UNMAP support on ramdisks by default.
For some reason, I guess just mechanical editing, it was disable in r333446. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=350383
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r--sys/cam/ctl/ctl_backend_ramdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_backend_ramdisk.c b/sys/cam/ctl/ctl_backend_ramdisk.c
index e3e0df11925b..91f2fa4e8541 100644
--- a/sys/cam/ctl/ctl_backend_ramdisk.c
+++ b/sys/cam/ctl/ctl_backend_ramdisk.c
@@ -1073,7 +1073,7 @@ ctl_backend_ramdisk_create(struct ctl_be_ramdisk_softc *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) {