[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[linux-lvm] Snapshot resizing pe_allocated correction
- From: "Dale J. Stephenson" <dalestephenson mac com>
- To: linux-lvm <linux-lvm sistina com>
- Subject: [linux-lvm] Snapshot resizing pe_allocated correction
- Date: Mon Mar 3 12:43:02 2003
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;
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]