diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-01-25 09:00:18 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-01-25 09:00:18 +0000 |
commit | 3c4be983d597fcc6f05bc7173acb4e8f50c15eb2 (patch) | |
tree | 60c00f81234ad9fe7b947150969ef4e2d47633e3 /lib/activate | |
parent | 0926438aada6d3db54680aeebaf6746def1fa665 (diff) | |
download | lvm2-3c4be983d597fcc6f05bc7173acb4e8f50c15eb2.tar.gz lvm2-3c4be983d597fcc6f05bc7173acb4e8f50c15eb2.tar.xz lvm2-3c4be983d597fcc6f05bc7173acb4e8f50c15eb2.zip |
lv_info using -real layer only for origin_only LV
If the origin_only flag is passed for non lv_is_origin LVs,
the extension is not added.
Thin volumes may also use origin_only flag.
Diffstat (limited to 'lib/activate')
-rw-r--r-- | lib/activate/activate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c index e7dd45a7..27ecde44 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -552,7 +552,7 @@ int lv_info(struct cmd_context *cmd, const struct logical_volume *lv, unsigned o fs_unlock(); /* For non clustered - wait if there are non-delete ops */ } - if (!dev_manager_info(lv->vg->cmd->mem, lv, origin_only ? "real" : NULL, with_open_count, + if (!dev_manager_info(lv->vg->cmd->mem, lv, (lv_is_origin(lv) && origin_only) ? "real" : NULL, with_open_count, with_read_ahead, &dminfo, &info->read_ahead)) return_0; |