public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: mbroz@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW daemons/clvmd/clvmd.c daemons ... Date: Mon, 15 Jun 2009 12:15:00 -0000 [thread overview] Message-ID: <20090615121524.30828.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mbroz@sourceware.org 2009-06-15 12:15:24 Modified files: . : WHATS_NEW daemons/clvmd : clvmd.c lvm-functions.c lvm-functions.h Log message: Destroy toolcontext on exit in clvmd (fixes memory pool leaks). Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1149&r2=1.1150 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd.c.diff?cvsroot=lvm2&r1=1.58&r2=1.59 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/lvm-functions.c.diff?cvsroot=lvm2&r1=1.62&r2=1.63 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/lvm-functions.h.diff?cvsroot=lvm2&r1=1.10&r2=1.11 --- LVM2/WHATS_NEW 2009/06/15 12:08:59 1.1149 +++ LVM2/WHATS_NEW 2009/06/15 12:15:23 1.1150 @@ -1,5 +1,6 @@ Version 2.02.48 - =============================== + Destroy toolcontext on exit in clvmd (fixes memory pool leaks). Fix lvconvert to not poll mirror if no conversion in progress. Fix memory leaks in toolcontext error path. Re-instate partial activation support in clustered mode. (2.02.40) --- LVM2/daemons/clvmd/clvmd.c 2009/05/19 10:39:00 1.58 +++ LVM2/daemons/clvmd/clvmd.c 2009/06/15 12:15:23 1.59 @@ -481,6 +481,8 @@ /* Do some work */ main_loop(local_sock, cmd_timeout); + destroy_lvm(); + return 0; } --- LVM2/daemons/clvmd/lvm-functions.c 2009/06/12 08:30:19 1.62 +++ LVM2/daemons/clvmd/lvm-functions.c 2009/06/15 12:15:23 1.63 @@ -811,3 +811,10 @@ return 1; } + +void destroy_lvm(void) +{ + if (cmd) + destroy_toolcontext(cmd); + cmd = NULL; +} --- LVM2/daemons/clvmd/lvm-functions.h 2009/05/19 10:39:00 1.10 +++ LVM2/daemons/clvmd/lvm-functions.h 2009/06/15 12:15:23 1.11 @@ -28,6 +28,7 @@ extern int do_check_lvm1(const char *vgname); extern int do_refresh_cache(void); extern int init_lvm(int using_gulm); +extern void destroy_lvm(void); extern void init_lvhash(void); extern void destroy_lvhash(void); extern void lvm_do_backup(const char *vgname);
next reply other threads:[~2009-06-15 12:15 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-06-15 12:15 mbroz [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-09-24 20:48 zkabelac 2011-03-29 20:30 zkabelac 2011-02-18 14:47 zkabelac 2010-08-17 16:25 agk 2010-04-13 19:54 zkabelac 2008-03-06 8:41 ccaulfield 2006-11-30 13:19 pcaulfield 2005-06-13 10:16 pcaulfield 2005-03-09 14:08 pcaulfield 2005-02-18 15:31 pcaulfield
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=20090615121524.30828.qmail@sourceware.org \ --to=mbroz@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).