From owner-svn-src-head@FreeBSD.ORG Tue Apr 8 21:30:11 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3543B2D3; Tue, 8 Apr 2014 21:30:11 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 225641780; Tue, 8 Apr 2014 21:30:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s38LUAbY024584; Tue, 8 Apr 2014 21:30:10 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s38LUAHd024582; Tue, 8 Apr 2014 21:30:10 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201404082130.s38LUAHd024582@svn.freebsd.org> From: Alexander Motin Date: Tue, 8 Apr 2014 21:30:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264279 - in head/sys/cam: ctl scsi X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 21:30:11 -0000 Author: mav Date: Tue Apr 8 21:30:10 2014 New Revision: 264279 URL: http://svnweb.freebsd.org/changeset/base/264279 Log: Oops! Few quick fixes for r264274. Modified: head/sys/cam/ctl/ctl_backend_ramdisk.c head/sys/cam/scsi/scsi_all.h Modified: head/sys/cam/ctl/ctl_backend_ramdisk.c ============================================================================== --- head/sys/cam/ctl/ctl_backend_ramdisk.c Tue Apr 8 21:06:58 2014 (r264278) +++ head/sys/cam/ctl/ctl_backend_ramdisk.c Tue Apr 8 21:30:10 2014 (r264279) @@ -546,6 +546,7 @@ ctl_backend_ramdisk_create(struct ctl_be be_lun->softc = softc; + unmap = 0; for (i = 0; i < req->num_be_args; i++) { if (strcmp(req->kern_be_args[i].kname, "unmap") == 0 && strcmp(req->kern_be_args[i].kvalue, "on") == 0) { @@ -565,7 +566,7 @@ ctl_backend_ramdisk_create(struct ctl_be be_lun->flags = CTL_BE_RAMDISK_LUN_UNCONFIGURED; be_lun->ctl_be_lun.flags = CTL_LUN_FLAG_PRIMARY; if (unmap) - be_lun->ctl_be_lun.flags = CTL_LUN_FLAG_UNMAP; + be_lun->ctl_be_lun.flags |= CTL_LUN_FLAG_UNMAP; be_lun->ctl_be_lun.be_lun = be_lun; if (params->flags & CTL_LUN_FLAG_ID_REQ) { Modified: head/sys/cam/scsi/scsi_all.h ============================================================================== --- head/sys/cam/scsi/scsi_all.h Tue Apr 8 21:06:58 2014 (r264278) +++ head/sys/cam/scsi/scsi_all.h Tue Apr 8 21:30:10 2014 (r264279) @@ -858,7 +858,7 @@ struct scsi_unmap_header { uint8_t length[2]; uint8_t desc_length[2]; - uint8_t reserved[8]; + uint8_t reserved[4]; }; struct scsi_unmap_desc