summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WHATS_NEW1
-rw-r--r--man/Makefile.in2
-rw-r--r--man/lvm.81
-rw-r--r--man/pvck.815
-rw-r--r--tools/Makefile.in1
-rw-r--r--tools/commands.h9
-rw-r--r--tools/pvck.c30
7 files changed, 58 insertions, 1 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index 26c92dea..9abfa479 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.25 -
=================================
+ Add pvck command stub.
Update lists of attribute characters in man pages.
Change cling alloc policy attribute character from 'C' to l'.
Fix creation and conversion of mirrors with tags.
diff --git a/man/Makefile.in b/man/Makefile.in
index 4a61ee3d..615265a6 100644
--- a/man/Makefile.in
+++ b/man/Makefile.in
@@ -20,7 +20,7 @@ MAN5=lvm.conf.5
MAN8=lvchange.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 lvm.8 \
lvmchange.8 lvmdiskscan.8 lvmdump.8 \
lvreduce.8 lvremove.8 lvrename.8 lvresize.8 lvs.8 \
- lvscan.8 pvchange.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 \
+ lvscan.8 pvchange.8 pvck.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 \
pvresize.8 pvs.8 pvscan.8 vgcfgbackup.8 vgcfgrestore.8 vgchange.8 \
vgck.8 vgcreate.8 vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 \
vgimport.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 vgrename.8 \
diff --git a/man/lvm.8 b/man/lvm.8
index eb2483c5..a0670898 100644
--- a/man/lvm.8
+++ b/man/lvm.8
@@ -194,6 +194,7 @@ All tools return a status code of zero on success or non-zero on failure.
.BR lvs (8),
.BR lvscan (8),
.BR pvchange (8),
+.BR pvck (8),
.BR pvcreate (8),
.BR pvdisplay (8),
.BR pvmove (8),
diff --git a/man/pvck.8 b/man/pvck.8
new file mode 100644
index 00000000..1bf8692b
--- /dev/null
+++ b/man/pvck.8
@@ -0,0 +1,15 @@
+.TH PVCK 8 "LVM TOOLS" "Sistina Software UK" \" -*- nroff -*-
+.SH NAME
+pvck \- check physical volume metadata
+.SH SYNOPSIS
+.B pvck
+[\-d/\-\-debug] [\-h/\-?/\-\-help] [\-v/\-\-verbose] [PhysicalVolume...]
+.SH DESCRIPTION
+pvck checks physical volume LVM metadata for consistency.
+.SH OPTIONS
+See \fBlvm\fP for common options.
+.SH SEE ALSO
+.BR lvm (8),
+.BR pvcreate (8),
+.BR pvscan (8)
+.BR vgck (8)
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);
+}