public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools reporter.c Date: Sat, 27 Jan 2007 02:32:00 -0000 [thread overview] Message-ID: <20070127023231.28858.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2007-01-27 02:32:31 Modified files: tools : reporter.c Log message: fix pvsegs report too Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/reporter.c.diff?cvsroot=lvm2&r1=1.19&r2=1.20 --- LVM2/tools/reporter.c 2007/01/27 02:09:06 1.19 +++ LVM2/tools/reporter.c 2007/01/27 02:32:31 1.20 @@ -150,6 +150,18 @@ return process_each_pv_in_vg(cmd, vg, NULL, handle, &_pvs_single); } +static int _pvsegs_in_vg(struct cmd_context *cmd, const char *vg_name, + struct volume_group *vg, int consistent, + void *handle) +{ + if (!vg) { + log_error("Volume group %s not found", vg_name); + return ECMD_FAILED; + } + + return process_each_pv_in_vg(cmd, vg, NULL, handle, &_pvsegs_single); +} + static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t report_type) { @@ -323,7 +335,7 @@ report_handle, &_pvsegs_single); else r = process_each_vg(cmd, argc, argv, LCK_VG_READ, 0, - report_handle, &_pvs_in_vg); + report_handle, &_pvsegs_in_vg); break; }
next reply other threads:[~2007-01-27 2:32 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-01-27 2:32 agk [this message] 2009-01-10 17:21 agk 2010-04-23 19:10 snitzer 2010-11-17 22:26 mornfall
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=20070127023231.28858.qmail@sourceware.org \ --to=agk@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).