mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-27 01:57:55 +03:00
Thin for_each_sub_lv
Adapt to scan thin dependency LVs
This commit is contained in:
parent
21fc2af47e
commit
6f9deb5b47
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||
* Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
|
||||
* Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved.
|
||||
*
|
||||
* This file is part of LVM2.
|
||||
*
|
||||
@ -2784,8 +2784,21 @@ int for_each_sub_lv(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
if (!for_each_sub_lv(cmd, seg->log_lv, fn, data))
|
||||
return_0;
|
||||
}
|
||||
if (seg->metadata_lv && !fn(cmd, seg->metadata_lv, data))
|
||||
|
||||
if (seg->pool_lv) {
|
||||
if (!fn(cmd, seg->pool_lv, data))
|
||||
return_0;
|
||||
if (!for_each_sub_lv(cmd, seg->pool_lv, fn, data))
|
||||
return_0;
|
||||
}
|
||||
|
||||
if (seg->metadata_lv) {
|
||||
if (!fn(cmd, seg->metadata_lv, data))
|
||||
return_0;
|
||||
if (!for_each_sub_lv(cmd, seg->metadata_lv, fn, data))
|
||||
return_0;
|
||||
}
|
||||
|
||||
for (s = 0; s < seg->area_count; s++) {
|
||||
if (seg_type(seg, s) != AREA_LV)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user