Changeset 8994

Show
Ignore:
Timestamp:
08/05/11 14:23:00 (22 months ago)
Author:
dcypher
Message:

replaced %llu->%s for (PVFS|TROVE)_handle

Location:
branches/orange-next
Files:
37 modified

Legend:

Unmodified
Added
Removed
  • branches/orange-next/src/client/sysint/sys-setattr.sm

    r8935 r8994  
    136136    }  
    137137 
    138     gossip_debug(GOSSIP_CLIENT_DEBUG, "Doing setattr on handle %llu " 
    139                  "on fs %d\n", llu(ref.handle), 
     138    gossip_debug(GOSSIP_CLIENT_DEBUG, "Doing setattr on handle %s " 
     139                 "on fs %d\n", PVFS_handle_to_str(ref.handle), 
    140140                 ref.fs_id); 
    141141 
  • branches/orange-next/src/client/sysint/sys-small-io.sm

    r8935 r8994  
    123123 
    124124        gossip_debug(GOSSIP_IO_DEBUG, "   small_io_setup_msgpairs: " 
    125                      "handle: %llu\n", llu(datafile_handle)); 
     125                     "handle: %s\n", PVFS_handle_to_str(datafile_handle)); 
    126126 
    127127        if(sm_p->u.io.io_type == PVFS_IO_WRITE) 
     
    378378    */ 
    379379 
    380     gossip_debug(GOSSIP_IO_DEBUG,"handle=%llu \toperation=%d \toffset=%ld " 
     380    gossip_debug(GOSSIP_IO_DEBUG,"handle=%s \toperation=%d \toffset=%ld " 
    381381                             "\taggregate_size=%ld\n", 
    382                             llu(msg_p->req.u.small_io.handle), 
     382                            PVFS_handle_to_str(msg_p->req.u.small_io.handle), 
    383383                            msg_p->req.u.small_io.io_type, 
    384384                            ((long int)msg_p->req.u.small_io.file_req_offset), 
     
    504504            { 
    505505               gossip_lerr("Unable to determine the server address " 
    506                            "for this handle (%llu)" 
    507                            ,llu(msg->handle)); 
     506                           "for this handle (%s)" 
     507                           ,PVFS_handle_to_str(msg->handle)); 
    508508               js_p->error_code = ret; 
    509509               return SM_ACTION_COMPLETE; 
     
    546546           { 
    547547              gossip_lerr("Unable to determine the server address " 
    548                           "for this handle (%llu)" 
    549                           ,llu(msg->handle)); 
     548                          "for this handle (%s)" 
     549                          ,PVFS_handle_to_str(msg->handle)); 
    550550              js_p->error_code = ret; 
    551551              return SM_ACTION_COMPLETE; 
     
    563563        { 
    564564           gossip_lerr("Unable to determine the server address " 
    565                        "for this handle (%llu)" 
    566                        ,llu(msg->handle)); 
     565                       "for this handle (%s)" 
     566                       ,PVFS_handle_to_str(msg->handle)); 
    567567           js_p->error_code = ret; 
    568568           return SM_ACTION_COMPLETE; 
  • branches/orange-next/src/client/sysint/sys-symlink.sm

    r8960 r8994  
    205205 
    206206    gossip_debug( 
    207         GOSSIP_CLIENT_DEBUG, "Symlinking %s under parent handle %llu " 
    208         "on fs %d to %s\n", entry_name, llu(parent_ref.handle), 
     207        GOSSIP_CLIENT_DEBUG, "Symlinking %s under parent handle %s " 
     208        "on fs %d to %s\n", entry_name, PVFS_handle_to_str(parent_ref.handle), 
    209209        parent_ref.fs_id, target); 
    210210 
     
    311311 
    312312    gossip_debug(GOSSIP_CLIENT_DEBUG, "*** Got newly created symlink " 
    313                  "handle %llu\n", llu(sm_p->u.sym.symlink_handle)); 
     313                 "handle %s\n", PVFS_handle_to_str(sm_p->u.sym.symlink_handle)); 
    314314    return 0; 
    315315} 
     
    553553 
    554554    gossip_debug(GOSSIP_CLIENT_DEBUG, " Preparing to remove " 
    555                  "metafile handle %llu\n", llu(msg_p->handle)); 
     555                 "metafile handle %s\n", PVFS_handle_to_str(msg_p->handle)); 
    556556 
    557557    ret = PINT_cached_config_map_to_server( 
  • branches/orange-next/src/common/misc/fsck-utils.c

    r8960 r8994  
    354354        if (PINT_handle_wrangler_remove_handle(handle, cur_fs)) 
    355355        { 
    356             gossip_err("WARNING: unable to remove handle [%llu] from handle list while verifying stranded objects\n", 
    357                     llu(*handle)); 
     356            gossip_err("WARNING: unable to remove handle [%s] from handle list while verifying stranded objects\n", 
     357                    PVFS_handle_to_str(*handle)); 
    358358        } 
    359359    } 
     
    447447            (&obj_ref->handle, &obj_ref->fs_id)) 
    448448        { 
    449             gossip_err("WARNING: unable to remove handle [%llu] from \ 
    450                 handle list while verifying stranded objects\n", llu(obj_ref->handle)); 
     449            gossip_err("WARNING: unable to remove handle [%s] from \ 
     450                handle list while verifying stranded objects\n", PVFS_handle_to_str(obj_ref->handle)); 
    451451        } 
    452452    } 
     
    567567            (&obj_ref->handle, &obj_ref->fs_id)) 
    568568        { 
    569             gossip_err("WARNING: unable to remove handle [%llu] from handle \ 
    570                     list while verifying stranded objects\n", llu(obj_ref->handle)); 
     569            gossip_err("WARNING: unable to remove handle [%s] from handle \ 
     570                    list while verifying stranded objects\n", PVFS_handle_to_str(obj_ref->handle)); 
    571571        } 
    572572    } 
     
    682682        if (PINT_handle_wrangler_remove_handle(handle, cur_fs)) 
    683683        { 
    684             gossip_err("WARNING: unable to remove handle [%llu] from handle \ 
    685                     list while verifying stranded objects\n", llu(*handle)); 
     684            gossip_err("WARNING: unable to remove handle [%s] from handle \ 
     685                    list while verifying stranded objects\n", PVFS_handle_to_str(*handle)); 
    686686        } 
    687687    } 
     
    762762            (&obj_ref->handle, &obj_ref->fs_id)) 
    763763        { 
    764             gossip_err("WARNING: unable to remove handle [%llu] from \ 
    765                     handle list while verifying stranded objects\n", llu(obj_ref->handle)); 
     764            gossip_err("WARNING: unable to remove handle [%s] from \ 
     765                    handle list while verifying stranded objects\n", PVFS_handle_to_str(obj_ref->handle)); 
    766766        } 
    767767    } 
     
    954954     */ 
    955955    gossip_debug(GOSSIP_FSCK_DEBUG, "\tFSID        : %d\n", (int) pref->fs_id); 
    956     gossip_debug(GOSSIP_FSCK_DEBUG, "\tHandle      : %llu\n", llu(pref->handle)); 
     956    gossip_debug(GOSSIP_FSCK_DEBUG, "\tHandle      : %s\n", PVFS_handle_to_str(pref->handle)); 
    957957 
    958958    if (getattr_resp->attr.mask & PVFS_ATTR_SYS_COMMON_ALL) 
     
    14351435    { 
    14361436        PVFS_perror_gossip("PINT_cached_config_map_to_server", ret); 
    1437         gossip_err("Error: could not resolve handle [%llu] to server\n",  
    1438             llu(*handle)); 
     1437        gossip_err("Error: could not resolve handle [%s] to server\n",  
     1438            PVFS_handle_to_str(*handle)); 
    14391439        return(ret); 
    14401440    } 
     
    14511451    if(!found) 
    14521452    { 
    1453         gossip_err("Error: could not find matching server for handle [%llu]\n", 
    1454             llu(*handle)); 
     1453        gossip_err("Error: could not find matching server for handle [%s]\n", 
     1454            PVFS_handle_to_str(*handle)); 
    14551455        return(-PVFS_EINVAL); 
    14561456    } 
     
    14701470    if(!found) 
    14711471    { 
    1472         gossip_err("Error: could not find handle [%llu]\n", 
    1473             llu(*handle)); 
     1472        gossip_err("Error: could not find handle [%s]\n", 
     1473            PVFS_handle_to_str(*handle)); 
    14741474        return(-PVFS_EINVAL); 
    14751475    } 
     
    15701570                                         &attributes); 
    15711571                 
    1572                 printf(" %llu   %d  ", 
    1573                        llu(PINT_handle_wrangler_handlelist.list_array[i][j]), 
     1572                printf(" %s   %d  ", 
     1573                       PVFS_handle_to_str(PINT_handle_wrangler_handlelist.list_array[i][j]), 
    15741574                       *cur_fs); 
    15751575 
  • branches/orange-next/src/common/misc/mkspace.c

    r8961 r8994  
    193193 
    194194        mkspace_print(verbose,"info: created root directory " 
    195                       "with handle %llu.\n", llu(new_root_handle)); 
     195                      "with handle %s.\n", PVFS_handle_to_str(new_root_handle)); 
    196196        PVFS_handle_copy(s_used_handles[0], new_root_handle); 
    197197 
     
    262262 
    263263        mkspace_print(verbose, "info: created dspace for dirents " 
    264                       "with handle %llu\n", llu(root_dirdata_handle)); 
     264                      "with handle %s\n", PVFS_handle_to_str(root_dirdata_handle)); 
    265265        PVFS_handle_copy(s_used_handles[1], root_dirdata_handle); 
    266266 
     
    315315 
    316316        mkspace_print(verbose,"info: created lost+found directory " 
    317                       "with handle %llu.\n", llu(lost_and_found_handle)); 
     317                      "with handle %s.\n", PVFS_handle_to_str(lost_and_found_handle)); 
    318318        PVFS_handle_copy(s_used_handles[2], lost_and_found_handle); 
    319319 
     
    365365        mkspace_print( 
    366366            verbose, "info: created dspace for dirents " 
    367             "with handle %llu\n", llu(lost_and_found_dirdata_handle)); 
     367            "with handle %s\n", PVFS_handle_to_str(lost_and_found_dirdata_handle)); 
    368368        PVFS_handle_copy(s_used_handles[3], lost_and_found_dirdata_handle); 
    369369 
     
    437437 
    438438    mkspace_print(verbose, "collection created:\n" 
    439                   "\troot handle = %llu, coll id = %d, " 
     439                  "\troot handle = %s, coll id = %d, " 
    440440                  "root string = \"%s\"\n", 
    441                   llu(root_handle), coll_id, ROOT_HANDLE_KEYSTR); 
     441                  PVFS_handle_to_str(root_handle), coll_id, ROOT_HANDLE_KEYSTR); 
    442442    return 0; 
    443443} 
  • branches/orange-next/src/common/misc/mmap-ra-cache.c

    r8979 r8994  
    9191 
    9292        gossip_debug(GOSSIP_MMAP_RCACHE_DEBUG, "Inserted mmap ra cache " 
    93                      "element %llu, %d of size %llu\n", 
    94                      llu(cache_elem->refn.handle), 
     93                     "element %s, %d of size %llu\n", 
     94                     PVFS_handle_to_str(cache_elem->refn.handle), 
    9595                     cache_elem->refn.fs_id, 
    9696                     llu(cache_elem->data_sz)); 
     
    196196 
    197197            gossip_debug(GOSSIP_MMAP_RCACHE_DEBUG, "Flushed mmap ra cache " 
    198                          "element %llu, %d of size %llu\n", 
    199                          llu(cache_elem->refn.handle), 
     198                         "element %s, %d of size %llu\n", 
     199                         PVFS_handle_to_str(cache_elem->refn.handle), 
    200200                         cache_elem->refn.fs_id, 
    201201                         llu(cache_elem->data_sz)); 
  • branches/orange-next/src/common/misc/msgpairarray.sm

    r8959 r8994  
    850850 
    851851            gossip_debug(GOSSIP_MSGPAIR_DEBUG, 
    852                          " mapped handle %llu to server %lld\n", 
    853                          llu(msg_p->handle), lld(msg_p->svr_addr)); 
     852                         " mapped handle %s to server %lld\n", 
     853                         PVFS_handle_to_str(msg_p->handle), lld(msg_p->svr_addr)); 
    854854        } 
    855855    } 
  • branches/orange-next/src/io/trove/trove-dbpf/dbpf-bstream-direct.c

    r8934 r8994  
    865865        { 
    866866            gossip_debug(GOSSIP_DIRECTIO_DEBUG,  
    867                 "directio updating size for handle %llu\n", llu(ref.handle)); 
     867                "directio updating size for handle %s\n", PVFS_handle_to_str(ref.handle)); 
    868868 
    869869            dbpf_open_cache_put(&rw_op->open_ref); 
  • branches/orange-next/src/io/trove/trove-dbpf/dbpf-dspace.c

    r8935 r8994  
    467467        case 0: 
    468468            gossip_debug(GOSSIP_TROVE_DEBUG, "removed dataspace with " 
    469                          "handle %llu\n", llu(ref.handle)); 
     469                         "handle %s\n", PVFS_handle_to_str(ref.handle)); 
    470470            break; 
    471471    } 
     
    720720        { 
    721721            ret = -dbpf_db_error_to_trove_error(ret); 
    722             gossip_err("failed to set cursor position at handle: %llu\n", 
    723                        llu(*(TROVE_handle *) 
     722            gossip_err("failed to set cursor position at handle: %s\n", 
     723                       PVFS_handle_to_str(*(TROVE_handle *) 
    724724                       op_p->u.d_iterate_handles.position_p)); 
    725725            goto return_error; 
     
    746746        { 
    747747            ret = -dbpf_db_error_to_trove_error(ret); 
    748             gossip_err("failed to set cursor position at handle: %llu\n", 
    749                        llu(*(TROVE_handle *) 
     748            gossip_err("failed to set cursor position at handle: %s\n", 
     749                       PVFS_handle_to_str(*(TROVE_handle *) 
    750750                           op_p->u.d_iterate_handles.position_p)); 
    751751            goto return_error; 
     
    862862                    op_p->u.d_iterate_handles.handle_array[i-1]) == 0 )) 
    863863            { 
    864                 gossip_err("Warning: got duplicate handle %llu.\n",  
    865                            llu(*(TROVE_handle*)tmp_handle)); 
     864                gossip_err("Warning: got duplicate handle %s.\n",  
     865                           PVFS_handle_to_str(*(TROVE_handle*)tmp_handle)); 
    866866                gossip_err("Warning: skipping entry.\n"); 
    867867                i--; 
     
    906906                        *op_p->u.d_iterate_handles.count_p]) == 0 ) 
    907907            { 
    908                 gossip_err("Warning: found duplicate handle: %llu\n",  
    909                            llu(*(TROVE_handle*)tmp_handle)); 
     908                gossip_err("Warning: found duplicate handle: %s\n",  
     909                           PVFS_handle_to_str(*(TROVE_handle*)tmp_handle)); 
    910910                gossip_err("Warning: skipping entry.\n"); 
    911911            } 
     
    956956                                 *op_p->u.d_iterate_handles.count_p]) == 0) ) 
    957957    { 
    958         gossip_err("Warning: found duplicate handle: %llu\n", llu(dummy_handle)); 
     958        gossip_err("Warning: found duplicate handle: %s\n", PVFS_handle_to_str(dummy_handle)); 
    959959        gossip_err("Warning: skipping entry.\n"); 
    960960        (*op_p->u.d_iterate_handles.count_p)--; 
     
    11211121        gossip_debug( 
    11221122            GOSSIP_TROVE_DEBUG, "ATTRIB: retrieved " 
    1123             "attributes from CACHE for key %llu\n  uid = %d, mode = %d, " 
     1123            "attributes from CACHE for key %s\n  uid = %d, mode = %d, " 
    11241124            "type = %d, dfile_count = %d, dist_size = %d\n", 
    1125             llu(handle), (int)ds_attr_p->uid, (int)ds_attr_p->mode, 
     1125            PVFS_handle_to_str(handle), (int)ds_attr_p->uid, (int)ds_attr_p->mode, 
    11261126            (int)ds_attr_p->type, (int)ds_attr_p->dfile_count, 
    11271127            (int)ds_attr_p->dist_size); 
    11281128#endif 
    11291129        gossip_debug(GOSSIP_DBPF_ATTRCACHE_DEBUG, "dspace_getattr fast " 
    1130                      "path attr cache hit on %llu\n", llu(handle)); 
     1130                     "path attr cache hit on %s\n", PVFS_handle_to_str(handle)); 
    11311131        if(ds_attr_p->type == PVFS_TYPE_METAFILE) 
    11321132        { 
     
    12251225            gossip_debug( 
    12261226                GOSSIP_TROVE_DEBUG, "ATTRIB: retrieved " 
    1227                 "attributes from CACHE for key %llu\n  uid = %d, mode = %d, " 
     1227                "attributes from CACHE for key %s\n  uid = %d, mode = %d, " 
    12281228                "type = %d, dfile_count = %d, dist_size = %d\n", 
    1229                 llu(handle), (int)ds_attr_p->uid, (int)ds_attr_p->mode, 
     1229                PVFS_handle_to_str(handle), (int)ds_attr_p->uid, (int)ds_attr_p->mode, 
    12301230                (int)ds_attr_p->type, (int)ds_attr_p->dfile_count, 
    12311231                (int)ds_attr_p->dist_size); 
     
    12331233            gossip_debug( 
    12341234                GOSSIP_TROVE_DEBUG, "dspace_getattr_list fast " 
    1235                 "path attr cache hit on %llu, uid=%d, mode=%d, type=%d\n", 
    1236                 llu(handle_array[i]), (int)ds_attr_p[i].uid, (int)ds_attr_p[i].mode, 
     1235                "path attr cache hit on %s, uid=%d, mode=%d, type=%d\n", 
     1236                PVFS_handle_to_str(handle_array[i]), (int)ds_attr_p[i].uid, (int)ds_attr_p[i].mode, 
    12371237                (int)ds_attr_p[i].type); 
    12381238            if(ds_attr_p[i].type == PVFS_TYPE_METAFILE) 
     
    14491449    gossip_debug( 
    14501450        GOSSIP_TROVE_DEBUG, "ATTRIB: retrieved attributes " 
    1451         "from DISK for key %llu\n\tuid = %d, mode = %d, type = %d\n", 
    1452         llu(ref.handle), (int)attr->uid, (int)attr->mode, (int)attr->type); 
     1451        "from DISK for key %s\n\tuid = %d, mode = %d, type = %d\n", 
     1452        PVFS_handle_to_str(ref.handle), (int)attr->uid, (int)attr->mode, (int)attr->type); 
    14531453    if(attr->type == PVFS_TYPE_METAFILE) 
    14541454    { 
     
    21312131    if (ret == 0) 
    21322132    { 
    2133         gossip_debug(GOSSIP_TROVE_DEBUG, "handle (%llu) already exists.\n", 
    2134                      llu(new_handle)); 
     2133        gossip_debug(GOSSIP_TROVE_DEBUG, "handle (%s) already exists.\n", 
     2134                     PVFS_handle_to_str(new_handle)); 
    21352135        return(-TROVE_EEXIST); 
    21362136    } 
  • branches/orange-next/src/io/trove/trove-dbpf/dbpf-keyval-pcache.c

    r8979 r8994  
    179179            gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 
    180180                         "Trove KeyVal pcache NOTFOUND: " 
    181                          "handle: %llu, pos: session(%lluu), count(%lluu)\n", 
    182                          llu(handle), llu(pos.session), llu(pos.count)); 
     181                         "handle: %s, pos: session(%lluu), count(%lluu)\n", 
     182                         PVFS_handle_to_str(handle), llu(pos.session), llu(pos.count)); 
    183183        } 
    184184        else 
     
    186186            gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 
    187187                         "Trove KeyVal pcache failed: (error %d): " 
    188                          "handle: %llu, pos: session(%llu), count(%llu)\n", 
    189                          ret, llu(handle), llu(pos.session), llu(pos.count)); 
     188                         "handle: %s, pos: session(%llu), count(%llu)\n", 
     189                         ret, PVFS_handle_to_str(handle), llu(pos.session), llu(pos.count)); 
    190190        } 
    191191 
     
    200200    gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 
    201201                 "Trove KeyVal pcache lookup succeeded: " 
    202                  "handle: %llu, pos: session(%llu), count(%llu)\n", 
    203                  llu(handle), llu(pos.session), llu(pos.count)); 
     202                 "handle: %s, pos: session(%llu), count(%llu)\n", 
     203                 PVFS_handle_to_str(handle), llu(pos.session), llu(pos.count)); 
    204204 
    205205    return 0; 
     
    250250        gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 
    251251                     "Trove KeyVal pcache insert failed: (error: %d) " 
    252                      "handle: %llu, pos: session(%llu), count(%llu)\n", 
    253                      ret, llu(handle), llu(pos.session), llu(pos.count)); 
     252                     "handle: %s, pos: session(%llu), count(%llu)\n", 
     253                     ret, PVFS_handle_to_str(handle), llu(pos.session), llu(pos.count)); 
    254254 
    255255        gen_mutex_unlock(&pcache->mutex); 
     
    261261    gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 
    262262                 "Trove KeyVal pcache insert succeeded: " 
    263                  "handle: %llu, pos: session(%llu), count(%llu)\n", 
    264                  llu(handle), llu(pos.session), llu(pos.count)); 
     263                 "handle: %s, pos: session(%llu), count(%llu)\n", 
     264                 PVFS_handle_to_str(handle), llu(pos.session), llu(pos.count)); 
    265265 
    266266    return 0; 
  • branches/orange-next/src/io/trove/trove-dbpf/dbpf-keyval.c

    r8979 r8994  
    16601660    /* not safe to print this if it may be a binary key */ 
    16611661    gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 
    1662                  "PINT_dbpf_keyval_remove: handle (%llu), key: (%d) %*s\n", 
    1663                  llu(handle), key->buffer_sz, key->buffer_sz, (char *)key->buffer); 
     1662                 "PINT_dbpf_keyval_remove: handle (%s), key: (%d) %*s\n", 
     1663                 PVFS_handle_to_str(handle), key->buffer_sz, key->buffer_sz, (char *)key->buffer); 
    16641664    #endif 
    16651665 
  • branches/orange-next/src/io/trove/trove-dbpf/dbpf-sync.c

    r8600 r8994  
    129129    gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 
    130130                 "[SYNC_COALESCE]: sync_coalesce called, " 
    131                  "handle: %llu, cid: %d\n", 
    132                  llu(qop_p->op.handle), cid); 
     131                 "handle: %s, cid: %d\n", 
     132                 PVFS_handle_to_str(qop_p->op.handle), cid); 
    133133 
    134134    sync_context_type = dbpf_sync_get_object_sync_context(qop_p->op.type); 
     
    140140        gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 
    141141                     "[SYNC_COALESCE]: sync not needed, " 
    142                      "moving to completion queue: %llu\n", 
    143                      llu(qop_p->op.handle)); 
     142                     "moving to completion queue: %s\n", 
     143                     PVFS_handle_to_str(qop_p->op.handle)); 
    144144        dbpf_queued_op_complete(qop_p, OP_COMPLETED); 
    145145        return 0; 
     
    225225 
    226226        gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 
    227                      "[SYNC_COALESCE]: moving op: %p, handle: %llu , type: %d " 
     227                     "[SYNC_COALESCE]: moving op: %p, handle: %s , type: %d " 
    228228                     "to completion queue\n", 
    229                      qop_p, llu(qop_p->op.handle), qop_p->op.type); 
     229                     qop_p, PVFS_handle_to_str(qop_p->op.handle), qop_p->op.type); 
    230230 
    231231        if(qop_p->event_type == trove_dbpf_dspace_create_event_id) 
     
    261261 
    262262            gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 
    263                          "[SYNC_COALESCE]: moving op: %p, handle: %llu , type: %d " 
     263                         "[SYNC_COALESCE]: moving op: %p, handle: %s , type: %d " 
    264264                         "to completion queue\n", 
    265                          ready_op, llu(ready_op->op.handle), ready_op->op.type); 
     265                         ready_op, PVFS_handle_to_str(ready_op->op.handle), ready_op->op.type); 
    266266 
    267267            dbpf_op_queue_remove(ready_op); 
     
    279279        gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 
    280280                     "[SYNC_COALESCE]:\tcoalescing type: %d " 
    281                      "coalesce_counter: %d, sync_counter: %d, handle %llu\n",  
     281                     "coalesce_counter: %d, sync_counter: %d, handle %s\n",  
    282282                     sync_context_type, sync_context->coalesce_counter, 
    283283                     sync_context->sync_counter, 
    284                      llu(qop_p->op.handle)); 
     284                     PVFS_handle_to_str(qop_p->op.handle)); 
    285285 
    286286        dbpf_op_queue_add( 
  • branches/orange-next/src/io/trove/trove-migrate.c

    r8959 r8994  
    562562                ret = -1; 
    563563                gossip_err("trove_dspace_getattr_list failure: \ 
    564 coll=%d context=%lld handle=%llu state=%d\n", 
     564coll=%d context=%lld handle=%s state=%d\n", 
    565565                           coll_id, lld(context_id), 
    566                            llu(handles[i]), states[i]); 
     566                           PVFS_handle_to_str(handles[i]), states[i]); 
    567567                goto complete; 
    568568            } 
  • branches/orange-next/src/kernel/linux-2.6/acl.c

    r8842 r8994  
    3333#include "bmi-byteswap.h" 
    3434#include <linux/fs_struct.h> 
     35#include "../../common/misc/pvfs2-handle-to-str.h" 
    3536 
    3637/* 
     
    228229        return ERR_PTR(-ENOMEM); 
    229230    } 
    230     gossip_debug(GOSSIP_ACL_DEBUG, "inode %llu, key %s, type %d\n",  
    231             llu(get_handle_from_ino(inode)), key, type); 
     231    gossip_debug(GOSSIP_ACL_DEBUG, "inode %s, key %s, type %d\n",  
     232            PVFS_handle_to_str(get_handle_from_ino(inode)), key, type); 
    232233    ret = pvfs2_inode_getxattr(inode, "", key, value, PVFS_MAX_XATTR_VALUELEN); 
    233234    /* if the key exists, convert it to an in-memory rep */ 
     
    241242    } 
    242243    else { 
    243         gossip_err("inode %llu retrieving acl's failed with error %d\n", 
    244                 llu(get_handle_from_ino(inode)), ret); 
     244        gossip_err("inode %s retrieving acl's failed with error %d\n", 
     245                PVFS_handle_to_str(get_handle_from_ino(inode)), ret); 
    245246        acl = ERR_PTR(ret); 
    246247    } 
     
    321322        } 
    322323    } 
    323     gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_set_acl: inode %llu, key %s type %d\n", 
    324             llu(get_handle_from_ino(inode)), name, type); 
     324    gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_set_acl: inode %s, key %s type %d\n", 
     325            PVFS_handle_to_str(get_handle_from_ino(inode)), name, type); 
    325326    /* If we do have an access control list, then we need to encode that! */ 
    326327    if (acl)  
     
    720721    struct posix_acl *acl = NULL; 
    721722 
    722     gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_check_acl: called on inode %llu\n", 
    723             llu(get_handle_from_ino(inode))); 
     723    gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_check_acl: called on inode %s\n", 
     724            PVFS_handle_to_str(get_handle_from_ino(inode))); 
    724725 
    725726    acl = pvfs2_get_acl(inode, ACL_TYPE_ACCESS); 
     
    736737        posix_acl_release(acl); 
    737738        gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_check_acl: posix_acl_permission " 
    738                 " (inode %llu, acl %p, mask %x) returned %d\n", 
    739                  llu(get_handle_from_ino(inode)), acl, mask, error); 
     739                " (inode %s, acl %p, mask %x) returned %d\n", 
     740                 PVFS_handle_to_str(get_handle_from_ino(inode)), acl, mask, error); 
    740741        return error; 
    741742    } 
     
    771772    if (ret != 0) 
    772773    { 
    773         gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission failed: inode: %llu mask = %o" 
     774        gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission failed: inode: %s mask = %o" 
    774775                "mode = %o current->fsuid = %d " 
    775776                "inode->i_uid = %d, inode->i_gid = %d " 
    776777                "in_group_p = %d " 
    777778                "(ret = %d)\n", 
    778                 llu(get_handle_from_ino(inode)), mask, inode->i_mode, fsuid,  
     779                PVFS_handle_to_str(get_handle_from_ino(inode)), mask, inode->i_mode, fsuid,  
    779780                inode->i_uid, inode->i_gid,  
    780781                in_group_p(inode->i_gid), 
     
    788789    } 
    789790    else { 
    790         gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission succeeded on inode %llu\n", 
    791                 llu(get_handle_from_ino(inode))); 
     791        gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission succeeded on inode %s\n", 
     792                PVFS_handle_to_str(get_handle_from_ino(inode))); 
    792793    } 
    793794    return ret; 
     
    797798    int error; 
    798799 
    799     gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission: inode: %llu mask = %o" 
     800    gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission: inode: %s mask = %o" 
    800801            "mode = %o current->fsuid = %d " 
    801802            "inode->i_uid = %d, inode->i_gid = %d" 
    802803            "in_group_p = %d\n",  
    803             llu(get_handle_from_ino(inode)), mask, mode, fsuid, 
     804            PVFS_handle_to_str(get_handle_from_ino(inode)), mask, mode, fsuid, 
    804805            inode->i_uid, inode->i_gid, 
    805806            in_group_p(inode->i_gid)); 
  • branches/orange-next/src/kernel/linux-2.6/dcache.c

    r8842 r8994  
    1313#include "pvfs2-kernel.h" 
    1414#include "pvfs2-internal.h" 
     15#include "../../common/misc/pvfs2-handle-to-str.h" 
    1516 
    1617static void __attribute__ ((unused)) print_dentry(struct dentry *entry, int ret); 
     
    130131    /* now perform getattr */ 
    131132    gossip_debug(GOSSIP_DCACHE_DEBUG, 
    132                  "%s: doing getattr: inode: %p, handle: %llu)\n", 
    133                  __func__, inode, llu(get_handle_from_ino(inode))); 
     133                 "%s: doing getattr: inode: %p, handle: %s)\n", 
     134                 __func__, inode, PVFS_handle_to_str(get_handle_from_ino(inode))); 
    134135    ret = pvfs2_inode_getattr(inode, PVFS_ATTR_SYS_ALL_NOHINT); 
    135136    gossip_debug(GOSSIP_DCACHE_DEBUG, 
  • branches/orange-next/src/kernel/linux-2.6/file.c

    r8876 r8994  
    1717#include <linux/fs.h> 
    1818#include <linux/pagemap.h> 
     19#include "../../common/misc/pvfs2-handle-to-str.h" 
    1920 
    2021enum io_type { 
     
    7273    int ret = -EINVAL; 
    7374 
    74     gossip_debug(GOSSIP_FILE_DEBUG, "pvfs2_file_open: called on %s (inode is %llu)\n", 
    75                 file->f_dentry->d_name.name, llu(get_handle_from_ino(inode))); 
     75    gossip_debug(GOSSIP_FILE_DEBUG, "pvfs2_file_open: called on %s (inode is %s)\n", 
     76                file->f_dentry->d_name.name, PVFS_handle_to_str(get_handle_from_ino(inode))); 
    7677 
    7778    inode->i_mapping->host = inode; 
     
    511512          { 
    512513              gossip_err( 
    513                     "%s: error in %s handle %llu, " 
     514                    "%s: error in %s handle %s, " 
    514515                    "FILE: %s, returning %ld\n", 
    515516                    rw->fnstr,  
    516517                    rw->type == IO_READV ? "vectored read from" : "vectored write to", 
    517                     llu(get_handle_from_ino(rw->inode)), 
     518                    PVFS_handle_to_str(get_handle_from_ino(rw->inode)), 
    518519                    (rw->file && rw->file->f_dentry && rw->file->f_dentry->d_name.name ? 
    519520                     (char *)rw->file->f_dentry->d_name.name : "UNKNOWN"), 
     
    18851886          { 
    18861887              gossip_err( 
    1887                 "%s: error in %s handle %llu, " 
     1888                "%s: error in %s handle %s, " 
    18881889                "FILE: %s\n  -- returning %ld\n", 
    18891890                rw->fnstr,  
    18901891                rw->type == IO_READX ? "noncontig read from" : "noncontig write to", 
    1891                 llu(get_handle_from_ino(rw->inode)), 
     1892                PVFS_handle_to_str(get_handle_from_ino(rw->inode)), 
    18921893                (rw->file && rw->file->f_dentry && rw->file->f_dentry->d_name.name ? 
    18931894                     (char *) rw->file->f_dentry->d_name.name : "UNKNOWN"), 
  • branches/orange-next/src/kernel/linux-2.6/inode.c

    r8872 r8994  
    1515#include "pvfs2-types.h" 
    1616#include "pvfs2-internal.h" 
     17#include "../../common/misc/pvfs2-handle-to-str.h" 
    1718 
    1819static int read_one_page(struct page *page) 
     
    170171    if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) 
    171172        return; 
    172     gossip_debug(GOSSIP_INODE_DEBUG, "pvfs2: pvfs2_truncate called on inode %llu " 
    173                 "with size %ld\n", llu(get_handle_from_ino(inode)), (long) orig_size); 
     173    gossip_debug(GOSSIP_INODE_DEBUG, "pvfs2: pvfs2_truncate called on inode %s " 
     174                "with size %ld\n", PVFS_handle_to_str(get_handle_from_ino(inode)), (long) orig_size); 
    174175 
    175176    /* successful truncate when size changes also requires mtime updates  
     
    517518#endif 
    518519    } 
    519     gossip_debug(GOSSIP_INODE_DEBUG, "iget handle %llu, fsid %d hash %ld i_ino %lu\n", 
    520                  ref->handle, ref->fs_id, hash, inode->i_ino); 
     520    gossip_debug(GOSSIP_INODE_DEBUG, "iget handle %s, fsid %d hash %ld i_ino %lu\n", 
     521                 PVFS_handle_to_str(ref->handle), ref->fs_id, hash, inode->i_ino); 
    521522    return inode; 
    522523} 
     
    637638        } 
    638639#if !defined(PVFS2_LINUX_KERNEL_2_4) && defined(HAVE_GENERIC_GETXATTR) && defined(CONFIG_FS_POSIX_ACL) 
    639         gossip_debug(GOSSIP_ACL_DEBUG, "Initializing ACL's for inode %llu\n",  
    640                 llu(get_handle_from_ino(inode))); 
     640        gossip_debug(GOSSIP_ACL_DEBUG, "Initializing ACL's for inode %s\n",  
     641                PVFS_handle_to_str(get_handle_from_ino(inode))); 
    641642        /* Initialize the ACLs of the new inode */ 
    642643        pvfs2_init_acl(inode, dir); 
  • branches/orange-next/src/kernel/linux-2.6/namei.c

    r8842 r8994  
    1313#include "pvfs2-kernel.h" 
    1414#include "pvfs2-internal.h" 
     15#include "../../common/misc/pvfs2-handle-to-str.h" 
    1516 
    1617/** Get a newly allocated inode to go with a negative dentry. 
     
    113114                && parent->refn.fs_id != PVFS_FS_ID_NULL) 
    114115        { 
    115             gossip_debug(GOSSIP_NAME_DEBUG, "%s:%s:%d using parent %llu\n", 
    116               __FILE__, __func__, __LINE__, llu(parent->refn.handle)); 
     116            gossip_debug(GOSSIP_NAME_DEBUG, "%s:%s:%d using parent %s\n", 
     117              __FILE__, __func__, __LINE__, PVFS_handle_to_str(parent->refn.handle)); 
    117118            new_op->upcall.req.lookup.parent_refn = parent->refn; 
    118119        } 
     
    146147            dentry->d_name.name, PVFS2_NAME_LEN); 
    147148 
    148     gossip_debug(GOSSIP_NAME_DEBUG, "pvfs2_lookup: doing lookup on %s\n  under %llu,%d " 
     149    gossip_debug(GOSSIP_NAME_DEBUG, "pvfs2_lookup: doing lookup on %s\n  under %s,%d " 
    149150                "(follow=%s)\n", new_op->upcall.req.lookup.d_name, 
    150                 llu(new_op->upcall.req.lookup.parent_refn.handle), 
     151                PVFS_handle_to_str(new_op->upcall.req.lookup.parent_refn.handle), 
    151152                new_op->upcall.req.lookup.parent_refn.fs_id, 
    152153                ((new_op->upcall.req.lookup.sym_follow == 
     
    157158        get_interruptible_flag(dir)); 
    158159 
    159     gossip_debug(GOSSIP_NAME_DEBUG, "Lookup Got %llu, fsid %d (ret=%d)\n", 
    160                 llu(new_op->downcall.resp.lookup.refn.handle), 
     160    gossip_debug(GOSSIP_NAME_DEBUG, "Lookup Got %s, fsid %d (ret=%d)\n", 
     161                PVFS_handle_to_str(new_op->downcall.resp.lookup.refn.handle), 
    161162                new_op->downcall.resp.lookup.refn.fs_id, ret); 
    162163 
  • branches/orange-next/src/kernel/linux-2.6/pvfs2-utils.c

    r8932 r8994  
    1111#include "pvfs2-bufmap.h" 
    1212#include "pvfs2-internal.h" 
     13#include "../../common/misc/pvfs2-handle-to-str.h" 
    1314 
    1415int pvfs2_gen_credentials( 
     
    266267            /* special case: mark the root inode as sticky */ 
    267268            inode->i_mode |= S_ISVTX; 
    268             gossip_debug(GOSSIP_UTILS_DEBUG, "Marking inode %llu as sticky\n",  
    269                     llu(get_handle_from_ino(inode))); 
     269            gossip_debug(GOSSIP_UTILS_DEBUG, "Marking inode %s as sticky\n",  
     270                    PVFS_handle_to_str(get_handle_from_ino(inode))); 
    270271        } 
    271272 
     
    436437    pvfs2_inode_t *pvfs2_inode = NULL; 
    437438 
    438     gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_inode_getattr: called on inode %llu\n", 
    439                 llu(get_handle_from_ino(inode))); 
     439    gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_inode_getattr: called on inode %s\n", 
     440                PVFS_handle_to_str(get_handle_from_ino(inode))); 
    440441 
    441442    if (inode) 
     
    529530 
    530531      copy_attr_failure: 
    531         gossip_debug(GOSSIP_UTILS_DEBUG, "Getattr on handle %llu, fsid %d\n  (inode ct = %d) " 
     532        gossip_debug(GOSSIP_UTILS_DEBUG, "Getattr on handle %s, fsid %d\n  (inode ct = %d) " 
    532533                    "returned %d\n", 
    533                     llu(pvfs2_inode->refn.handle), pvfs2_inode->refn.fs_id, 
     534                    PVFS_handle_to_str(pvfs2_inode->refn.handle), pvfs2_inode->refn.fs_id, 
    534535                    (int)atomic_read(&inode->i_count), ret); 
    535536        /* store error code in the inode so that we can retrieve it later if 
     
    663664    } 
    664665 
    665     gossip_debug(GOSSIP_UTILS_DEBUG, "*********** pvfs2_flush_inode: %llu " 
    666             "(ia_valid %d)\n", llu(get_handle_from_ino(inode)), wbattr.ia_valid); 
     666    gossip_debug(GOSSIP_UTILS_DEBUG, "*********** pvfs2_flush_inode: %s " 
     667            "(ia_valid %d)\n", PVFS_handle_to_str(get_handle_from_ino(inode)), wbattr.ia_valid); 
    667668    if (wbattr.ia_valid == 0) 
    668669    { 
     
    671672    } 
    672673         
    673     gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_flush_inode (%llu) writing mode %o\n", 
    674         llu(get_handle_from_ino(inode)), inode->i_mode); 
     674    gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_flush_inode (%s) writing mode %o\n", 
     675        PVFS_handle_to_str(get_handle_from_ino(inode)), inode->i_mode); 
    675676 
    676677    ret = pvfs2_inode_setattr(inode, &wbattr); 
     
    779780#endif 
    780781 
    781         gossip_debug(GOSSIP_XATTR_DEBUG, "getxattr on inode %llu, name %s (uid %o, gid %o)\n",  
    782                 llu(get_handle_from_ino(inode)), name, fsuid, fsgid); 
     782        gossip_debug(GOSSIP_XATTR_DEBUG, "getxattr on inode %s, name %s (uid %o, gid %o)\n",  
     783                PVFS_handle_to_str(get_handle_from_ino(inode)), name, fsuid, fsgid); 
    783784        pvfs2_inode = PVFS2_I(inode); 
    784785        /* obtain the xattr semaphore */ 
     
    849850                            new_length); 
    850851                    ret = new_length; 
    851                     gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode %llu key %s " 
     852                    gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode %s key %s " 
    852853                            " key_sz %d, val_length %d\n",  
    853                         llu(get_handle_from_ino(inode)), 
     854                        PVFS_handle_to_str(get_handle_from_ino(inode)), 
    854855                        (char*)new_op->upcall.req.getxattr.key,  
    855856                        (int) new_op->upcall.req.getxattr.key_sz, (int) ret); 
     
    860861        { 
    861862            ret = -ENODATA; /* if no such keys exists we set this to be errno */ 
    862             gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode %llu key %s does not exist!\n", 
    863                     llu(get_handle_from_ino(inode)), (char *) new_op->upcall.req.getxattr.key); 
     863            gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode %s key %s does not exist!\n", 
     864                    PVFS_handle_to_str(get_handle_from_ino(inode)), (char *) new_op->upcall.req.getxattr.key); 
    864865        } 
    865866 
     
    922923    if (inode) 
    923924    { 
    924         gossip_debug(GOSSIP_XATTR_DEBUG, "setxattr on inode %llu, name %s\n",  
    925                 llu(get_handle_from_ino(inode)), name); 
     925        gossip_debug(GOSSIP_XATTR_DEBUG, "setxattr on inode %s, name %s\n",  
     926                PVFS_handle_to_str(get_handle_from_ino(inode)), name); 
    926927        if (IS_RDONLY(inode)) 
    927928        { 
     
    12311232        get_interruptible_flag(dir)); 
    12321233 
    1233     gossip_debug(GOSSIP_UTILS_DEBUG, "Create Got PVFS2 handle %llu on fsid %d (ret=%d)\n", 
    1234                 llu(new_op->downcall.resp.create.refn.handle), 
     1234    gossip_debug(GOSSIP_UTILS_DEBUG, "Create Got PVFS2 handle %s on fsid %d (ret=%d)\n", 
     1235                PVFS_handle_to_str(new_op->downcall.resp.create.refn.handle), 
    12351236                new_op->downcall.resp.create.refn.fs_id, ret); 
    12361237 
     
    12471248        } 
    12481249 
    1249         gossip_debug(GOSSIP_UTILS_DEBUG, "Assigned file inode new number of %llu\n", 
    1250                     llu(get_handle_from_ino(inode))); 
     1250        gossip_debug(GOSSIP_UTILS_DEBUG, "Assigned file inode new number of %s\n", 
     1251                    PVFS_handle_to_str(get_handle_from_ino(inode))); 
    12511252        /* finally, add dentry with this new inode to the dcache */ 
    12521253        gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_create_file: Instantiating\n *negative* " 
     
    12561257        dentry->d_op = &pvfs2_dentry_operations; 
    12571258        d_instantiate(dentry, inode); 
    1258         gossip_debug(GOSSIP_UTILS_DEBUG, "Inode (Regular File) %llu -> %s\n", 
    1259                 llu(get_handle_from_ino(inode)), dentry->d_name.name); 
     1259        gossip_debug(GOSSIP_UTILS_DEBUG, "Inode (Regular File) %s -> %s\n", 
     1260                PVFS_handle_to_str(get_handle_from_ino(inode)), dentry->d_name.name); 
    12601261    } 
    12611262    else 
     
    13181319        get_interruptible_flag(dir)); 
    13191320 
    1320     gossip_debug(GOSSIP_UTILS_DEBUG, "Mkdir Got PVFS2 handle %llu on fsid %d\n", 
    1321                 llu(new_op->downcall.resp.mkdir.refn.handle), 
     1321    gossip_debug(GOSSIP_UTILS_DEBUG, "Mkdir Got PVFS2 handle %s on fsid %d\n", 
     1322                PVFS_handle_to_str(new_op->downcall.resp.mkdir.refn.handle), 
    13221323                new_op->downcall.resp.mkdir.refn.fs_id); 
    13231324 
     
    13341335        } 
    13351336 
    1336         gossip_debug(GOSSIP_UTILS_DEBUG, "Assigned dir inode new number of %llu\n", 
    1337                     llu(get_handle_from_ino(inode))); 
     1337        gossip_debug(GOSSIP_UTILS_DEBUG, "Assigned dir inode new number of %s\n", 
     1338                    PVFS_handle_to_str(get_handle_from_ino(inode))); 
    13381339        /* finally, add dentry with this new inode to the dcache */ 
    13391340        gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_create_dir: Instantiating\n  *negative* " 
     
    13431344        dentry->d_op = &pvfs2_dentry_operations; 
    13441345        d_instantiate(dentry, inode); 
    1345         gossip_debug(GOSSIP_UTILS_DEBUG, "Inode (Directory) %llu -> %s\n", 
    1346                 llu(get_handle_from_ino(inode)), dentry->d_name.name); 
     1346        gossip_debug(GOSSIP_UTILS_DEBUG, "Inode (Directory) %s -> %s\n", 
     1347                PVFS_handle_to_str(get_handle_from_ino(inode)), dentry->d_name.name); 
    13471348    } 
    13481349    else 
     
    14131414        get_interruptible_flag(dir)); 
    14141415 
    1415     gossip_debug(GOSSIP_UTILS_DEBUG, "Symlink Got PVFS2 handle %llu on fsid %d (ret=%d)\n", 
    1416                 llu(new_op->downcall.resp.sym.refn.handle), 
     1416    gossip_debug(GOSSIP_UTILS_DEBUG, "Symlink Got PVFS2 handle %s on fsid %d (ret=%d)\n", 
     1417                PVFS_handle_to_str(new_op->downcall.resp.sym.refn.handle), 
    14171418                new_op->downcall.resp.sym.refn.fs_id, ret); 
    14181419 
     
    14291430        } 
    14301431 
    1431         gossip_debug(GOSSIP_UTILS_DEBUG, "Assigned symlink inode new number of %llu\n", 
    1432                     llu(get_handle_from_ino(inode))); 
     1432        gossip_debug(GOSSIP_UTILS_DEBUG, "Assigned symlink inode new number of %s\n", 
     1433                    PVFS_handle_to_str(get_handle_from_ino(inode))); 
    14331434 
    14341435        /* finally, add dentry with this new inode to the dcache */ 
     
    14391440        dentry->d_op = &pvfs2_dentry_operations; 
    14401441        d_instantiate(dentry, inode); 
    1441         gossip_debug(GOSSIP_UTILS_DEBUG, "Inode (Symlink) %llu -> %s\n", 
    1442                 llu(get_handle_from_ino(inode)), dentry->d_name.name); 
     1442        gossip_debug(GOSSIP_UTILS_DEBUG, "Inode (Symlink) %s -> %s\n", 
     1443                PVFS_handle_to_str(get_handle_from_ino(inode)), dentry->d_name.name); 
    14431444    } 
    14441445    else 
     
    15161517    if (inode && parent && dentry) 
    15171518    { 
    1518         gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_remove_entry: called on %s\n  (inode %llu): " 
    1519                     "Parent is %llu | fs_id %d\n", dentry->d_name.name, 
    1520                     llu(get_handle_from_ino(inode)), llu(parent->refn.handle), 
     1519        gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_remove_entry: called on %s\n  (inode %s): " 
     1520                    "Parent is %s | fs_id %d\n", dentry->d_name.name, 
     1521                    PVFS_handle_to_str(get_handle_from_ino(inode)), PVFS_handle_to_str(parent->refn.handle), 
    15211522                    parent->refn.fs_id); 
    15221523 
     
    15641565    pvfs2_kernel_op_t *new_op = NULL; 
    15651566 
    1566     gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2: pvfs2_truncate_inode %llu: " 
    1567                 "Handle is %llu | fs_id %d | size is %lu\n", 
    1568                 llu(get_handle_from_ino(inode)), llu(pvfs2_inode->refn.handle), 
     1567    gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2: pvfs2_truncate_inode %s: " 
     1568                "Handle is %s | fs_id %d | size is %lu\n", 
     1569                PVFS_handle_to_str(get_handle_from_ino(inode)), PVFS_handle_to_str(pvfs2_inode->refn.handle), 
    15691570                pvfs2_inode->refn.fs_id, (unsigned long)size); 
    15701571 
     
    17491750    ref.handle = opaque_handle.handle; 
    17501751    ref.fs_id  = opaque_handle.fsid; 
    1751     gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_sb_find_inode_handle: obtained inode number %llu\n", 
    1752             llu(opaque_handle.handle)); 
     1752    gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_sb_find_inode_handle: obtained inode number %s\n", 
     1753            PVFS_handle_to_str(opaque_handle.handle)); 
    17531754    /*  
    17541755     * NOTE: Locate the inode number in the icache if possible. 
     
    19131914    pvfs2_kernel_op_t *new_op = NULL; 
    19141915 
    1915     gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_flush_mmap_racache %llu: Handle is %llu " 
    1916                 "| fs_id %d\n", llu(get_handle_from_ino(inode)), 
    1917                 pvfs2_inode->refn.handle, pvfs2_inode->refn.fs_id); 
     1916    gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_flush_mmap_racache %s: Handle is %s " 
     1917                "| fs_id %d\n", PVFS_handle_to_str(get_handle_from_ino(inode)), 
     1918                PVFS_handle_to_str(pvfs2_inode->refn.handle), pvfs2_inode->refn.fs_id); 
    19181919 
    19191920    new_op = op_alloc(PVFS2_VFS_OP_MMAP_RA_FLUSH); 
     
    20502051          associated with the root handle in any case 
    20512052        */ 
    2052         gossip_debug(GOSSIP_UTILS_DEBUG, "*** NOT making bad root inode %llu\n", llu(get_handle_from_ino(inode))); 
     2053        gossip_debug(GOSSIP_UTILS_DEBUG, "*** NOT making bad root inode %s\n", PVFS_handle_to_str(get_handle_from_ino(inode))); 
    20532054    } 
    20542055    else 
    20552056    { 
    2056         gossip_debug(GOSSIP_UTILS_DEBUG, "*** making bad inode %llu\n", llu(get_handle_from_ino(inode))); 
     2057        gossip_debug(GOSSIP_UTILS_DEBUG, "*** making bad inode %s\n", PVFS_handle_to_str(get_handle_from_ino(inode))); 
    20572058        make_bad_inode(inode); 
    20582059    } 
  • branches/orange-next/src/kernel/linux-2.6/super.c

    r8317 r8994  
    88#include "pvfs2-bufmap.h" 
    99#include "pvfs2-internal.h" 
     10#include "../../common/misc/pvfs2-handle-to-str.h" 
    1011 
    1112/* list for storing pvfs2 specific superblocks in use */ 
     
    219220    if (pvfs2_inode) 
    220221    { 
    221         gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_destroy_inode: deallocated %p destroying inode %llu\n", 
    222                     pvfs2_inode, llu(get_handle_from_ino(inode))); 
     222        gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_destroy_inode: deallocated %p destroying inode %s\n", 
     223                    pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode))); 
    223224 
    224225        atomic_inc(&(PVFS2_SB(inode->i_sb)->pvfs2_inode_dealloc_count)); 
     
    233234    pvfs2_inode_t *pvfs2_inode = PVFS2_I(inode); 
    234235 
    235     gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_read_inode: %p (inode = %llu | ct = %d)\n", 
    236                 pvfs2_inode, llu(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
     236    gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_read_inode: %p (inode = %s | ct = %d)\n", 
     237                pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
    237238 
    238239    /* 
     
    255256    { 
    256257        /* assume an I/O error and mark the inode as bad */ 
    257         gossip_debug(GOSSIP_SUPER_DEBUG, "%s:%s:%d calling make bad inode - [%p] (inode = %llu | ct = %d)\n", 
    258                 __FILE__, __func__, __LINE__, pvfs2_inode, llu(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
     258        gossip_debug(GOSSIP_SUPER_DEBUG, "%s:%s:%d calling make bad inode - [%p] (inode = %s | ct = %d)\n", 
     259                __FILE__, __func__, __LINE__, pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
    259260        pvfs2_make_bad_inode(inode); 
    260261    } 
     
    299300        if (pvfs2_inode_getattr(inode, PVFS_ATTR_SYS_ALL_NOHINT) != 0) 
    300301        { 
    301             gossip_debug(GOSSIP_SUPER_DEBUG, "%s:%s:%d calling make bad inode - [%p] (inode = %llu | ct = %d)\n", 
    302                 __FILE__, __func__, __LINE__, pvfs2_inode, llu(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
     302            gossip_debug(GOSSIP_SUPER_DEBUG, "%s:%s:%d calling make bad inode - [%p] (inode = %s | ct = %d)\n", 
     303                __FILE__, __func__, __LINE__, pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
    303304            pvfs2_make_bad_inode(inode); 
    304305        } 
    305306        else { 
    306             gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2: pvfs2_read_inode: allocated %p (inode = %llu | " 
    307                     "ct = %d)\n", pvfs2_inode, llu(get_handle_from_ino(inode)), 
     307            gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2: pvfs2_read_inode: allocated %p (inode = %s | " 
     308                    "ct = %d)\n", pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode)), 
    308309                                  (int)atomic_read(&inode->i_count)); 
    309310        } 
     
    312313    { 
    313314        gossip_err("%s:%s:%d Could not allocate pvfs2_inode from pvfs2_inode_cache." 
    314             "calling make bad inode - [%p] (inode = %llu | ct = %d)\n", 
    315             __FILE__, __func__, __LINE__, pvfs2_inode, llu(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
     315            "calling make bad inode - [%p] (inode = %s | ct = %d)\n", 
     316            __FILE__, __func__, __LINE__, pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count)); 
    316317        pvfs2_make_bad_inode(inode); 
    317318    } 
     
    322323    pvfs2_inode_t *pvfs2_inode = PVFS2_I(inode); 
    323324 
    324     gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_clear_inode: deallocated %p, destroying inode %llu\n", 
    325                 pvfs2_inode, llu(get_handle_from_ino(inode))); 
     325    gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_clear_inode: deallocated %p, destroying inode %s\n", 
     326                pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode))); 
    326327 
    327328    pvfs2_inode_finalize(pvfs2_inode); 
     
    338339{ 
    339340    pvfs2_inode_t *pvfs2_inode = PVFS2_I(inode); 
    340     gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_put_inode: pvfs2_inode: %p (inode = %llu) = %d (nlink=%d)\n", 
    341                 pvfs2_inode, llu(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count), 
     341    gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_put_inode: pvfs2_inode: %p (inode = %s) = %d (nlink=%d)\n", 
     342                pvfs2_inode, PVFS_handle_to_str(get_handle_from_ino(inode)), (int)atomic_read(&inode->i_count), 
    342343                (int)inode->i_nlink); 
    343344 
     
    895896    { 
    896897        pvfs2_inode_t *pvfs2_inode = PVFS2_I(inode); 
    897         gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_dirty_inode: %llu\n", llu(get_handle_from_ino(inode))); 
     898        gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_dirty_inode: %s\n", PVFS_handle_to_str(get_handle_from_ino(inode))); 
    898899        SetAtimeFlag(pvfs2_inode); 
    899900    } 
     
    10311032    root_object.fs_id  = PVFS2_SB(sb)->fs_id; 
    10321033 
    1033     gossip_debug(GOSSIP_SUPER_DEBUG, "get inode %llu, fsid %d\n", 
    1034                  root_object.handle, root_object.fs_id); 
     1034    gossip_debug(GOSSIP_SUPER_DEBUG, "get inode %s, fsid %d\n", 
     1035                 PVFS_handle_to_str(root_object.handle), root_object.fs_id); 
    10351036    /* alloc and initialize our root directory inode by explicitly requesting 
    10361037     * the sticky bit to be set */ 
     
    11101111   refn.handle |= (u32) fid->raw[1]; 
    11111112   refn.fs_id  = (u32) fid->raw[2]; 
    1112    gossip_debug(GOSSIP_SUPER_DEBUG, "fh_to_dentry: handle %llu, fs_id %d\n", 
    1113                 refn.handle, refn.fs_id); 
     1113   gossip_debug(GOSSIP_SUPER_DEBUG, "fh_to_dentry: handle %s, fs_id %d\n", 
     1114                PVFS_handle_to_str(refn.handle), refn.fs_id); 
    11141115 
    11151116   inode = pvfs2_iget(sb, &refn); 
     
    11641165   handle = PVFS2_I(inode)->refn; 
    11651166   generation = inode->i_generation; 
    1166    gossip_debug(GOSSIP_SUPER_DEBUG, "Encoding fh: handle %llu, gen %u, fsid %u\n", 
    1167                 handle.handle, generation, handle.fs_id); 
     1167   gossip_debug(GOSSIP_SUPER_DEBUG, "Encoding fh: handle %s, gen %u, fsid %u\n", 
     1168                PVFS_handle_to_str(handle.handle), generation, handle.fs_id); 
    11681169 
    11691170   len = 3; 
     
    11871188      len = 6; 
    11881189      type = 2; 
    1189       gossip_debug(GOSSIP_SUPER_DEBUG, "Encoding parent: handle %llu, gen %u, fsid %u\n", 
    1190                   handle.handle, generation, handle.fs_id); 
     1190      gossip_debug(GOSSIP_SUPER_DEBUG, "Encoding parent: handle %s, gen %u, fsid %u\n", 
     1191                  PVFS_handle_to_str(handle.handle), generation, handle.fs_id); 
    11911192   } 
    11921193   *max_len = len; 
     
    12641265    root_object.handle = PVFS2_SB(sb)->root_handle; 
    12651266    root_object.fs_id  = PVFS2_SB(sb)->fs_id; 
    1266     gossip_debug(GOSSIP_SUPER_DEBUG, "get inode %llu, fsid %d\n", 
    1267                  root_object.handle, root_object.fs_id); 
     1267    gossip_debug(GOSSIP_SUPER_DEBUG, "get inode %s, fsid %d\n", 
     1268                 PVFS_handle_to_str(root_object.handle), root_object.fs_id); 
    12681269    /* alloc and initialize our root directory inode. be explicit about sticky 
    12691270     * bit */ 
  • branches/orange-next/src/kernel/linux-2.6/symlink.c

    r5726 r8994  
    88#include "pvfs2-bufmap.h" 
    99#include "pvfs2-internal.h" 
     10#include "../../common/misc/pvfs2-handle-to-str.h" 
    1011 
    1112static int pvfs2_readlink( 
     
    1415    pvfs2_inode_t *pvfs2_inode = PVFS2_I(dentry->d_inode); 
    1516 
    16     gossip_debug(GOSSIP_INODE_DEBUG, "pvfs2_readlink called on inode %llu\n", 
    17                 llu(get_handle_from_ino(dentry->d_inode))); 
     17    gossip_debug(GOSSIP_INODE_DEBUG, "pvfs2_readlink called on inode %s\n", 
     18                PVFS_handle_to_str(get_handle_from_ino(dentry->d_inode))); 
    1819 
    1920    /* 
  • branches/orange-next/test/client/sysint/create-with-dist.c

    r7500 r8994  
    8282    parent_refn.fs_id = cur_fs; 
    8383 
    84     printf("File to be created is %s under parent %llu\n", 
    85            str_buf, llu(parent_refn.handle)); 
     84    printf("File to be created is %s under parent %s\n", 
     85           str_buf, PVFS_handle_to_str(parent_refn.handle)); 
    8686 
    8787    /* Lookup the distribution to use */ 
  • branches/orange-next/test/client/sysint/create.c

    r7500 r8994  
    7979    parent_refn.fs_id = cur_fs; 
    8080 
    81     printf("File to be created is %s under parent %llu\n", 
    82            str_buf, llu(parent_refn.handle)); 
     81    printf("File to be created is %s under parent %s\n", 
     82           str_buf, PVFS_handle_to_str(parent_refn.handle)); 
    8383 
    8484    ret = PVFS_sys_create(entry_name, parent_refn, attr, 
  • branches/orange-next/test/client/sysint/create.set.get.eattr.c

    r7500 r8994  
    8686    parent_refn.fs_id = cur_fs; 
    8787 
    88     printf("File to be created is %s under parent %llu\n", 
    89            str_buf, llu(parent_refn.handle)); 
     88    printf("File to be created is %s under parent %s\n", 
     89           str_buf, PVFS_handle_to_str(parent_refn.handle)); 
    9090 
    9191    ret = PVFS_sys_create(entry_name, parent_refn, attr, 
  • branches/orange-next/test/client/sysint/dmkdir.c

    r7471 r8994  
    9595    // print the handle  
    9696    printf("--mkdir--\n");  
    97     printf("Handle:%llu\n",llu(resp_mkdir.ref.handle)); 
     97    printf("Handle:%s\n",PVFS_handle_to_str(resp_mkdir.ref.handle)); 
    9898    printf("FSID:%d\n",parent_refn.fs_id); 
    9999 
     
    107107    // print the handle  
    108108    printf("--mkdir--\n");  
    109     printf("Handle:%llu\n",llu(resp_mkdir.ref.handle)); 
     109    printf("Handle:%s\n",PVFS_handle_to_str(resp_mkdir.ref.handle)); 
    110110    printf("FSID:%d\n",parent_refn.fs_id); 
    111111 
     
    119119    // print the handle  
    120120    printf("--mkdir--\n");  
    121     printf("Handle:%llu\n",llu(resp_mkdir.ref.handle)); 
     121    printf("Handle:%s\n",PVFS_handle_to_str(resp_mkdir.ref.handle)); 
    122122    printf("FSID:%d\n",parent_refn.fs_id); 
    123123 
  • branches/orange-next/test/client/sysint/find.c

    r7500 r8994  
    1313#include "pvfs2-util.h" 
    1414#include "pvfs2-internal.h" 
     15#include <pvfs2-handle-to-str.h> 
    1516 
    1617/* TODO: this can be larger after system interface readdir logic 
     
    139140            cur_handle = rd_response.dirent_array[i].handle; 
    140141 
    141             gossip_debug(GOSSIP_CLIENT_DEBUG,"Got handle %llu\n", 
    142                          llu(cur_handle)); 
     142            gossip_debug(GOSSIP_CLIENT_DEBUG,"Got handle %s\n", 
     143                         PVFS_handle_to_str(cur_handle)); 
    143144 
    144145            is_dir = is_directory(cur_handle, 
  • branches/orange-next/test/client/sysint/get-info.c

    r7471 r8994  
    8585    r_ctime = (time_t)resp_gattr->attr.ctime; 
    8686 
    87     printf("Handle      : %llu\n", llu(pinode_refn.handle)); 
     87    printf("Handle      : %s\n", PVFS_handle_to_str(pinode_refn.handle)); 
    8888    printf("FSID        : %d\n", (int)pinode_refn.fs_id); 
    8989    printf("mask        : %d\n", resp_gattr->attr.mask); 
  • branches/orange-next/test/client/sysint/io-test.c

    r8871 r8994  
    235235    for (i = 0; i < resp_getattr.attr.dfile_count; i++) 
    236236    { 
    237         printf("%llu\n", llu(dfile_array[i])); 
     237        printf("%s\n", PVFS_handle_to_str(dfile_array[i])); 
    238238    } 
    239239 
  • branches/orange-next/test/client/sysint/lookup.c

    r7471 r8994  
    7272    } 
    7373 
    74     printf("Handle     : %llu\n", llu(resp_lk.ref.handle)); 
     74    printf("Handle     : %s\n", PVFS_handle_to_str(resp_lk.ref.handle)); 
    7575    printf("FS ID      : %d\n", resp_lk.ref.fs_id); 
    7676 
  • branches/orange-next/test/client/sysint/mkdir.c

    r7471 r8994  
    8989    // print the handle  
    9090    printf("--mkdir--\n");  
    91     printf("Handle:%llu\n",llu(resp_mkdir.ref.handle)); 
     91    printf("Handle:%s\n",PVFS_handle_to_str(resp_mkdir.ref.handle)); 
    9292    printf("FSID:%d\n",parent_refn.fs_id); 
    9393 
  • branches/orange-next/test/client/sysint/set-info.c

    r7471 r8994  
    7979 
    8080    printf("Retrieved the following attributes\n"); 
    81     printf("Handle      : %llu\n", llu(pinode_refn.handle)); 
     81    printf("Handle      : %s\n", PVFS_handle_to_str(pinode_refn.handle)); 
    8282    printf("FSID        : %d\n", (int)pinode_refn.fs_id); 
    8383    printf("mask        : %d\n", resp_getattr.attr.mask); 
  • branches/orange-next/test/client/sysint/test-accesses.c

    r7500 r8994  
    77#include "pvfs2.h" 
    88#include "pvfs2-sysint.h" 
     9#include <pvfs2-handle-to-str.h> 
    910 
    1011#if PVFS2_SIZEOF_VOIDP == 32  
     
    118119        if(ret < 0) goto error; 
    119120 
    120         printf("Performing Write: offset: %llu, size: %d\n", 
    121                llu(offset), size); 
     121        printf("Performing Write: offset: %s, size: %d\n", 
     122               PVFS_handle_to_str(offset), size); 
    122123 
    123124        ret = PVFS_sys_io( 
  • branches/orange-next/test/client/sysint/test-pint-bucket.c

    r7471 r8994  
    164164                for(n = 0; n < meta_handle_extent_array.extent_count; n++) 
    165165                { 
    166                     printf("Meta server %d handle range: %llu-%llu\n", j, 
    167                            llu(meta_handle_extent_array.extent_array[n].first), 
    168                            llu(meta_handle_extent_array.extent_array[n].last)); 
     166                    printf("Meta server %d handle range: %s-%s\n", j, 
     167                           PVFS_handle_to_str(meta_handle_extent_array.extent_array[n].first), 
     168                           PVFS_handle_to_str(meta_handle_extent_array.extent_array[n].last)); 
    169169                } 
    170170            } 
     
    189189                for(n = 0; n < data_handle_extent_array[j].extent_count; n++) 
    190190                { 
    191                     printf("Data server %d handle range: %llu-%llu\n", n, 
    192                            llu(data_handle_extent_array[j].extent_array[n].first), 
    193                            llu(data_handle_extent_array[j].extent_array[n].last)); 
     191                    printf("Data server %d handle range: %s-%s\n", n, 
     192                           PVFS_handle_to_str(data_handle_extent_array[j].extent_array[n].first), 
     193                           PVFS_handle_to_str(data_handle_extent_array[j].extent_array[n].last)); 
    194194                    /* get some contrived test handles */ 
    195195                    if (test_handle_index < NUM_TEST_HANDLES) 
  • branches/orange-next/test/client/sysint/test-pint-ncache.c

    r5463 r8994  
    101101    { 
    102102        fprintf(stderr, "Failure: lookup didn't return correct " 
    103                 "handle (%llu != %llu)\n", llu(test_ref.handle), 
    104                 llu(first_ref.handle)); 
     103                "handle (%s != %s)\n", PVFS_handle_to_str(test_ref.handle), 
     104                PVFS_handle_to_str(first_ref.handle)); 
    105105        return(-1); 
    106106    } 
     
    117117    { 
    118118        fprintf(stderr, "Failure: lookup didn't return correct " 
    119                 "handle (%llu != %llu)\n", llu(test_ref.handle), 
    120                 llu(second_ref.handle)); 
     119                "handle (%s != %s)\n", PVFS_handle_to_str(test_ref.handle), 
     120                PVFS_handle_to_str(second_ref.handle)); 
    121121        return(-1); 
    122122    } 
     
    134134    { 
    135135        fprintf(stderr, "Failure: lookup didn't return correct " 
    136                 "handle (%llu != %llu)\n", llu(test_ref.handle), 
    137                 llu(third_ref.handle)); 
     136                "handle (%s != %s)\n", PVFS_handle_to_str(test_ref.handle), 
     137                PVFS_handle_to_str(third_ref.handle)); 
    138138        return(-1); 
    139139    } 
     
    155155    { 
    156156        fprintf(stderr, "Failure: lookup didn't return correct " 
    157                 "handle (%llu != %llu)\n", llu(test_ref.handle), 
    158                 llu(first_ref.handle)); 
     157                "handle (%s != %s)\n", PVFS_handle_to_str(test_ref.handle), 
     158                PVFS_handle_to_str(first_ref.handle)); 
    159159        fprintf(stderr, "Failure: lookup didn't return correct handle.\n"); 
    160160        return(-1); 
  • branches/orange-next/test/correctness/pts/test-path-lookup.c

    r5338 r8994  
    1515#include "pvfs2-req-proto.h" 
    1616#include "pvfs2-internal.h" 
     17#include <pvfs2-handle-to-str.h> 
    1718 
    1819#define GENERATE_FILENAME(fname, max_len, f, i, r, slash) \ 
     
    6465 
    6566        root_refn = lookup_resp.ref; 
    66         fprintf(stderr,"Got Root Handle %llu on fs %d\n", 
    67                 llu(root_refn.handle), root_refn.fs_id); 
     67        fprintf(stderr,"Got Root Handle %s on fs %d\n", 
     68                PVFS_handle_to_str(root_refn.handle), root_refn.fs_id); 
    6869 
    6970        attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; 
     
    7475 
    7576        /* make the top-level base directory */ 
    76         fprintf(stderr," Creating base directory %s under %llu, %d\n", 
    77                 PATH_LOOKUP_BASE_DIR, llu(root_refn.handle), 
     77        fprintf(stderr," Creating base directory %s under %s, %d\n", 
     78                PATH_LOOKUP_BASE_DIR, PVFS_handle_to_str(root_refn.handle), 
    7879                root_refn.fs_id); 
    7980        ret = PVFS_sys_mkdir(PATH_LOOKUP_BASE_DIR, root_refn, 
     
    104105 
    105106            GENERATE_FILENAME(cur_filename, 64, format, i, rank, 0); 
    106             fprintf(stderr,"  Creating directory %s under %llu, %d\n", 
    107                     cur_filename, llu(parent_refn.handle), 
     107            fprintf(stderr,"  Creating directory %s under %s, %d\n", 
     108                    cur_filename, PVFS_handle_to_str(parent_refn.handle), 
    108109                    parent_refn.fs_id); 
    109110 
     
    116117                goto cleanup; 
    117118            } 
    118             fprintf(stderr, "Got handle %llu\n", 
    119                     llu(mkdir_resp.ref.handle)); 
     119            fprintf(stderr, "Got handle %s\n", 
     120                    PVFS_handle_to_str(mkdir_resp.ref.handle)); 
    120121 
    121122            /* grab refn of newly created directory */ 
     
    147148#if 0 
    148149            fprintf(stderr, 
    149                     " - Looking up relative path %s under %llu, %d\n", 
    150                     cur_filename, llu(parent_refn.handle), 
     150                    " - Looking up relative path %s under %s, %d\n", 
     151                    cur_filename, PVFS_handle_to_str(parent_refn.handle), 
    151152                    parent_refn.fs_id); 
    152153#endif 
     
    199200                fprintf(stderr,"! PVFS_sys_ref_lookup and " 
    200201                        "PVFS_sys_lookup returned different results\n" 
    201                         "\twhen they SHOULD BE THE SAME (%llu != %llu)!\n", 
    202                         llu(lookup_refns[i].handle), 
    203                         llu(lookup_resp.ref.handle)); 
     202                        "\twhen they SHOULD BE THE SAME (%s != %s)!\n", 
     203                        PVFS_handle_to_str(lookup_refns[i].handle), 
     204                        PVFS_handle_to_str(lookup_resp.ref.handle)); 
    204205                goto cleanup; 
    205206            } 
     
    227228        GENERATE_FILENAME(cur_filename, 64, format, i, rank, 0); 
    228229        fprintf(stderr, "Generating relative symlink %s " 
    229                 "in %llu,%d to point at %s\n", RELATIVE_SYMLINK_NAME, 
    230                 llu(parent_refn.handle), 
     230                "in %s,%d to point at %s\n", RELATIVE_SYMLINK_NAME, 
     231                PVFS_handle_to_str(parent_refn.handle), 
    231232                parent_refn.fs_id, cur_filename); 
    232233        ret = PVFS_sys_symlink( 
     
    238239            goto symlink_cleanup; 
    239240        } 
    240         fprintf(stderr, "Got handle %llu\n", llu(symlink_resp.ref.handle)); 
     241        fprintf(stderr, "Got handle %s\n", PVFS_handle_to_str(symlink_resp.ref.handle)); 
    241242 
    242243        /* stash the newly created relative symlink references created */ 
     
    244245 
    245246        fprintf(stderr, "Generating absolute symlink %s " 
    246                 "in %llu,%d to point at %s\n", ABSOLUTE_SYMLINK_NAME, 
    247                 llu(parent_refn.handle), 
     247                "in %s,%d to point at %s\n", ABSOLUTE_SYMLINK_NAME, 
     248                PVFS_handle_to_str(parent_refn.handle), 
    248249                parent_refn.fs_id, absolute_paths[i]); 
    249250        ret = PVFS_sys_symlink( 
     
    255256            goto symlink_cleanup; 
    256257        } 
    257         fprintf(stderr, "Got handle %llu\n", llu(symlink_resp.ref.handle)); 
     258        fprintf(stderr, "Got handle %s\n", PVFS_handle_to_str(symlink_resp.ref.handle)); 
    258259 
    259260        /* stash the newly created absolute symlink references created */ 
     
    292293                 rsymlink_refns[i].fs_id)) 
    293294            { 
    294                 fprintf(stderr,"\nSymlink %s resolved to %llu " 
    295                         "but should have resolved to %llu\n", tmp_buf, 
    296                         llu(lookup_resp.ref.handle), 
    297                         llu(rsymlink_refns[i].handle)); 
     295                fprintf(stderr,"\nSymlink %s resolved to %s " 
     296                        "but should have resolved to %s\n", tmp_buf, 
     297                        PVFS_handle_to_str(lookup_resp.ref.handle), 
     298                        PVFS_handle_to_str(rsymlink_refns[i].handle)); 
    298299                goto symlink_cleanup; 
    299300            } 
     
    319320                 lookup_refns[i].fs_id)) 
    320321            { 
    321                 fprintf(stderr,"\nSymlink %s resolved to %llu " 
    322                         "but should have resolved to %llu\n", tmp_buf, 
    323                         llu(lookup_resp.ref.handle), 
    324                         llu(lookup_refns[i].handle)); 
     322                fprintf(stderr,"\nSymlink %s resolved to %s " 
     323                        "but should have resolved to %s\n", tmp_buf, 
     324                        PVFS_handle_to_str(lookup_resp.ref.handle), 
     325                        PVFS_handle_to_str(lookup_refns[i].handle)); 
    325326                goto symlink_cleanup; 
    326327            } 
     
    353354                 asymlink_refns[i].fs_id)) 
    354355            { 
    355                 fprintf(stderr,"\nSymlink %s resolved to %llu " 
    356                         "but should have resolved to %llu\n", tmp_buf, 
    357                         llu(lookup_resp.ref.handle), 
    358                         llu(asymlink_refns[i].handle)); 
     356                fprintf(stderr,"\nSymlink %s resolved to %s " 
     357                        "but should have resolved to %s\n", tmp_buf, 
     358                        PVFS_handle_to_str(lookup_resp.ref.handle), 
     359                        PVFS_handle_to_str(asymlink_refns[i].handle)); 
    359360                goto symlink_cleanup; 
    360361            } 
     
    380381                 lookup_refns[i].fs_id)) 
    381382            { 
    382                 fprintf(stderr,"\nSymlink %s resolved to %llu " 
    383                         "but should have resolved to %llu\n", tmp_buf, 
    384                         llu(lookup_resp.ref.handle), 
    385                         llu(lookup_refns[i].handle)); 
     383                fprintf(stderr,"\nSymlink %s resolved to %s " 
     384                        "but should have resolved to %s\n", tmp_buf, 
     385                        PVFS_handle_to_str(lookup_resp.ref.handle), 
     386                        PVFS_handle_to_str(lookup_refns[i].handle)); 
    386387                goto symlink_cleanup; 
    387388            } 
     
    418419            } 
    419420            GENERATE_FILENAME(cur_filename, 64, format, i, rank, 0); 
    420             fprintf(stderr,"Removing path %s under %llu,%d \t\t... ", 
    421                     cur_filename, llu(parent_refn.handle), 
     421            fprintf(stderr,"Removing path %s under %s,%d \t\t... ", 
     422                    cur_filename, PVFS_handle_to_str(parent_refn.handle), 
    422423                    parent_refn.fs_id); 
    423424            ret = PVFS_sys_remove(cur_filename, parent_refn, &credentials); 
     
    430431            if (test_symlinks) 
    431432            { 
    432                 fprintf(stderr,"Removing rlink %s under %llu,%d \t\t... ", 
    433                         RELATIVE_SYMLINK_NAME, llu(parent_refn.handle), 
     433                fprintf(stderr,"Removing rlink %s under %s,%d \t\t... ", 
     434                        RELATIVE_SYMLINK_NAME, PVFS_handle_to_str(parent_refn.handle), 
    434435                        parent_refn.fs_id); 
    435436                ret = PVFS_sys_remove(RELATIVE_SYMLINK_NAME, 
     
    441442                } 
    442443 
    443                 fprintf(stderr,"Removing alink %s under %llu,%d \t\t... ", 
    444                         ABSOLUTE_SYMLINK_NAME, llu(parent_refn.handle), 
     444                fprintf(stderr,"Removing alink %s under %s,%d \t\t... ", 
     445                        ABSOLUTE_SYMLINK_NAME, PVFS_handle_to_str(parent_refn.handle), 
    445446                        parent_refn.fs_id); 
    446447                ret = PVFS_sys_remove(ABSOLUTE_SYMLINK_NAME, 
  • branches/orange-next/test/io/trove/trove-ls.c

    r8872 r8994  
    1414#include "trove-test.h" 
    1515#include "pvfs2-internal.h" 
     16#include <pvfs2-handle-to-str.h> 
    1617 
    1718char storage_space[SSPACE_SIZE] = "/tmp/trove-test-space"; 
     
    152153                TROVE_DEFAULT_TEST_TIMEOUT); 
    153154 
    154             printf("%s/%s (handle = %llu, uid = %d, gid = %d, perm = %o, type = %d)\n", 
     155            printf("%s/%s (handle = %s, uid = %d, gid = %d, perm = %o, type = %d)\n", 
    155156                   path_name, 
    156157                   (char *) key[i].buffer, 
    157                    llu(*(TROVE_handle *) val[i].buffer), 
     158                   PVFS_handle_to_str(*(TROVE_handle *) val[i].buffer), 
    158159                   (int) ds_attr.uid, 
    159160                   (int) ds_attr.gid, 
  • branches/orange-next/test/server/showconfig.c

    r7959 r8994  
    115115                "===========\n",fs->file_system_name); 
    116116        fprintf(stderr,"Collection ID         : %d\n",fs->coll_id); 
    117         fprintf(stderr,"Root Handle           : %llu\n", 
    118                 llu(fs->root_handle)); 
     117        fprintf(stderr,"Root Handle           : %s\n", 
     118                PVFS_handle_to_str(fs->root_handle)); 
    119119        fprintf(stderr,"Handle Recycle Timeout: %d seconds\n", 
    120120                (int)fs->handle_recycle_timeout_sec.tv_sec);