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/test/api test.c Date: Sun, 26 Jul 2009 13:07:00 -0000 [thread overview] Message-ID: <20090726130741.7041.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2009-07-26 13:07:41 Modified files: test/api : test.c Log message: Update test/api/test.c for liblvm 'get' functions. Author: Dave Wysochanski <dwysocha@redhat.com> Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/api/test.c.diff?cvsroot=lvm2&r1=1.7&r2=1.8 --- LVM2/test/api/test.c 2009/07/26 02:35:47 1.7 +++ LVM2/test/api/test.c 2009/07/26 13:07:41 1.8 @@ -210,9 +210,10 @@ static void _show_one_vg(vg_t *vg) { - /* FIXME: uuid is not null terminated */ - printf("%s (%s): mode = %s\n", lvm_vg_get_name(vg), - lvm_vg_get_uuid(vg), "READ"); + printf("%s (%s): size=%"PRIu64", free=%"PRIu64", #pv=%"PRIu64"\n", + lvm_vg_get_name(vg), lvm_vg_get_uuid(vg), + lvm_vg_get_size(vg), lvm_vg_get_free(vg), + lvm_vg_get_pv_count(vg)); } static void _list_open_vgs(void) @@ -235,8 +236,9 @@ } printf("PVs in VG %s:\n", lvm_vg_get_name(vg)); dm_list_iterate_items(pvl, pvs) { - printf("%s (%s)\n", - lvm_pv_get_name(pvl->pv), lvm_pv_get_uuid(pvl->pv)); + printf("%s (%s): mda_count=%"PRIu64"\n", + lvm_pv_get_name(pvl->pv), lvm_pv_get_uuid(pvl->pv), + lvm_pv_get_mda_count(pvl->pv)); } } @@ -289,8 +291,9 @@ } printf("LVs in VG %s:\n", lvm_vg_get_name(vg)); dm_list_iterate_items(lvl, lvs) { - printf("%s/%s (%s)\n", lvm_vg_get_name(vg), - lvm_lv_get_name(lvl->lv), lvm_lv_get_uuid(lvl->lv)); + printf("%s/%s (%s): size=%"PRIu64"\n", lvm_vg_get_name(vg), + lvm_lv_get_name(lvl->lv), lvm_lv_get_uuid(lvl->lv), + lvm_lv_get_size(lvl->lv)); } }
next reply other threads:[~2009-07-26 13:07 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-26 13:07 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-03-01 23:29 zkabelac 2011-03-01 23:18 zkabelac 2010-11-25 14:35 mornfall 2010-11-17 20:13 mornfall 2010-11-17 19:17 mornfall 2010-10-25 14:09 wysochanski 2010-05-19 11:53 wysochanski 2010-02-24 18:16 wysochanski 2009-08-07 21:22 wysochanski 2009-07-28 14:12 wysochanski 2009-07-28 13:49 wysochanski 2009-07-27 21:02 wysochanski 2009-07-27 17:45 wysochanski 2009-07-26 20:59 wysochanski 2009-07-26 20:58 wysochanski 2009-07-26 14:37 wysochanski 2009-07-26 13:08 wysochanski 2009-07-26 2:35 wysochanski 2009-07-26 2:35 wysochanski 2009-07-24 12:51 wysochanski 2009-07-24 4:15 wysochanski 2009-07-23 23:40 wysochanski
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=20090726130741.7041.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).