Reenable UNMAP support on ramdisks by default.

For some reason, I guess just mechanical editing, it was disable in r333446.

MFC after:	2 weeks
This commit is contained in:
mav 2019-07-27 18:07:46 +00:00
parent 336ad2a4b3
commit 6df61ac06c

View File

@ -1073,7 +1073,7 @@ ctl_backend_ramdisk_create(struct ctl_be_ramdisk_softc *softc,
params->lun_size_bytes = be_lun->size_bytes; params->lun_size_bytes = be_lun->size_bytes;
value = dnvlist_get_string(cbe_lun->options, "unmap", NULL); 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; cbe_lun->flags |= CTL_LUN_FLAG_UNMAP;
value = dnvlist_get_string(cbe_lun->options, "readonly", NULL); value = dnvlist_get_string(cbe_lun->options, "readonly", NULL);
if (value != NULL) { if (value != NULL) {