diff options
author | Alasdair Kergon <agk@redhat.com> | 2002-02-11 21:00:35 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2002-02-11 21:00:35 +0000 |
commit | 6fda126dd700f6ef7fef71283c12b23c7a06a1d2 (patch) | |
tree | 40d5d09f230eceea5199d5964e7abe86eb83117a /tools/lvrename.c | |
parent | 60274aba6ec2c6a6a0e1e2656d97a574b79f5775 (diff) | |
download | lvm2-6fda126dd700f6ef7fef71283c12b23c7a06a1d2.tar.gz lvm2-6fda126dd700f6ef7fef71283c12b23c7a06a1d2.tar.xz lvm2-6fda126dd700f6ef7fef71283c12b23c7a06a1d2.zip |
Run through indent - no (intentional) changes to any code.
Diffstat (limited to 'tools/lvrename.c')
-rw-r--r-- | tools/lvrename.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/lvrename.c b/tools/lvrename.c index 3adb0222..f7d704f5 100644 --- a/tools/lvrename.c +++ b/tools/lvrename.c @@ -74,8 +74,9 @@ int lvrename(struct cmd_context *cmd, int argc, char **argv) } if (!is_valid_chars(lv_name_new)) { - log_error("New logical volume name \"%s\" has invalid characters", - lv_name_new); + log_error + ("New logical volume name \"%s\" has invalid characters", + lv_name_new); return EINVALID_CMD_LINE; } @@ -96,15 +97,15 @@ int lvrename(struct cmd_context *cmd, int argc, char **argv) goto error; } - if (vg->status & EXPORTED_VG) { - log_error("Volume group \"%s\" is exported", vg->name); + if (vg->status & EXPORTED_VG) { + log_error("Volume group \"%s\" is exported", vg->name); goto error; - } + } - if (!(vg->status & LVM_WRITE)) { - log_error("Volume group \"%s\" is read-only", vg_name); + if (!(vg->status & LVM_WRITE)) { + log_error("Volume group \"%s\" is read-only", vg_name); goto error; - } + } if (find_lv_in_vg(vg, lv_name_new)) { log_error("Logical volume \"%s\" already exists in " |