diff options
author | Alasdair Kergon <agk@redhat.com> | 2008-01-30 14:00:02 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2008-01-30 14:00:02 +0000 |
commit | 67cdbd7e4dc4fcd08c54de6e2c943d059df14147 (patch) | |
tree | 2dde8ace94d9730fe88be445487f2a6efb6f0786 /tools/pvdisplay.c | |
parent | c51b9fff19d4891addf22f35950eeae48be9cac8 (diff) | |
download | lvm2-67cdbd7e4dc4fcd08c54de6e2c943d059df14147.tar.gz |
Some whitespace tidy-ups.
Diffstat (limited to 'tools/pvdisplay.c')
-rw-r--r-- | tools/pvdisplay.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/pvdisplay.c b/tools/pvdisplay.c index a2dacf403..6ba75ea45 100644 --- a/tools/pvdisplay.c +++ b/tools/pvdisplay.c @@ -30,10 +30,10 @@ static int _pvdisplay_single(struct cmd_context *cmd, vg_name = pv_vg_name(pv); if (!(vg = vg_lock_and_read(cmd, vg_name, (char *)&pv->vgid, LCK_VG_READ, CLUSTERED, 0))) { - log_error("Skipping volume group %s", vg_name); + log_error("Skipping volume group %s", vg_name); /* FIXME If CLUSTERED should return ECMD_PROCESSED here */ - return ECMD_FAILED; - } + return ECMD_FAILED; + } /* * Replace possibly incomplete PV structure with new one @@ -42,8 +42,8 @@ static int _pvdisplay_single(struct cmd_context *cmd, if (!(pvl = find_pv_in_vg(vg, pv_name))) { log_error("Unable to find \"%s\" in volume group \"%s\"", pv_name, vg->name); - ret = ECMD_FAILED; - goto out; + ret = ECMD_FAILED; + goto out; } pv = pvl->pv; @@ -52,7 +52,7 @@ static int _pvdisplay_single(struct cmd_context *cmd, if (is_orphan(pv)) size = pv_size(pv); else - size = (pv_pe_count(pv) - pv_pe_alloc_count(pv)) * + size = (pv_pe_count(pv) - pv_pe_alloc_count(pv)) * pv_pe_size(pv); if (arg_count(cmd, short_ARG)) { @@ -80,8 +80,8 @@ static int _pvdisplay_single(struct cmd_context *cmd, pvdisplay_segments(pv); out: - if (vg_name) - unlock_vg(cmd, vg_name); + if (vg_name) + unlock_vg(cmd, vg_name); return ret; } |