Changeset 8994
- Timestamp:
- 08/05/11 14:23:00 (22 months ago)
- Location:
- branches/orange-next
- Files:
-
- 37 modified
-
src/client/sysint/sys-setattr.sm (modified) (1 diff)
-
src/client/sysint/sys-small-io.sm (modified) (5 diffs)
-
src/client/sysint/sys-symlink.sm (modified) (3 diffs)
-
src/common/misc/fsck-utils.c (modified) (10 diffs)
-
src/common/misc/mkspace.c (modified) (5 diffs)
-
src/common/misc/mmap-ra-cache.c (modified) (2 diffs)
-
src/common/misc/msgpairarray.sm (modified) (1 diff)
-
src/io/trove/trove-dbpf/dbpf-bstream-direct.c (modified) (1 diff)
-
src/io/trove/trove-dbpf/dbpf-dspace.c (modified) (11 diffs)
-
src/io/trove/trove-dbpf/dbpf-keyval-pcache.c (modified) (5 diffs)
-
src/io/trove/trove-dbpf/dbpf-keyval.c (modified) (1 diff)
-
src/io/trove/trove-dbpf/dbpf-sync.c (modified) (5 diffs)
-
src/io/trove/trove-migrate.c (modified) (1 diff)
-
src/kernel/linux-2.6/acl.c (modified) (9 diffs)
-
src/kernel/linux-2.6/dcache.c (modified) (2 diffs)
-
src/kernel/linux-2.6/file.c (modified) (4 diffs)
-
src/kernel/linux-2.6/inode.c (modified) (4 diffs)
-
src/kernel/linux-2.6/namei.c (modified) (4 diffs)
-
src/kernel/linux-2.6/pvfs2-utils.c (modified) (24 diffs)
-
src/kernel/linux-2.6/super.c (modified) (14 diffs)
-
src/kernel/linux-2.6/symlink.c (modified) (2 diffs)
-
test/client/sysint/create-with-dist.c (modified) (1 diff)
-
test/client/sysint/create.c (modified) (1 diff)
-
test/client/sysint/create.set.get.eattr.c (modified) (1 diff)
-
test/client/sysint/dmkdir.c (modified) (3 diffs)
-
test/client/sysint/find.c (modified) (2 diffs)
-
test/client/sysint/get-info.c (modified) (1 diff)
-
test/client/sysint/io-test.c (modified) (1 diff)
-
test/client/sysint/lookup.c (modified) (1 diff)
-
test/client/sysint/mkdir.c (modified) (1 diff)
-
test/client/sysint/set-info.c (modified) (1 diff)
-
test/client/sysint/test-accesses.c (modified) (2 diffs)
-
test/client/sysint/test-pint-bucket.c (modified) (2 diffs)
-
test/client/sysint/test-pint-ncache.c (modified) (4 diffs)
-
test/correctness/pts/test-path-lookup.c (modified) (18 diffs)
-
test/io/trove/trove-ls.c (modified) (2 diffs)
-
test/server/showconfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/orange-next/src/client/sysint/sys-setattr.sm
r8935 r8994 136 136 } 137 137 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), 140 140 ref.fs_id); 141 141 -
branches/orange-next/src/client/sysint/sys-small-io.sm
r8935 r8994 123 123 124 124 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)); 126 126 127 127 if(sm_p->u.io.io_type == PVFS_IO_WRITE) … … 378 378 */ 379 379 380 gossip_debug(GOSSIP_IO_DEBUG,"handle=% llu\toperation=%d \toffset=%ld "380 gossip_debug(GOSSIP_IO_DEBUG,"handle=%s \toperation=%d \toffset=%ld " 381 381 "\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), 383 383 msg_p->req.u.small_io.io_type, 384 384 ((long int)msg_p->req.u.small_io.file_req_offset), … … 504 504 { 505 505 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)); 508 508 js_p->error_code = ret; 509 509 return SM_ACTION_COMPLETE; … … 546 546 { 547 547 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)); 550 550 js_p->error_code = ret; 551 551 return SM_ACTION_COMPLETE; … … 563 563 { 564 564 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)); 567 567 js_p->error_code = ret; 568 568 return SM_ACTION_COMPLETE; -
branches/orange-next/src/client/sysint/sys-symlink.sm
r8960 r8994 205 205 206 206 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), 209 209 parent_ref.fs_id, target); 210 210 … … 311 311 312 312 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)); 314 314 return 0; 315 315 } … … 553 553 554 554 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)); 556 556 557 557 ret = PINT_cached_config_map_to_server( -
branches/orange-next/src/common/misc/fsck-utils.c
r8960 r8994 354 354 if (PINT_handle_wrangler_remove_handle(handle, cur_fs)) 355 355 { 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)); 358 358 } 359 359 } … … 447 447 (&obj_ref->handle, &obj_ref->fs_id)) 448 448 { 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)); 451 451 } 452 452 } … … 567 567 (&obj_ref->handle, &obj_ref->fs_id)) 568 568 { 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)); 571 571 } 572 572 } … … 682 682 if (PINT_handle_wrangler_remove_handle(handle, cur_fs)) 683 683 { 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)); 686 686 } 687 687 } … … 762 762 (&obj_ref->handle, &obj_ref->fs_id)) 763 763 { 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)); 766 766 } 767 767 } … … 954 954 */ 955 955 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)); 957 957 958 958 if (getattr_resp->attr.mask & PVFS_ATTR_SYS_COMMON_ALL) … … 1435 1435 { 1436 1436 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)); 1439 1439 return(ret); 1440 1440 } … … 1451 1451 if(!found) 1452 1452 { 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)); 1455 1455 return(-PVFS_EINVAL); 1456 1456 } … … 1470 1470 if(!found) 1471 1471 { 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)); 1474 1474 return(-PVFS_EINVAL); 1475 1475 } … … 1570 1570 &attributes); 1571 1571 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]), 1574 1574 *cur_fs); 1575 1575 -
branches/orange-next/src/common/misc/mkspace.c
r8961 r8994 193 193 194 194 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)); 196 196 PVFS_handle_copy(s_used_handles[0], new_root_handle); 197 197 … … 262 262 263 263 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)); 265 265 PVFS_handle_copy(s_used_handles[1], root_dirdata_handle); 266 266 … … 315 315 316 316 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)); 318 318 PVFS_handle_copy(s_used_handles[2], lost_and_found_handle); 319 319 … … 365 365 mkspace_print( 366 366 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)); 368 368 PVFS_handle_copy(s_used_handles[3], lost_and_found_dirdata_handle); 369 369 … … 437 437 438 438 mkspace_print(verbose, "collection created:\n" 439 "\troot handle = % llu, coll id = %d, "439 "\troot handle = %s, coll id = %d, " 440 440 "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); 442 442 return 0; 443 443 } -
branches/orange-next/src/common/misc/mmap-ra-cache.c
r8979 r8994 91 91 92 92 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), 95 95 cache_elem->refn.fs_id, 96 96 llu(cache_elem->data_sz)); … … 196 196 197 197 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), 200 200 cache_elem->refn.fs_id, 201 201 llu(cache_elem->data_sz)); -
branches/orange-next/src/common/misc/msgpairarray.sm
r8959 r8994 850 850 851 851 gossip_debug(GOSSIP_MSGPAIR_DEBUG, 852 " mapped handle % lluto 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)); 854 854 } 855 855 } -
branches/orange-next/src/io/trove/trove-dbpf/dbpf-bstream-direct.c
r8934 r8994 865 865 { 866 866 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)); 868 868 869 869 dbpf_open_cache_put(&rw_op->open_ref); -
branches/orange-next/src/io/trove/trove-dbpf/dbpf-dspace.c
r8935 r8994 467 467 case 0: 468 468 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)); 470 470 break; 471 471 } … … 720 720 { 721 721 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 *) 724 724 op_p->u.d_iterate_handles.position_p)); 725 725 goto return_error; … … 746 746 { 747 747 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 *) 750 750 op_p->u.d_iterate_handles.position_p)); 751 751 goto return_error; … … 862 862 op_p->u.d_iterate_handles.handle_array[i-1]) == 0 )) 863 863 { 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)); 866 866 gossip_err("Warning: skipping entry.\n"); 867 867 i--; … … 906 906 *op_p->u.d_iterate_handles.count_p]) == 0 ) 907 907 { 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)); 910 910 gossip_err("Warning: skipping entry.\n"); 911 911 } … … 956 956 *op_p->u.d_iterate_handles.count_p]) == 0) ) 957 957 { 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)); 959 959 gossip_err("Warning: skipping entry.\n"); 960 960 (*op_p->u.d_iterate_handles.count_p)--; … … 1121 1121 gossip_debug( 1122 1122 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, " 1124 1124 "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, 1126 1126 (int)ds_attr_p->type, (int)ds_attr_p->dfile_count, 1127 1127 (int)ds_attr_p->dist_size); 1128 1128 #endif 1129 1129 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)); 1131 1131 if(ds_attr_p->type == PVFS_TYPE_METAFILE) 1132 1132 { … … 1225 1225 gossip_debug( 1226 1226 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, " 1228 1228 "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, 1230 1230 (int)ds_attr_p->type, (int)ds_attr_p->dfile_count, 1231 1231 (int)ds_attr_p->dist_size); … … 1233 1233 gossip_debug( 1234 1234 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, 1237 1237 (int)ds_attr_p[i].type); 1238 1238 if(ds_attr_p[i].type == PVFS_TYPE_METAFILE) … … 1449 1449 gossip_debug( 1450 1450 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); 1453 1453 if(attr->type == PVFS_TYPE_METAFILE) 1454 1454 { … … 2131 2131 if (ret == 0) 2132 2132 { 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)); 2135 2135 return(-TROVE_EEXIST); 2136 2136 } -
branches/orange-next/src/io/trove/trove-dbpf/dbpf-keyval-pcache.c
r8979 r8994 179 179 gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 180 180 "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)); 183 183 } 184 184 else … … 186 186 gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 187 187 "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)); 190 190 } 191 191 … … 200 200 gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 201 201 "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)); 204 204 205 205 return 0; … … 250 250 gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 251 251 "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)); 254 254 255 255 gen_mutex_unlock(&pcache->mutex); … … 261 261 gossip_debug(GOSSIP_DBPF_KEYVAL_DEBUG, 262 262 "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)); 265 265 266 266 return 0; -
branches/orange-next/src/io/trove/trove-dbpf/dbpf-keyval.c
r8979 r8994 1660 1660 /* not safe to print this if it may be a binary key */ 1661 1661 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); 1664 1664 #endif 1665 1665 -
branches/orange-next/src/io/trove/trove-dbpf/dbpf-sync.c
r8600 r8994 129 129 gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 130 130 "[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); 133 133 134 134 sync_context_type = dbpf_sync_get_object_sync_context(qop_p->op.type); … … 140 140 gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 141 141 "[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)); 144 144 dbpf_queued_op_complete(qop_p, OP_COMPLETED); 145 145 return 0; … … 225 225 226 226 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 " 228 228 "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); 230 230 231 231 if(qop_p->event_type == trove_dbpf_dspace_create_event_id) … … 261 261 262 262 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 " 264 264 "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); 266 266 267 267 dbpf_op_queue_remove(ready_op); … … 279 279 gossip_debug(GOSSIP_DBPF_COALESCE_DEBUG, 280 280 "[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", 282 282 sync_context_type, sync_context->coalesce_counter, 283 283 sync_context->sync_counter, 284 llu(qop_p->op.handle));284 PVFS_handle_to_str(qop_p->op.handle)); 285 285 286 286 dbpf_op_queue_add( -
branches/orange-next/src/io/trove/trove-migrate.c
r8959 r8994 562 562 ret = -1; 563 563 gossip_err("trove_dspace_getattr_list failure: \ 564 coll=%d context=%lld handle=% llustate=%d\n",564 coll=%d context=%lld handle=%s state=%d\n", 565 565 coll_id, lld(context_id), 566 llu(handles[i]), states[i]);566 PVFS_handle_to_str(handles[i]), states[i]); 567 567 goto complete; 568 568 } -
branches/orange-next/src/kernel/linux-2.6/acl.c
r8842 r8994 33 33 #include "bmi-byteswap.h" 34 34 #include <linux/fs_struct.h> 35 #include "../../common/misc/pvfs2-handle-to-str.h" 35 36 36 37 /* … … 228 229 return ERR_PTR(-ENOMEM); 229 230 } 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); 232 233 ret = pvfs2_inode_getxattr(inode, "", key, value, PVFS_MAX_XATTR_VALUELEN); 233 234 /* if the key exists, convert it to an in-memory rep */ … … 241 242 } 242 243 else { 243 gossip_err("inode % lluretrieving 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); 245 246 acl = ERR_PTR(ret); 246 247 } … … 321 322 } 322 323 } 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); 325 326 /* If we do have an access control list, then we need to encode that! */ 326 327 if (acl) … … 720 721 struct posix_acl *acl = NULL; 721 722 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))); 724 725 725 726 acl = pvfs2_get_acl(inode, ACL_TYPE_ACCESS); … … 736 737 posix_acl_release(acl); 737 738 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); 740 741 return error; 741 742 } … … 771 772 if (ret != 0) 772 773 { 773 gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission failed: inode: % llumask = %o"774 gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission failed: inode: %s mask = %o" 774 775 "mode = %o current->fsuid = %d " 775 776 "inode->i_uid = %d, inode->i_gid = %d " 776 777 "in_group_p = %d " 777 778 "(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, 779 780 inode->i_uid, inode->i_gid, 780 781 in_group_p(inode->i_gid), … … 788 789 } 789 790 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))); 792 793 } 793 794 return ret; … … 797 798 int error; 798 799 799 gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission: inode: % llumask = %o"800 gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_permission: inode: %s mask = %o" 800 801 "mode = %o current->fsuid = %d " 801 802 "inode->i_uid = %d, inode->i_gid = %d" 802 803 "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, 804 805 inode->i_uid, inode->i_gid, 805 806 in_group_p(inode->i_gid)); -
branches/orange-next/src/kernel/linux-2.6/dcache.c
r8842 r8994 13 13 #include "pvfs2-kernel.h" 14 14 #include "pvfs2-internal.h" 15 #include "../../common/misc/pvfs2-handle-to-str.h" 15 16 16 17 static void __attribute__ ((unused)) print_dentry(struct dentry *entry, int ret); … … 130 131 /* now perform getattr */ 131 132 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))); 134 135 ret = pvfs2_inode_getattr(inode, PVFS_ATTR_SYS_ALL_NOHINT); 135 136 gossip_debug(GOSSIP_DCACHE_DEBUG, -
branches/orange-next/src/kernel/linux-2.6/file.c
r8876 r8994 17 17 #include <linux/fs.h> 18 18 #include <linux/pagemap.h> 19 #include "../../common/misc/pvfs2-handle-to-str.h" 19 20 20 21 enum io_type { … … 72 73 int ret = -EINVAL; 73 74 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))); 76 77 77 78 inode->i_mapping->host = inode; … … 511 512 { 512 513 gossip_err( 513 "%s: error in %s handle % llu, "514 "%s: error in %s handle %s, " 514 515 "FILE: %s, returning %ld\n", 515 516 rw->fnstr, 516 517 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)), 518 519 (rw->file && rw->file->f_dentry && rw->file->f_dentry->d_name.name ? 519 520 (char *)rw->file->f_dentry->d_name.name : "UNKNOWN"), … … 1885 1886 { 1886 1887 gossip_err( 1887 "%s: error in %s handle % llu, "1888 "%s: error in %s handle %s, " 1888 1889 "FILE: %s\n -- returning %ld\n", 1889 1890 rw->fnstr, 1890 1891 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)), 1892 1893 (rw->file && rw->file->f_dentry && rw->file->f_dentry->d_name.name ? 1893 1894 (char *) rw->file->f_dentry->d_name.name : "UNKNOWN"), -
branches/orange-next/src/kernel/linux-2.6/inode.c
r8872 r8994 15 15 #include "pvfs2-types.h" 16 16 #include "pvfs2-internal.h" 17 #include "../../common/misc/pvfs2-handle-to-str.h" 17 18 18 19 static int read_one_page(struct page *page) … … 170 171 if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) 171 172 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); 174 175 175 176 /* successful truncate when size changes also requires mtime updates … … 517 518 #endif 518 519 } 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); 521 522 return inode; 522 523 } … … 637 638 } 638 639 #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))); 641 642 /* Initialize the ACLs of the new inode */ 642 643 pvfs2_init_acl(inode, dir); -
branches/orange-next/src/kernel/linux-2.6/namei.c
r8842 r8994 13 13 #include "pvfs2-kernel.h" 14 14 #include "pvfs2-internal.h" 15 #include "../../common/misc/pvfs2-handle-to-str.h" 15 16 16 17 /** Get a newly allocated inode to go with a negative dentry. … … 113 114 && parent->refn.fs_id != PVFS_FS_ID_NULL) 114 115 { 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)); 117 118 new_op->upcall.req.lookup.parent_refn = parent->refn; 118 119 } … … 146 147 dentry->d_name.name, PVFS2_NAME_LEN); 147 148 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 " 149 150 "(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), 151 152 new_op->upcall.req.lookup.parent_refn.fs_id, 152 153 ((new_op->upcall.req.lookup.sym_follow == … … 157 158 get_interruptible_flag(dir)); 158 159 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), 161 162 new_op->downcall.resp.lookup.refn.fs_id, ret); 162 163 -
branches/orange-next/src/kernel/linux-2.6/pvfs2-utils.c
r8932 r8994 11 11 #include "pvfs2-bufmap.h" 12 12 #include "pvfs2-internal.h" 13 #include "../../common/misc/pvfs2-handle-to-str.h" 13 14 14 15 int pvfs2_gen_credentials( … … 266 267 /* special case: mark the root inode as sticky */ 267 268 inode->i_mode |= S_ISVTX; 268 gossip_debug(GOSSIP_UTILS_DEBUG, "Marking inode % lluas 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))); 270 271 } 271 272 … … 436 437 pvfs2_inode_t *pvfs2_inode = NULL; 437 438 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))); 440 441 441 442 if (inode) … … 529 530 530 531 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) " 532 533 "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, 534 535 (int)atomic_read(&inode->i_count), ret); 535 536 /* store error code in the inode so that we can retrieve it later if … … 663 664 } 664 665 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); 667 668 if (wbattr.ia_valid == 0) 668 669 { … … 671 672 } 672 673 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); 675 676 676 677 ret = pvfs2_inode_setattr(inode, &wbattr); … … 779 780 #endif 780 781 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); 783 784 pvfs2_inode = PVFS2_I(inode); 784 785 /* obtain the xattr semaphore */ … … 849 850 new_length); 850 851 ret = new_length; 851 gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode % llukey %s "852 gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode %s key %s " 852 853 " key_sz %d, val_length %d\n", 853 llu(get_handle_from_ino(inode)),854 PVFS_handle_to_str(get_handle_from_ino(inode)), 854 855 (char*)new_op->upcall.req.getxattr.key, 855 856 (int) new_op->upcall.req.getxattr.key_sz, (int) ret); … … 860 861 { 861 862 ret = -ENODATA; /* if no such keys exists we set this to be errno */ 862 gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode % llukey %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); 864 865 } 865 866 … … 922 923 if (inode) 923 924 { 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); 926 927 if (IS_RDONLY(inode)) 927 928 { … … 1231 1232 get_interruptible_flag(dir)); 1232 1233 1233 gossip_debug(GOSSIP_UTILS_DEBUG, "Create Got PVFS2 handle % lluon 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), 1235 1236 new_op->downcall.resp.create.refn.fs_id, ret); 1236 1237 … … 1247 1248 } 1248 1249 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))); 1251 1252 /* finally, add dentry with this new inode to the dcache */ 1252 1253 gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_create_file: Instantiating\n *negative* " … … 1256 1257 dentry->d_op = &pvfs2_dentry_operations; 1257 1258 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); 1260 1261 } 1261 1262 else … … 1318 1319 get_interruptible_flag(dir)); 1319 1320 1320 gossip_debug(GOSSIP_UTILS_DEBUG, "Mkdir Got PVFS2 handle % lluon 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), 1322 1323 new_op->downcall.resp.mkdir.refn.fs_id); 1323 1324 … … 1334 1335 } 1335 1336 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))); 1338 1339 /* finally, add dentry with this new inode to the dcache */ 1339 1340 gossip_debug(GOSSIP_UTILS_DEBUG, "pvfs2_create_dir: Instantiating\n *negative* " … … 1343 1344 dentry->d_op = &pvfs2_dentry_operations; 1344 1345 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); 1347 1348 } 1348 1349 else … … 1413 1414 get_interruptible_flag(dir)); 1414 1415 1415 gossip_debug(GOSSIP_UTILS_DEBUG, "Symlink Got PVFS2 handle % lluon 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), 1417 1418 new_op->downcall.resp.sym.refn.fs_id, ret); 1418 1419 … … 1429 1430 } 1430 1431 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))); 1433 1434 1434 1435 /* finally, add dentry with this new inode to the dcache */ … … 1439 1440 dentry->d_op = &pvfs2_dentry_operations; 1440 1441 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); 1443 1444 } 1444 1445 else … … 1516 1517 if (inode && parent && dentry) 1517 1518 { 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), 1521 1522 parent->refn.fs_id); 1522 1523 … … 1564 1565 pvfs2_kernel_op_t *new_op = NULL; 1565 1566 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), 1569 1570 pvfs2_inode->refn.fs_id, (unsigned long)size); 1570 1571 … … 1749 1750 ref.handle = opaque_handle.handle; 1750 1751 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)); 1753 1754 /* 1754 1755 * NOTE: Locate the inode number in the icache if possible. … … 1913 1914 pvfs2_kernel_op_t *new_op = NULL; 1914 1915 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); 1918 1919 1919 1920 new_op = op_alloc(PVFS2_VFS_OP_MMAP_RA_FLUSH); … … 2050 2051 associated with the root handle in any case 2051 2052 */ 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))); 2053 2054 } 2054 2055 else 2055 2056 { 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))); 2057 2058 make_bad_inode(inode); 2058 2059 } -
branches/orange-next/src/kernel/linux-2.6/super.c
r8317 r8994 8 8 #include "pvfs2-bufmap.h" 9 9 #include "pvfs2-internal.h" 10 #include "../../common/misc/pvfs2-handle-to-str.h" 10 11 11 12 /* list for storing pvfs2 specific superblocks in use */ … … 219 220 if (pvfs2_inode) 220 221 { 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))); 223 224 224 225 atomic_inc(&(PVFS2_SB(inode->i_sb)->pvfs2_inode_dealloc_count)); … … 233 234 pvfs2_inode_t *pvfs2_inode = PVFS2_I(inode); 234 235 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)); 237 238 238 239 /* … … 255 256 { 256 257 /* 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)); 259 260 pvfs2_make_bad_inode(inode); 260 261 } … … 299 300 if (pvfs2_inode_getattr(inode, PVFS_ATTR_SYS_ALL_NOHINT) != 0) 300 301 { 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)); 303 304 pvfs2_make_bad_inode(inode); 304 305 } 305 306 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)), 308 309 (int)atomic_read(&inode->i_count)); 309 310 } … … 312 313 { 313 314 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)); 316 317 pvfs2_make_bad_inode(inode); 317 318 } … … 322 323 pvfs2_inode_t *pvfs2_inode = PVFS2_I(inode); 323 324 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))); 326 327 327 328 pvfs2_inode_finalize(pvfs2_inode); … … 338 339 { 339 340 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), 342 343 (int)inode->i_nlink); 343 344 … … 895 896 { 896 897 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))); 898 899 SetAtimeFlag(pvfs2_inode); 899 900 } … … 1031 1032 root_object.fs_id = PVFS2_SB(sb)->fs_id; 1032 1033 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); 1035 1036 /* alloc and initialize our root directory inode by explicitly requesting 1036 1037 * the sticky bit to be set */ … … 1110 1111 refn.handle |= (u32) fid->raw[1]; 1111 1112 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); 1114 1115 1115 1116 inode = pvfs2_iget(sb, &refn); … … 1164 1165 handle = PVFS2_I(inode)->refn; 1165 1166 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); 1168 1169 1169 1170 len = 3; … … 1187 1188 len = 6; 1188 1189 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); 1191 1192 } 1192 1193 *max_len = len; … … 1264 1265 root_object.handle = PVFS2_SB(sb)->root_handle; 1265 1266 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); 1268 1269 /* alloc and initialize our root directory inode. be explicit about sticky 1269 1270 * bit */ -
branches/orange-next/src/kernel/linux-2.6/symlink.c
r5726 r8994 8 8 #include "pvfs2-bufmap.h" 9 9 #include "pvfs2-internal.h" 10 #include "../../common/misc/pvfs2-handle-to-str.h" 10 11 11 12 static int pvfs2_readlink( … … 14 15 pvfs2_inode_t *pvfs2_inode = PVFS2_I(dentry->d_inode); 15 16 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))); 18 19 19 20 /* -
branches/orange-next/test/client/sysint/create-with-dist.c
r7500 r8994 82 82 parent_refn.fs_id = cur_fs; 83 83 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)); 86 86 87 87 /* Lookup the distribution to use */ -
branches/orange-next/test/client/sysint/create.c
r7500 r8994 79 79 parent_refn.fs_id = cur_fs; 80 80 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)); 83 83 84 84 ret = PVFS_sys_create(entry_name, parent_refn, attr, -
branches/orange-next/test/client/sysint/create.set.get.eattr.c
r7500 r8994 86 86 parent_refn.fs_id = cur_fs; 87 87 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)); 90 90 91 91 ret = PVFS_sys_create(entry_name, parent_refn, attr, -
branches/orange-next/test/client/sysint/dmkdir.c
r7471 r8994 95 95 // print the handle 96 96 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)); 98 98 printf("FSID:%d\n",parent_refn.fs_id); 99 99 … … 107 107 // print the handle 108 108 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)); 110 110 printf("FSID:%d\n",parent_refn.fs_id); 111 111 … … 119 119 // print the handle 120 120 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)); 122 122 printf("FSID:%d\n",parent_refn.fs_id); 123 123 -
branches/orange-next/test/client/sysint/find.c
r7500 r8994 13 13 #include "pvfs2-util.h" 14 14 #include "pvfs2-internal.h" 15 #include <pvfs2-handle-to-str.h> 15 16 16 17 /* TODO: this can be larger after system interface readdir logic … … 139 140 cur_handle = rd_response.dirent_array[i].handle; 140 141 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)); 143 144 144 145 is_dir = is_directory(cur_handle, -
branches/orange-next/test/client/sysint/get-info.c
r7471 r8994 85 85 r_ctime = (time_t)resp_gattr->attr.ctime; 86 86 87 printf("Handle : % llu\n", llu(pinode_refn.handle));87 printf("Handle : %s\n", PVFS_handle_to_str(pinode_refn.handle)); 88 88 printf("FSID : %d\n", (int)pinode_refn.fs_id); 89 89 printf("mask : %d\n", resp_gattr->attr.mask); -
branches/orange-next/test/client/sysint/io-test.c
r8871 r8994 235 235 for (i = 0; i < resp_getattr.attr.dfile_count; i++) 236 236 { 237 printf("% llu\n", llu(dfile_array[i]));237 printf("%s\n", PVFS_handle_to_str(dfile_array[i])); 238 238 } 239 239 -
branches/orange-next/test/client/sysint/lookup.c
r7471 r8994 72 72 } 73 73 74 printf("Handle : % llu\n", llu(resp_lk.ref.handle));74 printf("Handle : %s\n", PVFS_handle_to_str(resp_lk.ref.handle)); 75 75 printf("FS ID : %d\n", resp_lk.ref.fs_id); 76 76 -
branches/orange-next/test/client/sysint/mkdir.c
r7471 r8994 89 89 // print the handle 90 90 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)); 92 92 printf("FSID:%d\n",parent_refn.fs_id); 93 93 -
branches/orange-next/test/client/sysint/set-info.c
r7471 r8994 79 79 80 80 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)); 82 82 printf("FSID : %d\n", (int)pinode_refn.fs_id); 83 83 printf("mask : %d\n", resp_getattr.attr.mask); -
branches/orange-next/test/client/sysint/test-accesses.c
r7500 r8994 7 7 #include "pvfs2.h" 8 8 #include "pvfs2-sysint.h" 9 #include <pvfs2-handle-to-str.h> 9 10 10 11 #if PVFS2_SIZEOF_VOIDP == 32 … … 118 119 if(ret < 0) goto error; 119 120 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); 122 123 123 124 ret = PVFS_sys_io( -
branches/orange-next/test/client/sysint/test-pint-bucket.c
r7471 r8994 164 164 for(n = 0; n < meta_handle_extent_array.extent_count; n++) 165 165 { 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)); 169 169 } 170 170 } … … 189 189 for(n = 0; n < data_handle_extent_array[j].extent_count; n++) 190 190 { 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)); 194 194 /* get some contrived test handles */ 195 195 if (test_handle_index < NUM_TEST_HANDLES) -
branches/orange-next/test/client/sysint/test-pint-ncache.c
r5463 r8994 101 101 { 102 102 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)); 105 105 return(-1); 106 106 } … … 117 117 { 118 118 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)); 121 121 return(-1); 122 122 } … … 134 134 { 135 135 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)); 138 138 return(-1); 139 139 } … … 155 155 { 156 156 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)); 159 159 fprintf(stderr, "Failure: lookup didn't return correct handle.\n"); 160 160 return(-1); -
branches/orange-next/test/correctness/pts/test-path-lookup.c
r5338 r8994 15 15 #include "pvfs2-req-proto.h" 16 16 #include "pvfs2-internal.h" 17 #include <pvfs2-handle-to-str.h> 17 18 18 19 #define GENERATE_FILENAME(fname, max_len, f, i, r, slash) \ … … 64 65 65 66 root_refn = lookup_resp.ref; 66 fprintf(stderr,"Got Root Handle % lluon 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); 68 69 69 70 attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; … … 74 75 75 76 /* 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), 78 79 root_refn.fs_id); 79 80 ret = PVFS_sys_mkdir(PATH_LOOKUP_BASE_DIR, root_refn, … … 104 105 105 106 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), 108 109 parent_refn.fs_id); 109 110 … … 116 117 goto cleanup; 117 118 } 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)); 120 121 121 122 /* grab refn of newly created directory */ … … 147 148 #if 0 148 149 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), 151 152 parent_refn.fs_id); 152 153 #endif … … 199 200 fprintf(stderr,"! PVFS_sys_ref_lookup and " 200 201 "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)); 204 205 goto cleanup; 205 206 } … … 227 228 GENERATE_FILENAME(cur_filename, 64, format, i, rank, 0); 228 229 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), 231 232 parent_refn.fs_id, cur_filename); 232 233 ret = PVFS_sys_symlink( … … 238 239 goto symlink_cleanup; 239 240 } 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)); 241 242 242 243 /* stash the newly created relative symlink references created */ … … 244 245 245 246 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), 248 249 parent_refn.fs_id, absolute_paths[i]); 249 250 ret = PVFS_sys_symlink( … … 255 256 goto symlink_cleanup; 256 257 } 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)); 258 259 259 260 /* stash the newly created absolute symlink references created */ … … 292 293 rsymlink_refns[i].fs_id)) 293 294 { 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)); 298 299 goto symlink_cleanup; 299 300 } … … 319 320 lookup_refns[i].fs_id)) 320 321 { 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)); 325 326 goto symlink_cleanup; 326 327 } … … 353 354 asymlink_refns[i].fs_id)) 354 355 { 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)); 359 360 goto symlink_cleanup; 360 361 } … … 380 381 lookup_refns[i].fs_id)) 381 382 { 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)); 386 387 goto symlink_cleanup; 387 388 } … … 418 419 } 419 420 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), 422 423 parent_refn.fs_id); 423 424 ret = PVFS_sys_remove(cur_filename, parent_refn, &credentials); … … 430 431 if (test_symlinks) 431 432 { 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), 434 435 parent_refn.fs_id); 435 436 ret = PVFS_sys_remove(RELATIVE_SYMLINK_NAME, … … 441 442 } 442 443 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), 445 446 parent_refn.fs_id); 446 447 ret = PVFS_sys_remove(ABSOLUTE_SYMLINK_NAME, -
branches/orange-next/test/io/trove/trove-ls.c
r8872 r8994 14 14 #include "trove-test.h" 15 15 #include "pvfs2-internal.h" 16 #include <pvfs2-handle-to-str.h> 16 17 17 18 char storage_space[SSPACE_SIZE] = "/tmp/trove-test-space"; … … 152 153 TROVE_DEFAULT_TEST_TIMEOUT); 153 154 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", 155 156 path_name, 156 157 (char *) key[i].buffer, 157 llu(*(TROVE_handle *) val[i].buffer),158 PVFS_handle_to_str(*(TROVE_handle *) val[i].buffer), 158 159 (int) ds_attr.uid, 159 160 (int) ds_attr.gid, -
branches/orange-next/test/server/showconfig.c
r7959 r8994 115 115 "===========\n",fs->file_system_name); 116 116 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)); 119 119 fprintf(stderr,"Handle Recycle Timeout: %d seconds\n", 120 120 (int)fs->handle_recycle_timeout_sec.tv_sec);
