1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

clean-up: Another functiont that can use 'lv_layer'

lib/activate/dev_manager.c:dev_manager_raid_status() can also use
the new 'lv_layer' function.
This commit is contained in:
Jonathan Brassow 2013-02-04 17:10:16 -06:00
parent a4870c79ca
commit f5cd9c3563

View File

@ -1031,7 +1031,7 @@ int dev_manager_raid_status(struct dev_manager *dm,
uint64_t start, length;
char *type = NULL;
char *params = NULL;
const char *layer = (lv_is_origin(lv)) ? "real" : NULL;
const char *layer = lv_layer(lv);
/* Build dlid for the thin pool layer */
if (!(dlid = build_dm_uuid(dm->mem, lv->lvid.s, layer)))