~ubuntu-branches/ubuntu/trusty/drbd8/trusty

« back to all changes in this revision

Viewing changes to user/drbdadm.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2011-07-05 15:40:13 UTC
  • mfrom: (1.4.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110705154013-f9l32owj6mi9e1p0
Tags: 2:8.3.11-0ubuntu1
* New upstream release
* debian/patches/01_ubuntu_cn_idx.dpatch: Refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
  struct d_option* startup_options;
137
137
  struct d_option* handlers;
138
138
  struct d_option* proxy_options;
 
139
  struct d_option* proxy_plugins;
139
140
  struct d_resource* next;
140
141
  struct d_name *become_primary_on;
141
142
  char *config_file; /* The config file this resource is define in.*/
202
203
extern void set_peer_in_resource(struct d_resource* res, int peer_required);
203
204
extern void set_on_hosts_in_res(struct d_resource *res);
204
205
extern void set_disk_in_res(struct d_resource *res);
 
206
extern char *proxy_connection_name(struct d_resource *res);
 
207
int parse_proxy_settings(struct d_resource *res, int check_proxy_token);
 
208
/* conn_name is optional and mostly for compatibility with dcmd */
 
209
int do_proxy_conn_up(struct d_resource *res, const char *conn_name);
 
210
int do_proxy_conn_down(struct d_resource *res, const char *conn_name);
 
211
int do_proxy_conn_plugins(struct d_resource *res, const char *conn_name);
205
212
 
206
213
extern char *config_file;
207
214
extern char *config_save;
216
223
extern int dry_run;
217
224
extern int verbose;
218
225
extern char* drbdsetup;
 
226
extern char* drbd_proxy_ctl;
219
227
extern char ss_buffer[1024];
220
228
extern struct utsname nodeinfo;
221
229
 
241
249
*/
242
250
 
243
251
#define ssprintf(ptr,...) \
244
 
  ptr=strcpy(alloca(snprintf(ss_buffer,1024,##__VA_ARGS__)+1),ss_buffer)
 
252
  ptr=strcpy(alloca(snprintf(ss_buffer,sizeof(ss_buffer),##__VA_ARGS__)+1),ss_buffer)
245
253
 
246
254
/* CAUTION: arguments may not have side effects! */
247
255
#define for_each_resource(res,tmp,config) \
261
269
  };                                          \
262
270
  _l;                                         \
263
271
})
 
272
 
 
273
 
 
274
#define PARSER_CHECK_PROXY_KEYWORD (1)
 
275
#define PARSER_STOP_IF_INVALID (2)
 
276