public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: ccaulfield@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW daemons/clvmd/clvmd-cman.c da ... Date: Tue, 10 Feb 2009 11:52:00 -0000 [thread overview] Message-ID: <20090210115241.13073.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: ccaulfield@sourceware.org 2009-02-10 11:52:40 Modified files: . : WHATS_NEW daemons/clvmd : clvmd-cman.c clvmd-corosync.c Log message: Allow clvmd to start up if its lockspace already exists. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1038&r2=1.1039 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-cman.c.diff?cvsroot=lvm2&r1=1.24&r2=1.25 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-corosync.c.diff?cvsroot=lvm2&r1=1.2&r2=1.3 --- LVM2/WHATS_NEW 2009/02/09 09:45:49 1.1038 +++ LVM2/WHATS_NEW 2009/02/10 11:52:40 1.1039 @@ -1,5 +1,6 @@ Version 2.02.45 - =================================== + Allow clvmd to start up if its lockspace already exists. Separate PV label attributes which do not need parse metadata when reporting. Remove external dependency on the 'cut' command in fsadm. Fix pvs segfault when pv mda attributes requested for not available PV. --- LVM2/daemons/clvmd/clvmd-cman.c 2008/11/04 16:41:47 1.24 +++ LVM2/daemons/clvmd/clvmd-cman.c 2009/02/10 11:52:40 1.25 @@ -110,8 +110,13 @@ /* Create a lockspace for LV & VG locks to live in */ lockspace = dlm_create_lockspace(LOCKSPACE_NAME, 0600); if (!lockspace) { - syslog(LOG_ERR, "Unable to create lockspace for CLVM: %m"); - return -1; + if (errno == EEXIST) { + lockspace = dlm_open_lockspace(LOCKSPACE_NAME); + } + if (!lockspace) { + syslog(LOG_ERR, "Unable to create lockspace for CLVM: %m"); + return -1; + } } dlm_ls_pthread_init(lockspace); DEBUGLOG("DLM initialisation complete\n"); --- LVM2/daemons/clvmd/clvmd-corosync.c 2009/02/02 14:34:25 1.2 +++ LVM2/daemons/clvmd/clvmd-corosync.c 2009/02/10 11:52:40 1.3 @@ -314,9 +314,14 @@ /* Create a lockspace for LV & VG locks to live in */ lockspace = dlm_create_lockspace(LOCKSPACE_NAME, 0600); if (!lockspace) { - syslog(LOG_ERR, "Unable to create lockspace for CLVM: %m"); - quorum_finalize(quorum_handle); - return -1; + if (errno == EEXIST) { + lockspace = dlm_open_lockspace(LOCKSPACE_NAME); + } + if (!lockspace) { + syslog(LOG_ERR, "Unable to create lockspace for CLVM: %m"); + quorum_finalize(quorum_handle); + return -1; + } } dlm_ls_pthread_init(lockspace); DEBUGLOG("DLM initialisation complete\n");
next reply other threads:[~2009-02-10 11:52 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-02-10 11:52 ccaulfield [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-09-25 19:37 zkabelac 2011-01-19 23:09 mbroz 2010-06-21 15:57 agk 2009-04-21 13:11 mbroz 2007-05-02 12:22 pcaulfield 2005-03-07 17:03 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=20090210115241.13073.qmail@sourceware.org \ --to=ccaulfield@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).