From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 16:27:11 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F27C51065673 for ; Tue, 26 Jun 2012 16:27:10 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 824AD8FC0C for ; Tue, 26 Jun 2012 16:27:10 +0000 (UTC) Received: by eeke49 with SMTP id e49so72042eek.13 for ; Tue, 26 Jun 2012 09:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:content-type:content-transfer-encoding:subject:date :message-id:to:mime-version:x-mailer; bh=a0cs7M6l39Oc9ixl/IPlAnBvlUbmziRu44A1Oq8Rilg=; b=hXg+kgfMNXAHQwsGu7dVAfoWzF4mjEMdxIqNpOE9r+ONDAZt0SscKxu75jUKZFzo6w opkpNFf+GHJkt5QT3P6V87WheLc1wDlV9Q38D2HHdbjXbRRRuVmhaakPR+r6CrPOgDG/ atRWUC+kQsjm2u6cyrY0buBE3kcbha0FzwnnQFt0iGBtrm5N11YPGDhD5xL9o4mj5FSf ibrr1o0Z1R1WP+5DCgTijfVltmVndfNYIZCM2UB/i4m4v5UkwnzhUClj1XVTBTFPVqnT T2Qm27mdQfzxH6mHqLBjuFAb04cTWVFvmEdK9rlzR8VY2UTXWJiMiNPx24krmGFkHGfS YtbA== Received: by 10.14.94.142 with SMTP id n14mr3410609eef.211.1340728029376; Tue, 26 Jun 2012 09:27:09 -0700 (PDT) Received: from [192.168.1.103] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id m46sm132627334eeh.9.2012.06.26.09.27.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jun 2012 09:27:08 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 26 Jun 2012 18:27:05 +0200 Message-Id: To: freebsd-geom@freebsd.org Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) Subject: GEOM provider resizing. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 16:27:11 -0000 Hello. At http://people.freebsd.org/~trasz/geom-resize.diff you will find a patch that implements GEOM resizing. This includes: 1. New class method, resize(), called after mediasize gets updated, 2. New routine, g_resize_provider(), to use by class owning the provider to notify others that the provider size has changed, 3. New routine, disk_resize(), to use by disk drivers to notify others that the disk got resized, 4. Changes to geom_nop and geom_mountver to demonstrate how to implement resizing, 5. Change to da(4) driver to notify GEOM when a LUN changes size, 6. Change to geom_part(4) to handle resizing and to be able to use "gpart resize" for mounted partitions, and 7. Various fixes neccessary for this to work. Review and testing is welcome. Thanks to FreeBSD Foundation for sponsoring this. -- If you cut off my head, what would I say? Me and my head, or me and my body?