~ubuntu-branches/ubuntu/gutsy/evms/gutsy

« back to all changes in this revision

Viewing changes to plugins/bbr/bbroptions.h

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-09-14 19:32:30 UTC
  • mfrom: (2.1.13 edgy)
  • Revision ID: james.westby@ubuntu.com-20060914193230-4b1pmy0coqk81sqa
Tags: 2.5.5-18
* Apply patches from upstream:
  * cli_query_segfault.patch, fixes a segfault in the CLI when doing a
    query.
  * cli_reload_options.patch, reloads the right option descriptors after
    a change.
  * ntfs_unmkfs.patch, fixes a bug in the wiping of NTFS file systems.
  * raid5_remove_spare_fix.patch + raid5_remove_spare_fix_2.patch, lets the
    user remove a spare if resync does not run.
  * raid5_algorithm.patch, makes EVMS heed the parity algorithm the user
    selects when creating a RAID-5 array.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 *   (C) Copyright IBM Corp. 2001, 2003
 
4
 *
 
5
 *   This program is free software;  you can redistribute it and/or modify
 
6
 *   it under the terms of the GNU General Public License as published by
 
7
 *   the Free Software Foundation; either version 2 of the License, or
 
8
 *   (at your option) any later version.
 
9
 *
 
10
 *   This program is distributed in the hope that it will be useful,
 
11
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 
13
 *   the GNU General Public License for more details.
 
14
 *
 
15
 *   You should have received a copy of the GNU General Public License
 
16
 *   along with this program;  if not, write to the Free Software
 
17
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
18
 *
 
19
 * Module: bbroptions.h
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef   BBR_OPTIONS_HEADER
 
24
#define   BBR_OPTIONS_HEADER 1
 
25
 
 
26
 
 
27
//
 
28
// Create Option Info
 
29
//
 
30
#define BBR_CREATE_OPTION_COUNT                     1
 
31
 
 
32
#define BBR_CREATE_NAME_INDEX                       0
 
33
#define BBR_CREATE_NAME_NAME                        "Name"
 
34
 
 
35
 
 
36
//
 
37
// Expand Option Info
 
38
//
 
39
#define BBR_EXPAND_OPTION_COUNT                     1
 
40
 
 
41
#define BBR_EXPAND_BLOCKCOUNT_INDEX                 0
 
42
#define BBR_EXPAND_BLOCKCOUNT_NAME                  "replacement blocks"
 
43
 
 
44
 
 
45
 
 
46
//
 
47
//   Shrink Option Info
 
48
//
 
49
#define BBR_SHRINK_OPTION_COUNT                     1
 
50
 
 
51
#define BBR_SHRINK_BLOCKCOUNT_INDEX                 0
 
52
#define BBR_SHRINK_BLOCKCOUNT_NAME                  "replacement blocks"
 
53
 
 
54
                                        
 
55
// 
 
56
//  BBR Info
 
57
//
 
58
#define BBR_INFO_COUNT            5
 
59
 
 
60
#define BBR_INFO_NAME_INDEX       0
 
61
#define BBR_INFO_SIZE_INDEX       1
 
62
#define BBR_INFO_BLKS_INDEX       2
 
63
#define BBR_INFO_BLKSZ_INDEX      3
 
64
#define BBR_INFO_TBLSZ_INDEX      4
 
65
                                        
 
66
                                        
 
67
// 
 
68
//  Plugin Info
 
69
//
 
70
#define BBR_PLUGIN_INFO_COUNT                    6
 
71
 
 
72
#define BBR_PLUGIN_INFO_SNAME_INDEX              0
 
73
#define BBR_PLUGIN_INFO_LNAME_INDEX              1
 
74
#define BBR_PLUGIN_INFO_TYPE_INDEX               2
 
75
#define BBR_PLUGIN_INFO_VERSION_INDEX            3
 
76
#define BBR_PLUGIN_INFO_REQENGSVCVERSION_INDEX   4
 
77
#define BBR_PLUGIN_INFO_REQPLUGAPIVERSION_INDEX  5
 
78
 
 
79
 
 
80
 
 
81
int         BBR_GetOptionCount(task_context_t * task);
 
82
 
 
83
int         BBR_InitTask(task_context_t * context);
 
84
 
 
85
int         BBR_SetOption( task_context_t * context, u_int32_t index, value_t * value, u_int32_t * info );
 
86
 
 
87
int         BBR_GetInfo( storage_object_t  * object, char *name,  extended_info_array_t * * info);
 
88
 
 
89
int         BBR_GetPluginInfo( char * descriptor_name, extended_info_array_t * * info );
 
90
 
 
91
int         BBR_SetObjects( task_context_t * context,
 
92
                            list_anchor_t    declined_objects,
 
93
                            task_effect_t  * effect );
 
94
#endif
 
95