public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/daemons/dmeventd/plugins/snapshot dmevent ... Date: Wed, 19 Oct 2011 14:31:00 -0000 [thread overview] Message-ID: <20111019143149.7580.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@sourceware.org 2011-10-19 14:31:49 Modified files: daemons/dmeventd/plugins/snapshot: dmeventd_snapshot.c Log message: Remove a redundant (and in some cases, misleading) message about snapshot extension, in the snapshot dmeventd plugin. The reporting is done as needed by the LVM command nowadays. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c.diff?cvsroot=lvm2&r1=1.15&r2=1.16 --- LVM2/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c 2011/04/08 14:18:40 1.15 +++ LVM2/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c 2011/10/19 14:31:49 1.16 @@ -119,7 +119,6 @@ { char *vg = NULL, *lv = NULL, *layer = NULL; char cmd_str[1024]; - int r = 0; if (!dm_split_lvm_name(dmeventd_lvm2_pool(), device, &vg, &lv, &layer)) { syslog(LOG_ERR, "Unable to determine VG name from %s.", device); @@ -131,10 +130,7 @@ return 0; } - r = dmeventd_lvm2_run(cmd_str); - syslog(LOG_INFO, "Extension of snapshot %s/%s %s.", vg, lv, - (r == ECMD_PROCESSED) ? "finished successfully" : "failed"); - return r == ECMD_PROCESSED; + return dmeventd_lvm2_run(cmd_str) == ECMD_PROCESSED; } static void _umount(const char *device, int major, int minor)
next reply other threads:[~2011-10-19 14:31 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-10-19 14:31 mornfall [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-04-08 14:18 zkabelac 2011-02-14 14:26 mornfall 2010-02-15 12:55 prajnoha 2010-01-22 0:18 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=20111019143149.7580.qmail@sourceware.org \ --to=mornfall@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).