mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +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:
parent
a4870c79ca
commit
f5cd9c3563
@ -1031,7 +1031,7 @@ int dev_manager_raid_status(struct dev_manager *dm,
|
|||||||
uint64_t start, length;
|
uint64_t start, length;
|
||||||
char *type = NULL;
|
char *type = NULL;
|
||||||
char *params = 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 */
|
/* Build dlid for the thin pool layer */
|
||||||
if (!(dlid = build_dm_uuid(dm->mem, lv->lvid.s, layer)))
|
if (!(dlid = build_dm_uuid(dm->mem, lv->lvid.s, layer)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user