Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2019 00:50:02 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r350812 - stable/12/sys/cam/ctl
Message-ID:  <201908090050.x790o23A036551@repo.freebsd.org>

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



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