From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3E63CCA0.3000908@mac.com> From: "Dale J. Stephenson" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [linux-lvm] Snapshot resizing pe_allocated correction Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Mon Mar 3 12:43:02 2003 List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-lvm Another slight fix. When a snapshot is resized, the volume groups' pe_allocated field is not updated. The following patch should fix this problem: --- linux/drivers/md/lvm.c.orig Mon Apr 29 08:50:41 2002 +++ linux/drivers/md/lvm.c Mon Apr 29 12:41:29 2002 @@ -2280,6 +2280,9 @@ return -ENOMEM; } + vg_ptr->pe_allocated -= old_lv->lv_allocated_snapshot_le; + vg_ptr->pe_allocated += new_lv->lv_allocated_le; + return 0; }