Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2019 18:07:46 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350383 - head/sys/cam/ctl
Message-ID:  <201907271807.x6RI7kdJ002270@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907271807.x6RI7kdJ002270>