summaryrefslogtreecommitdiffstats
path: root/tools/pvcreate.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2001-10-12 09:52:30 +0000
committerAlasdair Kergon <agk@redhat.com>2001-10-12 09:52:30 +0000
commit57613d734537dabca73a05aeed4ce30b6fac8e48 (patch)
tree1927a9b199b9deec92944a6c7736f4e77cf3fb76 /tools/pvcreate.c
parent6e91eeef1353ead8a0327b1905a4bcf093de91aa (diff)
downloadlvm2-57613d734537dabca73a05aeed4ce30b6fac8e48.tar.gz
lvm2-57613d734537dabca73a05aeed4ce30b6fac8e48.tar.xz
lvm2-57613d734537dabca73a05aeed4ce30b6fac8e48.zip
sync
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r--tools/pvcreate.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c
index aa2d0254..77ad78b2 100644
--- a/tools/pvcreate.c
+++ b/tools/pvcreate.c
@@ -32,7 +32,7 @@ int pvcreate(int argc, char **argv)
}
if (arg_count(yes_ARG) && !arg_count(force_ARG)) {
- log_error("option y can only be given with option f");
+ log_error("Option y can only be used with option f");
return EINVALID_CMD_LINE;
}
@@ -83,7 +83,7 @@ void pvcreate_single(const char *pv_name)
("Really INITIALIZE physical volume %s"
" of volume group %s [y/n]? ", pv_name,
pv->vg_name) == 'n') {
- log_print("physical volume %s not initialized",
+ log_print("Physical volume %s not initialized",
pv_name);
return;
}
@@ -104,7 +104,7 @@ void pvcreate_single(const char *pv_name)
if (arg_count(force_ARG)) {
/* FIXME: Change to log_print */
- printf("WARNING: forcing physical volume creation on %s",
+ printf("Warning: Forcing physical volume creation on %s",
pv_name);
if (pv->vg_name[0])
printf(" of volume group %s", pv->vg_name);
@@ -113,18 +113,18 @@ void pvcreate_single(const char *pv_name)
/* FIXME: If PV is in VG, remove it. NoOp? Or cache? */
- log_verbose("creating new physical volume");
- log_verbose("setting up physical volume for %s with %u sectors",
+ log_verbose("Creating new physical volume");
+ 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);
+ log_verbose("Writing physical volume data to disk %s", pv_name);
if (!(pv_write(ios, pv))) {
log_error("Failed to create physical volume %s", pv_name);
return;
}
- printf("physical volume %s successfully created\n", pv_name);
+ log_print("Physical volume %s successfully created", pv_name);
/* FIXME: Add the dbg_frees throughout! */
return;