summaryrefslogtreecommitdiffstats
path: root/tools/lvrename.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2002-12-19 23:25:55 +0000
committerAlasdair Kergon <agk@redhat.com>2002-12-19 23:25:55 +0000
commit8ef2b021edcdec38f160675349c4797335f7a264 (patch)
tree9abf06514583ded09112a98cb066879f557bee87 /tools/lvrename.c
parent4c64ed4ced7dcd3a98a63da1cd3a6f2f1f2d1701 (diff)
downloadlvm2-8ef2b021edcdec38f160675349c4797335f7a264.tar.gz
lvm2-8ef2b021edcdec38f160675349c4797335f7a264.tar.xz
lvm2-8ef2b021edcdec38f160675349c4797335f7a264.zip
Default stripesize 64k & config file setting for it;
Clear many compiler warnings (i386) & associated bugs - hopefully without introducing too many new bugs:-) (Same exercise required for other archs.) Default compilation has optimisation - or else use ./configure --enable-debug
Diffstat (limited to 'tools/lvrename.c')
-rw-r--r--tools/lvrename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lvrename.c b/tools/lvrename.c
index b061abd8..c4ebce76 100644
--- a/tools/lvrename.c
+++ b/tools/lvrename.c
@@ -22,9 +22,9 @@
int lvrename(struct cmd_context *cmd, int argc, char **argv)
{
- int maxlen;
+ size_t maxlen;
char *lv_name_old, *lv_name_new;
- char *vg_name, *vg_name_new, *vg_name_old;
+ const char *vg_name, *vg_name_new, *vg_name_old;
char *st;
int consistent = 1;
@@ -78,7 +78,7 @@ int lvrename(struct cmd_context *cmd, int argc, char **argv)
maxlen = NAME_LEN - strlen(vg_name) - strlen(cmd->dev_dir) - 3;
if (strlen(lv_name_new) > maxlen) {
log_error("New logical volume path exceeds maximum length "
- "of %d!", maxlen);
+ "of %u!", maxlen);
return ECMD_FAILED;
}