From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Snapshot resizing pe_allocated correction
Date: Tue Mar 4 06:19:01 2003 [thread overview]
Message-ID: <20030304131239.A20001@sistina.com> (raw)
In-Reply-To: <3E63CCA0.3000908@mac.com>; from dalestephenson@mac.com on Mon, Mar 03, 2003 at 01:44:00PM -0800
Accepted.
Please send patches relative to the head of CVS.
Thanks,
Heinz -- The LVM Guy --
On Mon, Mar 03, 2003 at 01:44:00PM -0800, Dale J. Stephenson wrote:
> 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;
> }
>
>
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
prev parent reply other threads:[~2003-03-04 6:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-03 12:43 [linux-lvm] Snapshot resizing pe_allocated correction Dale J. Stephenson
2003-03-04 6:19 ` Heinz J . Mauelshagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030304131239.A20001@sistina.com \
--to=mauelshagen@sistina.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox