CVS: intermezzo/lib config.c,1.17,1.18 izolib.h,1.31,1.32
Chen Yang <[email protected]> Sat, 21 Jun 2003 19:05:49 -0700
| Newsgroups | gmane.comp.file-systems.intermezzo.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/intermezzo/intermezzo/lib In directory sc8-pr-cvs1:/tmp/cvs-serv28314/intermezzo/lib Modified Files: config.c izolib.h Log Message: Troy Benjegerdes([email protected]) 's Data on Demand extension Integrated by Chen Yang. Index: config.c =================================================================== RCS file: /cvsroot/intermezzo/intermezzo/lib/config.c,v retrieving revision 1.17 retrieving revision 1.18 diff -U2 -r1.17 -r1.18 --- config.c 12 Mar 2003 13:18:08 -0000 1.17 +++ config.c 22 Jun 2003 02:05:47 -0000 1.18 @@ -43,4 +43,5 @@ LOCAL_PORT, LOCAL_IP, + DATA_ON_DEMAND, }; @@ -70,4 +71,6 @@ } else if (strcmp(elem, "local_ip") == 0) { s->state = LOCAL_IP; + } else if (strcmp(elem, "data_on_demand") == 0) { + s->state = DATA_ON_DEMAND; } else { /* XXX handle errors */ @@ -100,6 +103,9 @@ s->cfg->cfg_local_ip = g_strdup(text); break; + case DATA_ON_DEMAND: + s->cfg->cfg_data_on_demand = atol(text); + break; default: - /*printf("Invalid response: '%s'\n", text);*/ + printf("Invalid response: '%s'\n", text); } } @@ -204,4 +210,6 @@ if(cfg->cfg_local_port) fprintf(fp, " <local_port>%d</local_port>\n", cfg->cfg_local_port); + if(cfg->cfg_data_on_demand) + fprintf(fp, " <data_on_demand>%d</data_on_demand>\n", cfg->cfg_data_on_demand); fprintf(fp, "</profile>\n"); rc = 0; Index: izolib.h =================================================================== RCS file: /cvsroot/intermezzo/intermezzo/lib/izolib.h,v retrieving revision 1.31 retrieving revision 1.32 diff -U2 -r1.31 -r1.32 --- izolib.h 25 Sep 2002 06:31:38 -0000 1.31 +++ izolib.h 22 Jun 2003 02:05:47 -0000 1.32 @@ -97,4 +97,5 @@ int cfg_reint_only; int cfg_daemon; + int cfg_data_on_demand; char *cfg_clientid; char *cfg_fsetname; ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php