Show
Ignore:
Timestamp:
07/14/11 12:18:12 (23 months ago)
Author:
bligon
Message:

Corrected compiler errors. Files affected:

src/server/create-immutable-copies.sm
src/server/get-attr.sm

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/orange-next/src/server/create-immutable-copies.sm

    r8946 r8950  
    2323/*Global Variables*/ 
    2424 
     25static char PVFS_handle_string[PVFS_HANDLE_STRING_LEN]={0}; 
     26 
    2527/*attribute keys used for the mirroring process*/ 
    2628static char handle_key[]     = USER_PVFS2_MIRROR_HANDLES; 
     
    225227   } 
    226228 
    227    memset(PVFS_handle_string,0,PVFS_HANDLE_STRING_LENGTH); 
    228229   PVFS_handle_unparse(imm_p->metadata_handle,PVFS_handle_string); 
    229230   gossip_debug(GOSSIP_MIRROR_DEBUG,"\tdfile_count: %d\tmetadata_handle: %s" 
     
    582583         goto error_exit; 
    583584      } 
    584       memset(PVFS_handle_string,0,PVFS_HANDLE_STRING_LENGTH); 
    585585      PVFS_handle_unparse(imm_p->handle_array_base[i],PVFS_handle_string); 
    586586      gossip_debug(GOSSIP_MIRROR_DEBUG,"\tValue of server_name is %s " 
     
    634634 
    635635            imm_p->handle_array_base_local_count++; 
    636             PVFS_handle_unparse(imm_p->handle_array_base_local[imm_p->handle_array_base_local_count 
     636            PVFS_handle_unparse(imm_p->handle_array_base_local[imm_p->handle_array_base_local_count] 
    637637                               ,PVFS_handle_string); 
    638638            gossip_debug(GOSSIP_MIRROR_DEBUG,"\tlocal source handle(%d):%s\n" 
     
    14411441               //imm_p->writes_completed[index] = UINT64_HIGH; 
    14421442                imm_p->writes_completed[index].status = STATUS_INIT; 
    1443                 PVFS_handle_clear(imm_p->writes_competed[index].handle); 
     1443                PVFS_handle_clear(imm_p->writes_completed[index].handle); 
    14441444           }  
    14451445       } 
     
    15271527   for (i=0; i<(imm_p->dfile_count * imm_p->copies); i++) 
    15281528   { 
    1529        char PVFS_handle_string[PVFS_handle_string_len] = {0}; 
    15301529       PVFS_handle_unparse(imm_p->writes_completed[i].handle,PVFS_handle_string); 
    15311530       gossip_debug(GOSSIP_MIRROR_DEBUG,"\twrites_complete[%d]:%s\n" 
    15321531                                       ,i,PVFS_handle_string); 
    15331532       //if (imm_p->writes_completed[i] != 0) 
    1534         if ( !PVFS_handle_is_null(imm_p->writes_completed[i]) ) 
     1533        if ( !PVFS_handle_is_null(imm_p->writes_completed[i].handle) ) 
    15351534       { 
    15361535          js_p->error_code = RETRY; 
     
    16251624        //memcpy(sm_p->val_a[i].buffer,imm_p->writes_completed 
    16261625        //                       ,sm_p->val_a[i].buffer_sz); 
    1627         sm_p->val_a[i].buffer[j] = imm_p->writes_completed[j].status; 
     1626        memcpy(&((PVFS_error *)(sm_p->val_a[i].buffer))[j] 
     1627              ,&(imm_p->writes_completed[j].status) 
     1628              ,sizeof(PVFS_error)); 
    16281629   } 
    16291630   /*verify inputs*/ 
     
    16331634   gossip_debug(GOSSIP_MIRROR_DEBUG,"\tsize of buffer : %d\n" 
    16341635                                   ,sm_p->key_a[i].buffer_sz); 
    1635    PVFS_error *myStatus = (PVFS_error *)sm_p->val_a[i].buffer; 
     1636   PVFS_handle *myHandle = (PVFS_handle *)sm_p->val_a[i].buffer; 
    16361637   for (j=0; j<(imm_p->dfile_count*imm_p->copies); j++) 
    16371638   { 
    1638        gossip_debug(GOSSIP_MIRROR_DEBUG,"\t\tstatus(%d):%d\n" 
     1639       PVFS_handle_unparse(myHandle[j],PVFS_handle_string); 
     1640       gossip_debug(GOSSIP_MIRROR_DEBUG,"\t\thandle(%d):%s\n" 
    16391641       ,j 
    1640        ,myStatus[j]); 
     1642       ,PVFS_handle_string); 
    16411643   } 
    16421644 
     
    16521654 
    16531655   i++; assert(i<key_count); 
    1654    PVFS_handle *myStatus = (PVFS_handle *)sm_p->val_a[i].buffer; 
     1656   PVFS_error *myStatus = (PVFS_error *)(sm_p->val_a[i].buffer); 
    16551657   for (j=0; j<(imm_p->dfile_count * imm_p->copies); j++) 
    16561658   { 
    1657        memset(PVFS_handle_string,0,PVFS_HANDLE_STRING_LEN); 
    1658        PVFS_handle_unparse(myStatus[j],PVFS_handle_string); 
    1659        gossip_debug(GOSSIP_MIRROR_DEBUG,"\thandle(%d):status(%s)\n" 
     1659       gossip_debug(GOSSIP_MIRROR_DEBUG,"\thandle(%d):status(%d)\n" 
    16601660                                       ,j 
    1661                                        ,PVFS_handle_string); 
     1661                                       ,myStatus[j]); 
    16621662   } 
    16631663 
     
    17401740   if (js_p->error_code) 
    17411741   { 
    1742       memset(PVFS_handle_string,0,PVFS_HANDLE_STRING_LENGTH); 
    1743       PVFS_handle_unparse(imm_p->metadata_handle); 
     1742      PVFS_handle_unparse(imm_p->metadata_handle,PVFS_handle_string); 
    17441743      gossip_err("Unable to store datahandles and number of copies for this " 
    17451744                 "mirror operation.\n"); 
     
    20492048   for (i=0; i<(in_cols*rows); i++) 
    20502049   { 
    2051        memset(PVFS_handle_string,0,PVFS_HANDLE_STRING_LEN); 
    2052        PVFS_unparse(copies_in[i],PVFS_handle_string); 
     2050       PVFS_handle_unparse(copies_in[i],PVFS_handle_string); 
    20532051       gossip_debug(GOSSIP_MIRROR_DEBUG,"\thandle_array_copies(%d):%s\n" 
    20542052                                       ,(int)i 
     
    20732071       for (j=0; j<out_cols; j++) 
    20742072       { 
    2075            memset(PVFS_handle_string,0,PVFS_HANDLE_STRING_LENGTH); 
    20762073           PVFS_handle_unparse(copies_out[(i*out_cols)+j],PVFS_handle_string); 
    20772074           gossip_debug(GOSSIP_MIRROR_DEBUG,"\t\t(%d,%d):%s\n"