File: objects.h

package info (click to toggle)
evms 2.5.2-1.sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,248 kB
  • ctags: 15,488
  • sloc: ansic: 201,340; perl: 12,421; sh: 4,262; makefile: 1,516; yacc: 316; sed: 16
file content (56 lines) | stat: -rw-r--r-- 2,538 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 *   (C) Copyright IBM Corp. 2004
 *
 *   This program is free software;  you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 *   the GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program;  if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * Module: LVM2 Plugin
 * File: evms2/engine/plugins/lvm2/objects.h
 */

/**
 * Routines exported from objects.c
 **/
extern pv_data_t *find_pv_by_index(storage_container_t *container,
				   u_int32_t pv_index);
extern storage_object_t *find_pv_by_name(storage_container_t *container,
					 char *name);
extern void adjust_pv_indexes(storage_container_t *container);
extern int allocate_pe_map(pv_data_t *pv_data);
extern int allocate_pv_data(storage_object_t *object,
			    list_anchor_t metadata_locations,
			    key_value_t *vgda_tree, char *uuid,
			    u_int64_t label_sector, u_int32_t pv_index,
			    u_int64_t pe_start, u_int64_t pe_count,
			    unsigned long flags);
extern void deallocate_pv_data(storage_object_t *object);
extern int discover_pv_objects(list_anchor_t input_objects,
			       list_anchor_t pv_list);
extern int commit_new_pvs(storage_container_t *container, boolean backup);
extern int commit_resized_pvs(storage_container_t *container);
extern int create_new_pv(storage_object_t *object,
			 storage_container_t *container);
extern boolean extent_is_available(physical_extent_t *pe);
extern u_int64_t count_available_extents_in_pv(storage_object_t *object);
extern u_int64_t count_available_extents_in_pvs(list_anchor_t objects);
extern u_int32_t count_available_pvs(list_anchor_t objects);
extern list_anchor_t pv_names_to_list(value_list_t *pv_names,
				      storage_container_t *container);
extern int create_missing_pvs(storage_container_t *container);
extern int get_available_objects(storage_container_t *container,
				 list_anchor_t *objects);
extern u_int64_t max_consecutive_extents_on_object(storage_object_t *object);
extern u_int64_t consecutive_extents_at_pe(pv_data_t *pv_data,
					   u_int64_t pe_index);