From owner-svn-src-head@freebsd.org Wed May 11 07:00:23 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 967C0B369F7; Wed, 11 May 2016 07:00:23 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D572196E; Wed, 11 May 2016 07:00:23 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id e201so7514562wme.2; Wed, 11 May 2016 00:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=u1BbRgw3UFJxAUlnPwLN1TDsEKy8T4T6wPMorkX+EHw=; b=Ve/5AWT5k92XXogxHEtvoLSwTGXUjdU6LUgCzLzbGHDlzrimRE2tJ8wTP5J26nmDOI Xvb6YcEdMtAjO79Y1txoxbVu7/xsAsnhB5IjLPD8SC6n9zSbClKpkSKpbMh6HCcS4H+n iB3plfEgA3qUhUlfDeiHtFS/Vq77xgjYr4QVKmaDFo4F4dqUpmr/zSEi6hWv9vQmniAX Y3yqo7qM0/Gkyi3yLAVnGP8uTWnxMwrPnh3lEM91bBuD2cm+u9a+Yt4cg95+wfg7Teiu mdjG3UYaFojax0ieh7aVFWznKpTw2Eqp99efZTO2sMjvVs1KvCL4tQqA1pSj3F0CwFNF I21Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=u1BbRgw3UFJxAUlnPwLN1TDsEKy8T4T6wPMorkX+EHw=; b=K2dGRVdFcLk6fur6S4NDCGg6iEqwUbV4Vy1GY2GGGDn4Ryoa3sXwvAguISxIWf6/6Y c0ONZVTWP0k+Ip3BdzJOj7LsVVMGcrMpncPdrQUMYQrAHRuPo9EVzGDnm4SHRyy3V5F3 KTjO5SNN2XMXuz88Uj3daJpnSqICmC5os+zGE+JAO+1xflfk3lZX4BZsWO3vqFnJEe8O njhB6htDRIYjFspPTUjiB79xO0Py7adpiNb4nSsM7T0KVuFdiwc26BmHxhlTb6lYdaUe BHBkKjeNZVK1QF71yA/tPWWNzIqENSqH601AgizeJmXYMwR/oUsDF4/pFWauOzBJJ2yS Nuew== X-Gm-Message-State: AOPr4FVa5KbXtdx9yeyKq2BoZSVaEjSvDUKVG9hbhFPfLPxyo0p97r25cC1NaBinyov51w== X-Received: by 10.28.54.69 with SMTP id d66mr22697193wma.94.1462950021354; Wed, 11 May 2016 00:00:21 -0700 (PDT) Received: from brick (aie67.neoplus.adsl.tpnet.pl. [83.25.212.67]) by smtp.gmail.com with ESMTPSA id 8sm34336527wms.14.2016.05.11.00.00.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2016 00:00:20 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Wed, 11 May 2016 09:00:17 +0200 From: Edward Tomasz Napierala To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r299371 - in head: sbin/camcontrol sys/cam sys/cam/scsi Message-ID: <20160511070017.GB5193@brick> Mail-Followup-To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201605101546.u4AFkX0w073701@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201605101546.u4AFkX0w073701@repo.freebsd.org> User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 07:00:23 -0000 On 0510T1546, Edward Tomasz Napierala wrote: > Author: trasz > Date: Tue May 10 15:46:33 2016 > New Revision: 299371 > URL: https://svnweb.freebsd.org/changeset/base/299371 > > Log: > Add "camcontrol reprobe" subcommand, and implement it for da(4). > This makes it possible to manually force updating capacity data > after the disk got resized. Without it it might be neccessary to > reboot before FreeBSD notices updated disk size under eg VMWare. Turns out there was an earlier patch, written by Matthew Grooms , that provided the same functionality, and was submitted in PR 204901. While I don't remember seeing the actual diff (I'd just commit it if I had), and the code looks different, I do remember discussing this, and Matthew's analysis of the problem was crucial for getting this done. The code also works in a pretty much same way. Great minds think alike, I guess :-) (I should learn to check the PR database before writing code, though. Sorry for that.)