IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 6, 2017, 11:30:10 AM (10 years ago)
Author:
eugene
Message:

merging changes from czw dev branch (compare with r39924)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Nebulous/nebclient/src/nebclient.c

    r25000 r39926  
    529529        return NULL;
    530530    }
     531
     532    // Construct a dummy volume name to allow nebulous to find the
     533    // closest instance available.
     534    char hostname[256];
     535    char volname[260];
     536
     537    int v;
     538
     539    v = gethostname(hostname,256);
     540    //    fprintf(stderr, "%s %d\n", hostname, v);
     541/*     printf("%s %d\n",hostname,v); */
     542    if (v) {
     543      nebSetErr(server, "failed to construct hostname");
     544      return NULL;
     545    }
     546    snprintf(volname,260, "%s.0", hostname);
    531547   
    532     nebObjectInstances *locations = nebFindInstances(server, key, NULL);
     548    nebObjectInstances *locations = nebFindInstances(server, key, volname);
    533549    if (!locations) {
    534550        if (!strstr(nebErr(server), "no instances on storage volume")) {
Note: See TracChangeset for help on using the changeset viewer.