cluster/group/gfs_controld lock_dlm.h main.c r ...
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL50
Changes by: teigland at sourceware.org 2006-12-20 19:16:21
Modified files:
group/gfs_controld: lock_dlm.h main.c recover.c
Log message:
Support mounting a single fs on multiple mount points. bz 218560
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/lock_dlm.h.diff?cvsroot=cluster&only_with_tag=RHEL50&r1=1.21.4.5&r2=1.21.4.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/main.c.diff?cvsroot=cluster&only_with_tag=RHEL50&r1=1.18.4.8&r2=1.18.4.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/recover.c.diff?cvsroot=cluster&only_with_tag=RHEL50&r1=1.23.4.4&r2=1.23.4.5
group/gfs_controld/lock_dlm.h +8 -2
@@ -113,6 +113,12 @@ } \ } +struct mountpoint { +struct list_head list; +char dir[PATH_MAX +1 ]; +int client; +}; +struct mountgroup {struct list_head list;uint32_t id;
@@ -120,11 +126,11 @@struct list_head members_gone;int memb_count;struct list_head resources;/* for plocks */ +struct list_head mountpoints;char name[MAXNAME +1 ];char table[MAXNAME +1 ];char type[5 ]; -char dir[PATH_MAX +1 ];char options[MAX_OPTIONS_LEN +1 ];char dev[PATH_MAX +1 ];
@@ -280,7 +286,7 @@int kernel_recovery_done (char *name);void ping_kernel_mount (char *table);void save_message (struct mountgroup *mg,char *buf,int len,int from,int type); -void got_mount_result (struct mountgroup *mg,int result); +void got_mount_result (struct mountgroup *mg,int result,int ci,int another);int client_send (int ci,char *buf,int len);
group/gfs_controld/main.c +5 -3
@@ -21,6 +21,7 @@int fd;char type[32 ];struct mountgroup *mg; +int another_mount; };static int client_maxi;
@@ -298,14 +299,15 @@ argv[6], &mg); fd = client[ci].fd;fcntl (fd,F_SETFL ,fcntl (fd,F_GETFL ,0 ) |O_NONBLOCK ); -if (!rv) { +if (!rv || rv == -EALREADY ) { + client[ci].another_mount = rv; client[ci].mg = mg; mg->mount_client_fd = fd; } goto reply; }else if (!strcmp (cmd,"mount_result" )) { -got_mount_result (client[ci].mg,atoi (argv[3 ])); - +got_mount_result (client[ci].mg,atoi (argv[3 ]), ci, + client[ci].another_mount); }else if (!strcmp (cmd,"leave" )) { rv =do_unmount (ci, argv[1 ],atoi (argv[3 ])); goto reply;
group/gfs_controld/recover.c +146 -31
325 lines not on this page · raw message