1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-11 09:18:25 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2012-01-25 09:00:18 +00:00
parent 7264da9af1
commit fd3e9e102d

View File

@ -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;