IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2016, 1:38:49 PM (10 years ago)
Author:
watersc1
Message:

Commit of test version of Nebulous location based code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/Nebulous/nebclient/src/nebclient.c

    r25000 r39662  
    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    if (!gethostname(hostname,256)) {
     538      nebSetErr(server, "failed to construct hostname");
     539      return NULL;
     540    }
     541    snprintf(volname,260, "%s.0", hostname);
    531542   
    532     nebObjectInstances *locations = nebFindInstances(server, key, NULL);
     543    nebObjectInstances *locations = nebFindInstances(server, key, volname);
    533544    if (!locations) {
    534545        if (!strstr(nebErr(server), "no instances on storage volume")) {
Note: See TracChangeset for help on using the changeset viewer.