diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2007-03-30 21:00:26 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2007-03-30 21:00:26 +0000 |
commit | cc5a4e1d3855dbe7953d4ac56fc8d9bbe1c18c1f (patch) | |
tree | b44ba078b481be1e6b526be36112bcb213f6be5a /tools | |
parent | 02c83d6edf5ecbc2806490888d3f910eef063cf7 (diff) | |
download | lvm2-cc5a4e1d3855dbe7953d4ac56fc8d9bbe1c18c1f.tar.gz lvm2-cc5a4e1d3855dbe7953d4ac56fc8d9bbe1c18c1f.tar.xz lvm2-cc5a4e1d3855dbe7953d4ac56fc8d9bbe1c18c1f.zip |
Add stub for pvck, a command to check physical volume consistency.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile.in | 1 | ||||
-rw-r--r-- | tools/commands.h | 9 | ||||
-rw-r--r-- | tools/pvck.c | 30 |
3 files changed, 40 insertions, 0 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in index a1726749..07163138 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -38,6 +38,7 @@ SOURCES =\ lvscan.c \ polldaemon.c \ pvchange.c \ + pvck.c \ pvcreate.c \ pvdisplay.c \ pvmove.c \ diff --git a/tools/commands.h b/tools/commands.h index d8bff4de..ba6136c2 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -407,6 +407,15 @@ xx(pvresize, physicalvolumesize_ARG, test_ARG) +xx(pvck, + "Check the consistency of physical volume(s)", + "pvck " + "\t[-d|--debug]\n" + "\t[-h|--help]\n" + "\t[-v|--verbose]\n" + "\t[--version]" "\n" + "\tPhysicalVolume [PhysicalVolume...]\n" ) + xx(pvcreate, "Initialize physical volume(s) for use by LVM", "pvcreate " "\n" diff --git a/tools/pvck.c b/tools/pvck.c new file mode 100644 index 00000000..a928d085 --- /dev/null +++ b/tools/pvck.c @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. + * Copyright (C) 2007 Red Hat, Inc. All rights reserved. + * + * This file is part of LVM2. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU General Public License v.2. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "tools.h" + +static int _pvck_single(struct cmd_context * cmd, + struct volume_group * vg, + struct physical_volume * pv, + void *handle) +{ + return ECMD_PROCESSED; +} + +int pvck(struct cmd_context *cmd, int argc, char **argv) +{ + /* FIXME: Correlate findings of each PV */ + return process_each_pv(cmd, argc, argv, NULL, NULL, _pvck_single); +} |