mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
21517c2bd5
Replace usage of dm_hash with radix_tree to quickly find LV name with a vg and also index PV names with set of available PVs. This PV index is only needed during the import, but instead of passing 'radix_tree *' everywhere, just keep this within a VG struct as well and once the parsing is finished, release this PV index radix_tree. This also makes it easier to replace this structure in the future if needed. lv_set_name now uses radix_tree remove+insert to keep lv_names tree in-sync and usable for find_lv queries.
29 lines
887 B
C
29 lines
887 B
C
/*
|
|
* Copyright (C) 2003-2004 Sistina Software, Inc. All rights reserved.
|
|
* Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
|
|
*
|
|
* This file is part of LVM2.
|
|
*
|
|
* This copyrighted material is made available to anyone wishing to use,
|
|
* modify, copy, or redistribute it subject to the terms and conditions
|
|
* of the GNU Lesser General Public License v.2.1.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _LVM_TEXT_IMPORT_H
|
|
#define _LVM_TEXT_IMPORT_H
|
|
|
|
#include <inttypes.h>
|
|
|
|
struct dm_hash_table;
|
|
struct lv_segment;
|
|
struct dm_config_node;
|
|
|
|
int text_import_areas(struct lv_segment *seg, const struct dm_config_node *sn,
|
|
const struct dm_config_value *cv, uint64_t status);
|
|
|
|
#endif
|