public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/format_text archiver.c Date: Tue, 29 Jun 2010 15:04:00 -0000 [thread overview] Message-ID: <20100629150400.658.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2010-06-29 15:03:59 Modified files: lib/format_text: archiver.c Log message: Add error message if backup_to_file fails because of empty in_use mdas list. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/archiver.c.diff?cvsroot=lvm2&r1=1.31&r2=1.32 --- LVM2/lib/format_text/archiver.c 2010/06/28 20:32:46 1.31 +++ LVM2/lib/format_text/archiver.c 2010/06/29 15:03:59 1.32 @@ -396,6 +396,11 @@ return 0; } + if (!dm_list_size(&tf->metadata_areas_in_use)) { + log_error(INTERNAL_ERROR "No in use metadata areas to write."); + return 0; + } + /* Write and commit the metadata area */ dm_list_iterate_items(mda, &tf->metadata_areas_in_use) { if (!(r = mda->ops->vg_write(tf, vg, mda))) {
next reply other threads:[~2010-06-29 15:04 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-29 15:04 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-01-20 11:01 zkabelac 2011-02-28 20:50 mbroz 2011-01-05 15:06 zkabelac 2009-05-19 9:45 mbroz 2005-05-24 17:37 agk
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=20100629150400.658.qmail@sourceware.org \ --to=wysochanski@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).