cluster/group/gfs_controld cpg.c lock_dlm.h ma ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-06-15 15:27:43
Modified files:
group/gfs_controld: cpg.c lock_dlm.h main.c recover.c
Log message:
Significant reworking of how mounts are processed. The previous approach couldn't deal with certain node failures that occured while processing a new mounter. In this new approach, processing a mounter is largely independent of processing node failures. Nodes failing while processing a mounter hasn't actually been tested yet, so there are sure to be details to fix.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/cpg.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/lock_dlm.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/main.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/recover.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
group/gfs_controld/cpg.c +3 -3
@@ -27,7 +27,7 @@void receive_recovery_status (struct mountgroup *mg,char *buf,int len,int from);void receive_recovery_done (struct mountgroup *mg,char *buf,int len,int from); - +char *msg_name (int type);static void do_deliver (int nodeid,char *data,int len) {
@@ -58,8 +58,8 @@discard them since they're only relevant to the app group. */ if (!mg->last_callback) { -log_group (mg,"discard message type %d len %d from %d" , - hd->type, len, nodeid); +log_group (mg,"discard %s len %d from %d" , +msg_name (hd->type), len, nodeid);return ; }
group/gfs_controld/lock_dlm.h +19 -16
@@ -111,37 +111,37 @@char dir[PATH_MAX +1 ];char options[MAX_OPTIONS_LEN +1 ]; -char error_msg[128 ]; -int mount_client; -int remount_client;int last_stop;int last_start;int last_finish;int last_callback;int start_event_nr;int start_type; -int needs_recovery; -int our_jid; + +char error_msg[128 ]; +int mount_client; +int remount_client; +int init; +int got_our_options; +int got_our_journals; +int mount_client_notified; +int mount_client_delay; +int delay_send_journals; +int got_kernel_mount;int first_mounter;int first_mounter_done;int emulate_first_mounter;int wait_first_done; -int init; -int init2;int low_finished_nodeid; + +int needs_recovery; +int our_jid;int spectator;int readonly;int rw;int withdraw; -void *journals_msg; -int journals_msg_len; -int journals_msg_from; -void *options_msg; -int options_msg_len; -int options_msg_from; -struct list_head saved_recovery_status; - +struct list_head saved_messages;void *start2_fn; };
@@ -174,11 +174,12 @@struct list_head list;int nodeid;int jid; -int new; +int spectator;int readonly;int rw;uint32_t opts; +int tell_gfs_to_recover;int wait_gfs_recover_done;int gone_event;
@@ -188,6 +189,7 @@int recovery_status;int withdraw;struct dlm_lksb wd_lksb; +int needs_journals; };enum {
@@ -234,6 +236,7 @@int do_remount (int ci,char *dir,char *mode);int do_withdraw (char *name);int kernel_recovery_done (char *name); +void ping_kernel_mount (char *table);int client_send (int ci,char *buf,int len);
group/gfs_controld/main.c +2 -1
@@ -201,9 +201,10 @@if (!strcmp (act,"change@" ))kernel_recovery_done (argv[3 ]); -else if (!strcmp (act,"offline@" ))do_withdraw (argv[3 ]); +else +ping_kernel_mount (argv[3 ]);return 0 ; }
group/gfs_controld/recover.c +372 -296
1,005 lines not on this page · raw message