Changeset 8960

Show
Ignore:
Timestamp:
07/15/11 23:22:50 (23 months ago)
Author:
mtmoore
Message:

client/server builds, much to fix

Location:
branches/orange-next
Files:
23 modified

Legend:

Unmodified
Added
Removed
  • branches/orange-next/include/pvfs2-mgmt.h

    r8935 r8960  
    121121    PVFS_fs_id fs_id, 
    122122    PVFS_credentials *credentials, 
    123     int server_type, 
    124123    int *count); 
    125124 
     
    127126    PVFS_fs_id fs_id, 
    128127    PVFS_credentials *credentials, 
    129     int server_type, 
    130128    PVFS_BMI_addr_t *addr_array, 
    131129    int *inout_count_p); 
     
    148146    PVFS_fs_id fs_id, 
    149147    PVFS_credentials *credentials, 
    150     PVFS_BMI_addr_t addr, 
    151     int* server_type); 
     148    PVFS_BMI_addr_t addr); 
    152149 
    153150PVFS_error PVFS_imgmt_setparam_list( 
  • branches/orange-next/src/apps/admin/pvfs2-check-config.c

    r4574 r8960  
    158158            fs_id = mnt->mntent_array[i].fs_id; 
    159159             
    160             /* Retrieve the list of all servers for the fs id*/ 
    161             rc = PVFS_mgmt_count_servers(fs_id, &creds, PVFS_MGMT_IO_SERVER, 
    162                                          &server_count); 
     160            /* Retrieve the list of all servers for the fs id */ 
     161            rc = PVFS_mgmt_count_servers(fs_id, &creds, &server_count); 
    163162 
    164163            if (0 != rc) 
     
    168167            } 
    169168            server_addrs = malloc(server_count * sizeof(PVFS_BMI_addr_t)); 
    170             rc = PVFS_mgmt_get_server_array(fs_id, &creds, PVFS_MGMT_IO_SERVER, 
     169            rc = PVFS_mgmt_get_server_array(fs_id, &creds, 
    171170                                            server_addrs, &server_count); 
    172171            if (0 != rc) 
  • branches/orange-next/src/apps/admin/pvfs2-fs-dump.c

    r8943 r8960  
    142142 
    143143    /* count how many servers we have */ 
    144     ret = PVFS_mgmt_count_servers(cur_fs, &creds,  
    145         PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    146         &server_count); 
     144    ret = PVFS_mgmt_count_servers(cur_fs, &creds, &server_count); 
    147145    if (ret != 0) 
    148146    { 
     
    159157        return -1; 
    160158    } 
    161     ret = PVFS_mgmt_get_server_array(cur_fs, &creds,  
    162         PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    163         addr_array, &server_count); 
     159    ret = PVFS_mgmt_get_server_array(cur_fs, &creds, addr_array, &server_count); 
    164160    if (ret != 0) 
    165161    { 
     
    656652{ 
    657653    PVFS_handle handle; 
    658     int server_idx, tmp_type, flag = 1; 
     654    int server_idx, flag = 1; 
    659655 
    660656    if (!dot_fmt) { 
     
    700696                       PVFS_mgmt_map_addr(cur_fs, 
    701697                                          creds, 
    702                                           addr_array[server_idx], 
    703                                           &tmp_type), 
     698                                          addr_array[server_idx]), 
    704699                       llu(handle)); 
    705700            } 
  • branches/orange-next/src/apps/admin/pvfs2-fsck.c

    r8943 r8960  
    8888    /* count how many servers we have */ 
    8989    ret = PVFS_mgmt_count_servers(cur_fs, &creds,  
    90         PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    9190        &server_count); 
    9291    if (ret != 0) 
     
    106105    ret = PVFS_mgmt_get_server_array(cur_fs, 
    107106                                     &creds,  
    108                                      PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    109107                                     addr_array, 
    110108                                     &server_count); 
  • branches/orange-next/src/apps/admin/pvfs2-migrate-collection.c

    r8943 r8960  
    689689     * will create 
    690690     */ 
    691     char handle_range[] = "4-64000000000"; 
    692691    TROVE_op_id op_id; 
    693692    TROVE_context_id trove_context = -1; 
     
    736735        coll_id,  
    737736        handle, 
    738         handle_range, 
    739         NULL, 
    740737        1, 
    741738        0); 
  • branches/orange-next/src/apps/admin/pvfs2-mkspace.c

    r8943 r8960  
    337337        ret = pvfs2_mkspace(opts.data_space, opts.meta_space, 
    338338                            opts.collection, opts.coll_id,  
    339                             opts.root_handle, opts.meta_ranges,  
    340                             opts.data_ranges, opts.collection_only,  
     339                            opts.root_handle, opts.collection_only,  
    341340                            opts.verbose); 
    342341    } 
  • branches/orange-next/src/apps/admin/pvfs2-perf-mon-example.c

    r8891 r8960  
    5858    int i,j; 
    5959    PVFS_credentials creds; 
    60     int io_server_count; 
     60    int server_count; 
    6161    int64_t** perf_matrix; 
    6262    uint64_t* end_time_ms_array; 
    6363    uint32_t* next_id_array; 
    6464    PVFS_BMI_addr_t *addr_array; 
    65     int tmp_type; 
    6665    uint64_t next_time; 
    6766    float bw; 
     
    8483 
    8584    /* translate local path into pvfs2 relative path */ 
    86     ret = PVFS_util_resolve(user_opts->mnt_point, 
    87         &cur_fs, pvfs_path, PVFS_NAME_MAX); 
     85    ret = PVFS_util_resolve(user_opts->mnt_point, &cur_fs, pvfs_path,  
     86        PVFS_NAME_MAX); 
    8887    if(ret < 0) 
    8988    { 
     
    9493    PVFS_util_gen_credentials(&creds); 
    9594 
    96     /* count how many I/O servers we have */ 
    97     ret = PVFS_mgmt_count_servers(cur_fs, &creds, PVFS_MGMT_IO_SERVER, 
    98         &io_server_count); 
     95    /* count how many servers we have */ 
     96    ret = PVFS_mgmt_count_servers(cur_fs, &creds, &server_count); 
    9997    if(ret < 0) 
    10098    { 
     
    104102 
    105103    /* allocate a 2 dimensional array for statistics */ 
    106     perf_matrix = (int64_t **)malloc(io_server_count*sizeof(int64_t *)); 
     104    perf_matrix = (int64_t **)malloc(server_count*sizeof(int64_t *)); 
    107105    if(!perf_matrix) 
    108106    { 
     
    110108        return(-1); 
    111109    } 
    112     for(i=0; i<io_server_count; i++) 
     110    for(i=0; i<server_count; i++) 
    113111    { 
    114112        perf_matrix[i] = (int64_t *)malloc(HISTORY * sizeof(int64_t)); 
     
    123121     * we need from each server  
    124122     */ 
    125     next_id_array = (uint32_t *) malloc(io_server_count * sizeof(uint32_t)); 
     123    next_id_array = (uint32_t *) malloc(server_count * sizeof(uint32_t)); 
    126124    if (next_id_array == NULL) 
    127125    { 
     
    129127        return -1; 
    130128    } 
    131     memset(next_id_array, 0, io_server_count*sizeof(uint32_t)); 
     129    memset(next_id_array, 0, server_count*sizeof(uint32_t)); 
    132130 
    133131    /* allocate an array to keep up with end times from each server */ 
    134     end_time_ms_array = (uint64_t *)malloc(io_server_count * sizeof(uint64_t)); 
     132    end_time_ms_array = (uint64_t *)malloc(server_count * sizeof(uint64_t)); 
    135133    if (end_time_ms_array == NULL) 
    136134    { 
     
    141139    /* build a list of servers to talk to */ 
    142140    addr_array = (PVFS_BMI_addr_t *) 
    143         malloc(io_server_count * sizeof(PVFS_BMI_addr_t)); 
     141        malloc(server_count * sizeof(PVFS_BMI_addr_t)); 
    144142    if (addr_array == NULL) 
    145143    { 
     
    149147    ret = PVFS_mgmt_get_server_array(cur_fs, 
    150148                                     &creds, 
    151                                      PVFS_MGMT_IO_SERVER, 
    152149                                     addr_array, 
    153                                      &io_server_count); 
     150                                     &server_count); 
    154151    if (ret < 0) 
    155152    { 
     
    168165                                      addr_array, 
    169166                                      next_id_array, 
    170                                       io_server_count,  
     167                                      server_count,  
    171168                                      &key_cnt, 
    172169                                      HISTORY, 
     
    180177        printf("\nPVFS2 I/O server bandwith statistics (MB/sec):\n"); 
    181178        printf("==================================================\n"); 
    182         for (i=0; i < io_server_count; i++) 
     179        for (i=0; i < server_count; i++) 
    183180        { 
    184181            printf("\nread:  %-30s ", 
    185                    PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i], &tmp_type)); 
     182                   PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i])); 
    186183            for (j=0; j < HISTORY; j++) 
    187184            { 
     
    211208 
    212209            printf("\nwrite: %-30s ", 
    213                    PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i], &tmp_type)); 
     210                   PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i])); 
    214211 
    215212            for (j=0; j < HISTORY; j++) 
     
    242239            printf("=================================================="); 
    243240            printf("\nread:  %-30s ", 
    244                    PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i], &tmp_type)); 
     241                   PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i])); 
    245242 
    246243            for(j = 0; j < HISTORY; j++) 
     
    254251 
    255252            printf("\nwrite:  %-30s ", 
    256                    PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i], &tmp_type)); 
     253                   PVFS_mgmt_map_addr(cur_fs, &creds,addr_array[i])); 
    257254 
    258255            for(j = 0; j < HISTORY; j++) 
  • branches/orange-next/src/apps/admin/pvfs2-ping.c

    r8943 r8960  
    156156 
    157157    ret = PVFS_mgmt_count_servers( 
    158         cur_fs, &creds, PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, &count); 
     158        cur_fs, &creds, &count); 
    159159    if (ret < 0) 
    160160    { 
     
    270270    PVFS_BMI_addr_t* addr_array; 
    271271    int i; 
    272     int tmp; 
    273272  
    274273    PVFS_util_gen_credentials(&creds); 
    275274 
    276     printf("\n   meta servers:\n"); 
    277     ret = PVFS_mgmt_count_servers( 
    278         fsid, &creds, PVFS_MGMT_META_SERVER, &count); 
     275    printf("\n   servers:\n"); 
     276    ret = PVFS_mgmt_count_servers( fsid, &creds, &count); 
    279277    if (ret < 0) 
    280278    { 
     
    291289 
    292290    ret = PVFS_mgmt_get_server_array( 
    293         fsid, &creds, PVFS_MGMT_META_SERVER, addr_array, &count); 
     291        fsid, &creds, addr_array, &count); 
    294292    if (ret < 0) 
    295293    { 
     
    301299    { 
    302300        printf("   %s ", 
    303                PVFS_mgmt_map_addr(fsid, &creds, addr_array[i], &tmp)); 
     301               PVFS_mgmt_map_addr(fsid, &creds, addr_array[i])); 
    304302        ret = PVFS_mgmt_noop(fsid, &creds, addr_array[i], NULL); 
    305303        if (ret == 0) 
     
    310308        { 
    311309            printf("FAILURE: PVFS_mgmt_noop failed for server: %s\n", 
    312                    PVFS_mgmt_map_addr(fsid, &creds, addr_array[i], &tmp)); 
    313             return ret; 
    314         } 
    315     } 
    316     free(addr_array); 
    317  
    318     printf("\n   data servers:\n"); 
    319     ret = PVFS_mgmt_count_servers( 
    320         fsid, &creds, PVFS_MGMT_IO_SERVER, &count); 
    321     if (ret < 0) 
    322     { 
    323         PVFS_perror("PVFS_mgmt_count_servers()", ret); 
    324         return ret; 
    325     } 
    326     addr_array = (PVFS_BMI_addr_t *)malloc( 
    327         count * sizeof(PVFS_BMI_addr_t)); 
    328     if (addr_array == NULL) 
    329     { 
    330         perror("malloc"); 
    331         return -PVFS_ENOMEM; 
    332     } 
    333  
    334     ret = PVFS_mgmt_get_server_array( 
    335         fsid, &creds, PVFS_MGMT_IO_SERVER, addr_array, &count); 
    336     if (ret < 0) 
    337     { 
    338         PVFS_perror("PVFS_mgmt_get_server_array()", ret); 
    339         return ret; 
    340     } 
    341  
    342     for (i = 0; i < count; i++) 
    343     { 
    344         printf("   %s ", 
    345                PVFS_mgmt_map_addr(fsid, &creds, addr_array[i], &tmp)); 
    346         ret = PVFS_mgmt_noop(fsid, &creds, addr_array[i], NULL); 
    347         if (ret == 0) 
    348         { 
    349             printf("Ok\n"); 
    350         } 
    351         else 
    352         { 
    353             printf("Failure!\n"); 
     310                   PVFS_mgmt_map_addr(fsid, &creds, addr_array[i])); 
    354311            return ret; 
    355312        } 
     
    371328    int i; 
    372329    int ret = -1; 
    373     int tmp; 
    374330    int count; 
    375331    PVFS_BMI_addr_t *addr_array; 
     
    377333    PVFS_util_gen_credentials(&creds); 
    378334 
    379     printf("\n   meta servers:\n"); 
    380     ret = PVFS_mgmt_count_servers( 
    381         fsid, &creds, PVFS_MGMT_META_SERVER, &count); 
     335    printf("\n   servers:\n"); 
     336    ret = PVFS_mgmt_count_servers( fsid, &creds, &count); 
    382337    if (ret < 0) 
    383338    { 
     
    393348    } 
    394349 
    395     ret = PVFS_mgmt_get_server_array( 
    396         fsid, &creds, PVFS_MGMT_META_SERVER, addr_array, &count); 
     350    ret = PVFS_mgmt_get_server_array( fsid, &creds, addr_array, &count); 
    397351    if (ret < 0) 
    398352    { 
     
    403357    for (i=0; i<count; i++) 
    404358    { 
    405         printf("   %s\n", 
    406                PVFS_mgmt_map_addr(fsid, &creds, addr_array[i], &tmp)); 
    407     } 
    408     free(addr_array); 
    409  
    410     printf("\n   data servers:\n"); 
    411     ret = PVFS_mgmt_count_servers( 
    412         fsid, &creds, PVFS_MGMT_IO_SERVER, &count); 
    413     if (ret < 0) 
    414     { 
    415         PVFS_perror("PVFS_mgmt_count_servers()", ret); 
    416         return ret; 
    417     } 
    418     addr_array = (PVFS_BMI_addr_t *)malloc( 
    419         count * sizeof(PVFS_BMI_addr_t)); 
    420     if (addr_array == NULL) 
    421     { 
    422         perror("malloc"); 
    423         return -PVFS_ENOMEM; 
    424     } 
    425  
    426     ret = PVFS_mgmt_get_server_array( 
    427         fsid, &creds, PVFS_MGMT_IO_SERVER, addr_array, &count); 
    428     if (ret < 0) 
    429     { 
    430         PVFS_perror("PVFS_mgmt_get_server_array()", ret); 
    431         return ret; 
    432     } 
    433  
    434     for(i=0; i<count; i++) 
    435     { 
    436         printf("   %s\n", 
    437                PVFS_mgmt_map_addr(fsid, &creds, addr_array[i], &tmp)); 
     359        printf("   %s\n", PVFS_mgmt_map_addr(fsid, &creds, addr_array[i])); 
    438360    } 
    439361    free(addr_array); 
  • branches/orange-next/src/apps/karma/comm.c

    r8891 r8960  
    235235    ret = PVFS_mgmt_count_servers(cur_fsid, 
    236236                                  &creds, 
    237                                   PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER, 
    238237                                  &outcount); 
    239238    if (ret < 0) 
     
    275274    ret = PVFS_mgmt_get_server_array(cur_fsid, 
    276275                                     &creds, 
    277                                      PVFS_MGMT_IO_SERVER | 
    278                                      PVFS_MGMT_META_SERVER, internal_addrs, 
     276                                     internal_addrs, 
    279277                                     &outcount); 
    280278    if (ret < 0) 
     
    375373        for (i = 0; i < internal_details->count_used; i++) 
    376374        { 
    377             int dummy; 
    378  
    379375            PVFS_strerror_r(internal_details->error[i].error, err_msg, 64); 
    380376            snprintf(msgbuf, 
     
    383379                     PVFS_mgmt_map_addr(cur_fsid, 
    384380                                        &creds, 
    385                                         internal_details->error[i].addr, 
    386                                         &dummy), 
     381                                        internal_details->error[i].addr), 
    387382                     err_msg); 
    388383            gui_message_new(msgbuf); 
     
    468463        for (i = 0; i < internal_details->count_used; i++) 
    469464        { 
    470             int dummy; 
    471  
    472465            PVFS_strerror_r(internal_details->error[i].error, err_msg, 64); 
    473466            snprintf(msgbuf, 
     
    476469                     PVFS_mgmt_map_addr(cur_fsid, 
    477470                                        &creds, 
    478                                         internal_details->error[i].addr, 
    479                                         &dummy), 
     471                                        internal_details->error[i].addr), 
    480472                    err_msg); 
    481473            gui_message_new(msgbuf); 
  • branches/orange-next/src/client/sysint/fs-add.sm

    r8935 r8960  
    286286    assert(js_p->error_code == 0); 
    287287    fsid = sm_p->u.get_config.mntent->fs_id; 
    288     ret = PVFS_mgmt_count_servers( 
    289         fsid, sm_p->cred_p, PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER, &count); 
     288    ret = PVFS_mgmt_count_servers( fsid, sm_p->cred_p, &count ); 
    290289    if (ret < 0) 
    291290    { 
     
    309308 
    310309    ret = PVFS_mgmt_get_server_array(fsid, sm_p->cred_p,  
    311             PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER, sm_p->fetch_config.addr_array, &count); 
     310            sm_p->fetch_config.addr_array, &count); 
    312311    if (ret < 0) 
    313312    { 
     
    392391static int compare_hashes(PINT_client_sm *sm_p, job_status_s *js_p) 
    393392{ 
    394     int i, count, ret = 0, fs_conf_failed = 0, fs_conf_size_mismatch = 0, tmp; 
     393    int i, count, ret = 0, fs_conf_failed = 0, fs_conf_size_mismatch = 0; 
    395394    char **sha1_fs_digests = NULL; 
    396395    size_t digest_len; 
     
    427426            gossip_err("     FS config file on %s -> (size) %d\n",  
    428427                   PVFS_mgmt_map_addr(fsid, sm_p->cred_p, 
    429                    sm_p->fetch_config.addr_array[indexes[i]], &tmp), 
     428                   sm_p->fetch_config.addr_array[indexes[i]]), 
    430429                   sm_p->fetch_config.fs_config_buf_size[indexes[i]] - 1); 
    431430            ret = -PVFS_EINVAL; 
     
    459458            gossip_err("     FS config file on %s -> (SHA1) %s\n",  
    460459                   PVFS_mgmt_map_addr(fsid, sm_p->cred_p, 
    461                    sm_p->fetch_config.addr_array[indexes[i]], &tmp), str); 
     460                   sm_p->fetch_config.addr_array[indexes[i]]), str); 
    462461        } 
    463462        ret = -PVFS_EINVAL; 
  • branches/orange-next/src/client/sysint/mgmt-get-config.c

    r6984 r8960  
    4242    struct server_configuration_s *config = NULL; 
    4343    struct PVFS_sys_mntent mntent; 
    44     int server_type = 0; 
    4544 
    4645    gossip_debug(GOSSIP_CLIENT_DEBUG, "PVFS_mgmt_get_config entered\n"); 
     
    6968 
    7069    mntent.the_pvfs_config_server = 
    71         (char*)PINT_cached_config_map_addr(*fsid, *addr, &server_type); 
     70        (char*)PINT_cached_config_map_addr(*fsid, *addr); 
    7271 
    7372    PINT_put_server_config_struct(config); 
  • branches/orange-next/src/client/sysint/mgmt-misc.c

    r7471 r8960  
    3232    PVFS_fs_id fs_id, 
    3333    PVFS_credentials *credentials, 
    34     PVFS_BMI_addr_t addr, 
    35     int *server_type) 
    36 { 
    37     return PINT_cached_config_map_addr(fs_id, addr, server_type); 
     34    PVFS_BMI_addr_t addr) 
     35{ 
     36    return PINT_cached_config_map_addr(fs_id, addr); 
    3837} 
    3938 
     
    6362    int real_count = 0; 
    6463 
    65     ret = PINT_cached_config_count_servers( 
    66         fs_id,  PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    67         &real_count); 
     64    ret = PINT_cached_config_count_servers(fs_id, &real_count); 
    6865 
    6966    if (ret < 0) 
     
    8784 
    8885    /* generate default list of servers */ 
    89     ret = PINT_cached_config_get_server_array( 
    90         fs_id, PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    91         addr_array, &real_count); 
     86    ret = PINT_cached_config_get_server_array(fs_id, addr_array, &real_count); 
    9287 
    9388    if (ret < 0) 
     
    122117    PVFS_error ret = -PVFS_EINVAL; 
    123118    PVFS_BMI_addr_t *addr_array = NULL; 
    124     ret = PINT_cached_config_count_servers( 
    125         fs_id, PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, &count); 
     119    ret = PINT_cached_config_count_servers(fs_id, &count); 
    126120 
    127121    if (ret < 0) 
     
    138132 
    139133    /* generate default list of servers */ 
    140     ret = PINT_cached_config_get_server_array( 
    141         fs_id, PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    142         addr_array, &count); 
    143  
     134    ret = PINT_cached_config_get_server_array(fs_id, addr_array, &count); 
    144135    if (ret < 0) 
    145136    { 
     
    188179    PVFS_fs_id fs_id, 
    189180    PVFS_credentials *credentials, 
    190     int server_type, 
    191181    PVFS_BMI_addr_t *addr_array, 
    192182    int *inout_count_p) 
     
    194184    PVFS_error ret = -PVFS_EINVAL; 
    195185 
    196     ret = PINT_cached_config_get_server_array( 
    197         fs_id, server_type, addr_array, inout_count_p); 
     186    ret = PINT_cached_config_get_server_array(fs_id, addr_array, inout_count_p); 
    198187    return ret; 
    199188} 
     
    209198    PVFS_fs_id fs_id, 
    210199    PVFS_credentials *credentials, 
    211     int server_type, 
    212200    int *count) 
    213201{ 
    214202    PVFS_error ret = -PVFS_EINVAL; 
    215203 
    216     ret = PINT_cached_config_count_servers(fs_id, server_type, count); 
     204    ret = PINT_cached_config_count_servers(fs_id, count); 
    217205    return ret; 
    218206} 
  • branches/orange-next/src/client/sysint/mgmt-statfs-list.sm

    r8935 r8960  
    278278        sm_stat->bmi_address = PVFS_mgmt_map_addr( 
    279279            sm_p->u.statfs_list.fs_id, sm_p->cred_p, 
    280             sm_p->msgarray_op.msgarray[i].svr_addr, &sm_stat->server_type); 
     280            sm_p->msgarray_op.msgarray[i].svr_addr); 
    281281        assert(sm_stat->bmi_address); 
    282282 
  • branches/orange-next/src/client/sysint/sys-create.sm

    r8935 r8960  
    414414    struct PINT_client_sm *sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    415415    int ret = -PVFS_EINVAL; 
    416     PVFS_handle_extent_array meta_handle_extent_array; 
    417416    PINT_sm_msgpair_state *msg_p = NULL; 
    418     int server_type; 
    419417 
    420418    gossip_debug(GOSSIP_CLIENT_DEBUG, "create state: " 
     
    438436    msg_p = &sm_p->msgarray_op.msgpair; 
    439437 
    440     ret = PINT_cached_config_get_next_meta( 
    441         sm_p->object_ref.fs_id, &msg_p->svr_addr, &meta_handle_extent_array); 
     438    ret = PINT_cached_config_get_next_server( 
     439        sm_p->object_ref.fs_id, &msg_p->svr_addr); 
    442440    if(ret != 0) 
    443441    { 
     
    453451            "PVFS_isys_create() selected meta server: %s\n",  
    454452            PINT_cached_config_map_addr(sm_p->object_ref.fs_id, 
    455                 msg_p->svr_addr, 
    456                 &server_type)); 
     453                msg_p->svr_addr)); 
    457454    } 
    458455 
     
    467464 
    468465    msg_p->fs_id = sm_p->object_ref.fs_id; 
    469     PVFS_handle_copy(msg_p->handle,  
    470         meta_handle_extent_array.extent_array[0].first); 
     466 
     467    /* FIX: what handle do we put here, used to come from the  
     468     * meta_handle_extent_array */ 
     469/*  PVFS_handle_copy(msg_p->handle,  
     470    meta_handle_extent_array.extent_array[0].first); 
     471 */ 
    471472    msg_p->retry_flag = PVFS_MSGPAIR_RETRY; 
    472473    msg_p->comp_fn = create_comp_fn; 
  • branches/orange-next/src/client/sysint/sys-mkdir.sm

    r8935 r8960  
    343343    struct PINT_client_sm *sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    344344    int ret = -PVFS_EINVAL; 
    345     PVFS_handle_extent_array meta_handle_extent_array; 
    346345    PINT_sm_msgpair_state *msg_p = NULL; 
    347346 
     
    356355    msg_p = &sm_p->msgarray_op.msgpair; 
    357356 
    358     ret = PINT_cached_config_get_next_meta( 
     357    /* FIX: used to get extent array here */ 
     358    ret = PINT_cached_config_get_next_server( 
    359359        sm_p->object_ref.fs_id, 
    360         &msg_p->svr_addr, &meta_handle_extent_array); 
     360        &msg_p->svr_addr); 
    361361 
    362362    if (ret) 
     
    371371        *sm_p->cred_p, 
    372372        sm_p->object_ref.fs_id, 
    373         meta_handle_extent_array, 
    374373        sm_p->u.mkdir.sys_attr, 
    375374        sm_p->hints); 
    376375 
    377376    msg_p->fs_id = sm_p->object_ref.fs_id; 
     377    /* FIX: used to copy handle from extent_array */ 
     378/* 
    378379    PVFS_handle_copy(msg_p->handle,  
    379380                     meta_handle_extent_array.extent_array[0].first); 
     381 */ 
    380382    msg_p->retry_flag = PVFS_MSGPAIR_NO_RETRY; 
    381383    msg_p->comp_fn = mkdir_msg_comp_fn; 
  • branches/orange-next/src/client/sysint/sys-statfs.sm

    r7471 r8960  
    7676 
    7777    /* count the number of servers */ 
    78     ret = PINT_cached_config_count_servers( 
    79         fs_id,  PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    80         &sm_p->u.statfs_list.count); 
     78    ret = PINT_cached_config_count_servers( fs_id, &sm_p->u.statfs_list.count); 
    8179    if (ret < 0) 
    8280    { 
     
    105103    /* generate default list of servers */ 
    106104    ret = PINT_cached_config_get_server_array( 
    107         fs_id, PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER, 
    108         sm_p->u.statfs_list.addr_array, &sm_p->u.statfs_list.count); 
     105        fs_id, sm_p->u.statfs_list.addr_array, &sm_p->u.statfs_list.count); 
    109106    if (ret < 0) 
    110107    { 
  • branches/orange-next/src/client/sysint/sys-symlink.sm

    r8935 r8960  
    364364    struct PINT_client_sm *sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    365365    int ret = -PVFS_EINVAL; 
    366     PVFS_handle_extent_array meta_handle_extent_array; 
    367366    PINT_sm_msgpair_state *msg_p = NULL; 
    368367 
     
    374373    msg_p = &sm_p->msgarray_op.msgpair; 
    375374 
    376     ret = PINT_cached_config_get_next_meta( 
     375    ret = PINT_cached_config_get_next_server( 
    377376        sm_p->object_ref.fs_id, 
    378         &msg_p->svr_addr, &meta_handle_extent_array); 
     377        &msg_p->svr_addr); 
    379378 
    380379    if (ret) 
     
    391390        PVFS_TYPE_SYMLINK, 
    392391        1, 
    393         meta_handle_extent_array, 
    394392        sm_p->hints); 
    395393 
    396394    msg_p->fs_id = sm_p->object_ref.fs_id; 
     395    /* FIX: what do we copy to the handle here, used to be extent_array */ 
     396/* 
    397397    PVFS_handle_copy(msg_p->handle,  
    398398        meta_handle_extent_array.extent_array[0].first); 
     399 */ 
    399400    msg_p->retry_flag = PVFS_MSGPAIR_NO_RETRY; 
    400401    msg_p->comp_fn = symlink_create_comp_fn; 
  • branches/orange-next/src/common/misc/fsck-utils.c

    r8935 r8960  
    130130    int num_servers = 0; 
    131131    int i = 0; 
    132     int server_type = 0; 
    133132    PVFS_BMI_addr_t *addresses = NULL; 
    134133    char *fs_config = NULL; 
     
    147146    ret = PVFS_mgmt_count_servers(*cur_fs, 
    148147                                (PVFS_credentials *) creds, 
    149                                 PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER, 
    150148                                &num_servers); 
    151149    if(ret < 0) 
     
    166164        *cur_fs, 
    167165        (PVFS_credentials *) creds, 
    168         PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER, 
    169166        addresses, &num_servers); 
    170167    if(ret < 0) 
     
    177174    for (i = 0; i < num_servers; i++) 
    178175    { 
    179         server_type = 0; 
    180176        server_name = NULL; 
    181177 
    182178        /* get the pretty server name */ 
    183         server_name = PINT_cached_config_map_addr( 
    184                         *cur_fs, addresses[i], &server_type); 
     179        server_name = PINT_cached_config_map_addr( *cur_fs, addresses[i]); 
    185180        assert(server_name); 
    186181 
     
    10811076    err = PVFS_mgmt_count_servers(*cur_fs, 
    10821077                                (PVFS_credentials *) creds, 
    1083                                 PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER, 
    10841078                                &server_count); 
    10851079    if(err < 0) 
     
    11021096    err = PVFS_mgmt_get_server_array(*cur_fs, 
    11031097                               (PVFS_credentials *) creds, 
    1104                                PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER, 
    11051098                               PINT_handle_wrangler_handlelist.addr_array, 
    11061099                               &server_count); 
     
    15441537    int i = 0; 
    15451538    int j = 0; 
    1546     int server_type = 0; 
    15471539    PVFS_sysresp_getattr attributes; 
    15481540    PVFS_object_ref pref; 
     
    15541546    { 
    15551547        /* get the pretty server name */ 
    1556         server_name = PINT_cached_config_map_addr( 
    1557             *cur_fs, PINT_handle_wrangler_handlelist. 
    1558             addr_array[i], &server_type); 
     1548        server_name = PINT_cached_config_map_addr(*cur_fs,  
     1549            PINT_handle_wrangler_handlelist.addr_array[i]); 
    15591550 
    15601551        for (j = 0; j < PINT_handle_wrangler_handlelist.size_array[i]; j++) 
  • branches/orange-next/src/common/misc/pint-cached-config.c

    r8959 r8960  
    474474    return NULL; 
    475475} 
    476  
    477  
    478 /* PINT_cached_config_check_type() 
    479  * 
    480  * Retrieves the server type flags for a specified BMI addr string 
    481  * 
    482  * returns 0 on success, -errno on failure 
    483  */ 
    484 int PINT_cached_config_check_type( 
    485     PVFS_fs_id fsid, 
    486     const char *server_addr_str, 
    487     int* server_type) 
    488 { 
    489     int ret = -PVFS_EINVAL, i = 0; 
    490     struct qlist_head *hash_link = NULL; 
    491     struct config_fs_cache_s *cur_config_cache = NULL; 
    492  
    493     hash_link = qhash_search(PINT_fsid_config_cache_table,&(fsid)); 
    494     if (!hash_link) 
    495     { 
    496         return(-PVFS_EINVAL); 
    497     } 
    498     cur_config_cache = qlist_entry( 
    499         hash_link, struct config_fs_cache_s, hash_link); 
    500     assert(cur_config_cache); 
    501     assert(cur_config_cache->fs); 
    502  
    503     ret = cache_server_array(fsid); 
    504     if (ret < 0) 
    505     { 
    506         return(ret); 
    507     } 
    508  
    509     /* run through general server list for a match */ 
    510     for(i = 0; i < cur_config_cache->server_count; i++) 
    511     { 
    512         if (!(strcmp(cur_config_cache->server_array[i].addr_string, 
    513            server_addr_str))) 
    514         { 
    515             *server_type = cur_config_cache->server_array[i].server_type; 
    516             return(0); 
    517         } 
    518     } 
    519     return(-PVFS_EINVAL); 
    520 } 
    521  
    522476 
    523477/* PINT_cached_config_count_servers() 
  • branches/orange-next/src/common/misc/server-config.c

    r8959 r8960  
    7575static DOTCONF_CB(get_trusted_network); 
    7676#endif 
    77 static DOTCONF_CB(get_range_list); 
    7877static DOTCONF_CB(get_bmi_module_list); 
    7978static DOTCONF_CB(get_flow_module_list); 
     
    375374        CTX_DISTRIBUTION,NULL}, 
    376375 
    377     /* As logical files are created in pvfs, the data files and meta files 
    378      * that represent them are given filesystem unique handle values.  The 
    379      * user can specify a range of values (or set of ranges)  
    380      * to be allocated to data files and meta files for a particular server, 
    381      * using the Range option in the DataHandleRanges and MetaHandleRanges 
    382      * contexts.  Note that in most cases, its easier to let the  
    383      * pvfs2-genconfig script determine the best ranges to specify. 
    384      * 
    385      * This option specifies a range of handle values that can be used for  
    386      * a particular pvfs server in a particular context (meta handles 
    387      * or data handles).  The DataHandleRanges and MetaHandleRanges contexts 
    388      * should contain one or more Range options.  The format is: 
    389      * 
    390      * Range {alias} {min value1}-{max value1}[, {min value2}-{max value2},...] 
    391      * 
    392      * Where {alias} is one of the alias strings already specified in the 
    393      * Aliases context. 
    394      * 
    395      * {min value} and {max value} are positive integer values that specify 
    396      * the range of possible handles that can be given out for that particular 
    397      * host.  {max value} must be less than 18446744073709551615 (UINT64_MAX). 
    398      * 
    399      * As shown in the specified format, multiple ranges can be specified for 
    400      * the same alias.  The format requires that max value of a given range 
    401      * is less than the min value of the next one,  
    402      * i.e. {max value1}<{min value2} 
    403      *  
    404      * Example of a Range option for data handles: 
    405      * 
    406      * Range mynode1 2147483651-4294967297 
    407      */ 
    408     {"Range",ARG_LIST, get_range_list,NULL, 
    409         CTX_METAHANDLERANGES|CTX_DATAHANDLERANGES,NULL}, 
    410  
    411376    /* Specifies the handle value for the root of the Filesystem.  This 
    412377     * is a required option in the Filesystem context.  The format is: 
     
    24802445} 
    24812446 
    2482 DOTCONF_CB(get_range_list) 
    2483 { 
    2484     int i = 0; 
    2485     struct filesystem_configuration_s *fs_conf = NULL; 
    2486     struct server_configuration_s *config_s =  
    2487         (struct server_configuration_s *)cmd->context; 
    2488  
    2489     fs_conf = (struct filesystem_configuration_s *) 
    2490     PINT_llist_head(config_s->file_systems); 
    2491     assert(fs_conf); 
    2492  
    2493     for(i = 0; i < cmd->arg_count; i += 2) 
    2494     { 
    2495         if (is_valid_alias(config_s->host_aliases, cmd->data.list[i])) 
    2496         { 
    2497             i++; 
    2498             assert(cmd->data.list[i]); 
    2499  
    2500         } 
    2501         else 
    2502         { 
    2503             return("Unrecognized alias.\n"); 
    2504         } 
    2505     } 
    2506     return NULL; 
    2507 } 
    2508  
    25092447DOTCONF_CB(get_param) 
    25102448{ 
  • branches/orange-next/src/common/misc/server-config.h

    r8959 r8960  
    2323    CTX_ALIASES          = (1 << 3), 
    2424    CTX_FILESYSTEM       = (1 << 4), 
    25     CTX_METAHANDLERANGES = (1 << 5), 
    26     CTX_DATAHANDLERANGES = (1 << 6), 
    27     CTX_STORAGEHINTS     = (1 << 7), 
    28     CTX_DISTRIBUTION     = (1 << 8), 
    29     CTX_SECURITY         = (1 << 9), 
    30     CTX_EXPORT           = (1 << 10), 
    31     CTX_SERVER_OPTIONS   = (1 << 11), 
     25    CTX_STORAGEHINTS     = (1 << 5), 
     26    CTX_DISTRIBUTION     = (1 << 6), 
     27    CTX_SECURITY         = (1 << 7), 
     28    CTX_EXPORT           = (1 << 8), 
     29    CTX_SERVER_OPTIONS   = (1 << 9), 
    3230}; 
    3331 
     
    3634    PVFS_BMI_addr_t addr; 
    3735    char *addr_string; 
    38     int server_type; 
    3936} phys_server_desc_s; 
    4037 
     
    125122    char *host_id; 
    126123    int host_index; 
    127     char *server_alias;             /* the command line server-alias parameter */ 
     124    char *server_alias;             /* the cli server-alias parameter */ 
    128125    int my_server_options; 
    129126    char *data_path;                /* path to data storage directory */ 
     
    137134    int  client_job_bmi_timeout;  
    138135    int  client_job_flow_timeout; 
    139     int  client_retry_limit;        /* how many times to retry client operations */ 
     136    int  client_retry_limit;        /* retry client operations count */ 
    140137    int  client_retry_delay_ms;     /* delay between retries */ 
    141138    int  perf_update_interval;      /* how quickly (in msecs) to 
  • branches/orange-next/src/server/create.sm

    r8959 r8960  
    154154    int ret = -1; 
    155155    job_id_t i; 
    156     server_configuration_s *config = get_server_config_struct(); 
     156    //server_configuration_s *config = get_server_config_struct(); 
    157157 
    158158    /* first state to check in, make sure the attr mask contains the dist bit.  
     
    167167        return SM_ACTION_COMPLETE; 
    168168    } 
    169  
    170     ret = PINT_cached_config_get_server( 
    171         s_op->req->u.create.fs_id, 
    172         config->host_id); 
    173169 
    174170    ret = job_trove_dspace_create( 
     
    354350    } 
    355351 
    356     /* find local extent array */ 
    357     ret = PINT_cached_config_get_server( 
    358         s_op->req->u.create.fs_id, 
    359         config->host_id); 
    360     if(ret < 0) 
    361     { 
    362         js_p->error_code = ret; 
    363         return(SM_ACTION_COMPLETE); 
    364     } 
    365  
    366352    /* deliberately not setting SYNC flag, because both the attrs and 
    367353     * keyvals will be synced in later states 
  • branches/orange-next/src/server/unstuff.sm

    r8959 r8960  
    225225        struct PINT_smcb *smcb, job_status_s *js_p) 
    226226{ 
    227     int ret; 
    228     job_id_t j_id; 
     227    int ret = 0; 
     228    //job_id_t j_id; 
    229229    struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    230230