mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
Remove redundant check in _lvs_single now that the caller
(process_each_lv_in_vg) provides it. Also, removing this check from _lvs_single now allows displaying hidden LVs that are specifically named on the command line.
This commit is contained in:
parent
6ddb5ecd72
commit
d6d08486c8
@ -33,9 +33,6 @@ static int _vgs_single(struct cmd_context *cmd __attribute((unused)),
|
|||||||
static int _lvs_single(struct cmd_context *cmd, struct logical_volume *lv,
|
static int _lvs_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||||
void *handle)
|
void *handle)
|
||||||
{
|
{
|
||||||
if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv))
|
|
||||||
return ECMD_PROCESSED;
|
|
||||||
|
|
||||||
if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL)) {
|
if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL)) {
|
||||||
stack;
|
stack;
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user