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:
parent
a4870c79ca
commit
f5cd9c3563
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user