summaryrefslogtreecommitdiffstats
path: root/tools/pvcreate.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2001-10-02 17:09:05 +0000
committerAlasdair Kergon <agk@redhat.com>2001-10-02 17:09:05 +0000
commit9e300c8427eae36c0640636a01408932e1376cef (patch)
tree18dc9e984db7a5d058eef51cc98042581984b8f6 /tools/pvcreate.c
parentfa2c452669d63e4b209047f38a8d8ba3f0d8ad13 (diff)
downloadlvm2-9e300c8427eae36c0640636a01408932e1376cef.tar.gz
lvm2-9e300c8427eae36c0640636a01408932e1376cef.tar.xz
lvm2-9e300c8427eae36c0640636a01408932e1376cef.zip
pvscan framework
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r--tools/pvcreate.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c
index 810e1bfe..f606b4c8 100644
--- a/tools/pvcreate.c
+++ b/tools/pvcreate.c
@@ -69,8 +69,8 @@ void pvcreate_single(const char *pv_name)
pv = ios->pv_read(ios, pv_dev);
if (pv && (pv->status & STATUS_EXPORTED)) {
- log_error ("Physical volume %s belongs to exported volume"
- " group %s", pv_name, pv->vg_name);
+ log_error("Physical volume %s belongs to exported volume"
+ " group %s", pv_name, pv->vg_name);
return;
}
@@ -95,18 +95,15 @@ void pvcreate_single(const char *pv_name)
}
if (pv && (pv->status & STATUS_ACTIVE)) {
- log_error("Can't create on active physical volume %s",
- pv_name);
+ log_error("Can't create on active physical volume %s", pv_name);
return;
}
-
if (!pv) {
if (!(pv = pv_create()))
return;
/* FIXME: Set up initial size & PEs here */
}
-
if (arg_count(force_ARG)) {
/* FIXME: Change to log_print */
@@ -123,7 +120,6 @@ void pvcreate_single(const char *pv_name)
log_verbose("setting up physical volume for %s with %u sectors",
pv_name, size);
-
log_verbose("writing physical volume data to disk %s", pv_name);
if (!(pv_write(ios, pv))) {