All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Snapshot resizing pe_allocated correction
@ 2003-03-03 12:43 Dale J. Stephenson
  2003-03-04  6:19 ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 2+ messages in thread
From: Dale J. Stephenson @ 2003-03-03 12:43 UTC (permalink / raw)
  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;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-04  6:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-03 12:43 [linux-lvm] Snapshot resizing pe_allocated correction Dale J. Stephenson
2003-03-04  6:19 ` Heinz J . Mauelshagen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.