Changeset 8943
- Timestamp:
- 07/13/11 09:43:02 (2 years ago)
- Location:
- branches/orange-next/src/apps/admin
- Files:
-
- 16 modified
-
pvfs2-chmod.c (modified) (1 diff)
-
pvfs2-chown.c (modified) (1 diff)
-
pvfs2-cp.c (modified) (1 diff)
-
pvfs2-fs-dump.c (modified) (14 diffs)
-
pvfs2-fsck.c (modified) (23 diffs)
-
pvfs2-ls.c (modified) (5 diffs)
-
pvfs2-migrate-collection.c (modified) (6 diffs)
-
pvfs2-mkdir.c (modified) (1 diff)
-
pvfs2-mkspace.c (modified) (3 diffs)
-
pvfs2-ping.c (modified) (1 diff)
-
pvfs2-remove-object.c (modified) (3 diffs)
-
pvfs2-showcoll.c (modified) (4 diffs)
-
pvfs2-stat.c (modified) (1 diff)
-
pvfs2-validate.c (modified) (1 diff)
-
pvfs2-viewdist.c (modified) (2 diffs)
-
pvfs2-xattr.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/orange-next/src/apps/admin/pvfs2-chmod.c
r7471 r8943 115 115 return -1; 116 116 } 117 parent_ref.handle = resp_lookup.ref.handle;117 PVFS_handle_copy(parent_ref.handle, resp_lookup.ref.handle); 118 118 parent_ref.fs_id = resp_lookup.ref.fs_id; 119 119 } -
branches/orange-next/src/apps/admin/pvfs2-chown.c
r7471 r8943 121 121 return -1; 122 122 } 123 parent_ref.handle = resp_lookup.ref.handle;123 PVFS_handle_copy(parent_ref.handle, resp_lookup.ref.handle); 124 124 parent_ref.fs_id = resp_lookup.ref.fs_id; 125 125 } -
branches/orange-next/src/apps/admin/pvfs2-cp.c
r8875 r8943 498 498 return (-1); 499 499 } 500 parent_ref.handle = resp_lookup.ref.handle;500 PVFS_handle_copy(parent_ref.handle, resp_lookup.ref.handle); 501 501 parent_ref.fs_id = resp_lookup.ref.fs_id; 502 502 -
branches/orange-next/src/apps/admin/pvfs2-fs-dump.c
r8932 r8943 247 247 unsigned long *handle_count_array; 248 248 unsigned long *total_count_array; 249 PVFS_ds_position *position_array; 249 PVFS_ds_position *ds_position_array; 250 PVFS_kv_position *kv_position_array; 251 unsigned int *position_flag_array; 250 252 struct PVFS_mgmt_server_stat *stat_array; 251 253 struct PVFS_mgmt_setparam_value param_value; … … 314 316 return -1; 315 317 } 316 position_array = (PVFS_ds_position *) calloc(server_count, sizeof(PVFS_ds_position)); 317 if (position_array == NULL) 318 ds_position_array = 319 (PVFS_ds_position *) calloc(server_count, sizeof(PVFS_ds_position)); 320 if (ds_position_array == NULL) 318 321 { 319 322 perror("malloc"); 320 323 return -1; 321 324 } 325 kv_position_array = 326 (PVFS_kv_position *) calloc(server_count, sizeof(PVFS_kv_position)); 327 if (kv_position_array == NULL) 328 { 329 perror("malloc"); 330 return -1; 331 } 332 333 position_flag_array = (unsigned int *) calloc(server_count, 334 sizeof(unsigned int)); 335 322 336 /* total_count_array */ 323 337 total_count_array = (unsigned long *) calloc(server_count, sizeof(unsigned long)); … … 347 361 { 348 362 hcount_array[i] = HANDLE_BATCH; 349 /* FIX: position stuff changed to use small int and flag */ 350 position_array[i] = PVFS_ITERATE_START; 363 position_flag_array[i] = PVFS_ITERATE_START; 351 364 } 352 365 … … 358 371 handle_matrix, 359 372 hcount_array, 360 position_array, 373 ds_position_array, 374 kv_position_array, 375 position_flag_array, 361 376 addr_array, 362 377 server_count, … … 406 421 { 407 422 /* FIX: position stuff changed to use small int and flag */ 408 if (position_ array[i] != PVFS_ITERATE_END)423 if (position_flag_array[i] != PVFS_ITERATE_END) 409 424 { 410 425 more_flag = 1; … … 430 445 free(hcount_array); 431 446 free(total_count_array); 432 free(position_array); 447 free(ds_position_array); 448 free(kv_position_array); 449 free(position_flag_array); 433 450 434 451 handlelist_finished_adding_handles(); … … 493 510 { 494 511 int i, count, ret; 495 PVFS_ds_position token; 512 PVFS_kv_position token; 513 unsigned int token_flag; 496 514 PVFS_sysresp_readdir readdir_resp; 497 515 PVFS_sysresp_getattr getattr_resp; … … 500 518 count = 64; 501 519 502 token = 0;520 token_flag = PVFS_READDIR_START; 503 521 do { 504 522 memset(&readdir_resp, 0, sizeof(PVFS_sysresp_readdir)); 505 ret = PVFS_sys_readdir(pref, 506 (!token ? PVFS_READDIR_START : token), 523 ret = PVFS_sys_readdir(pref, token, &token_flag, 507 524 count, 508 525 creds, … … 515 532 PVFS_handle cur_handle; 516 533 517 cur_handle = readdir_resp.dirent_array[i].handle;534 PVFS_handle_copy(cur_handle, readdir_resp.dirent_array[i].handle); 518 535 cur_file = readdir_resp.dirent_array[i].d_name; 519 536 520 entry_ref.handle = cur_handle;537 PVFS_handle_copy(entry_ref.handle, cur_handle); 521 538 entry_ref.fs_id = cur_fs; 522 539 … … 566 583 handlelist_remove_handle(cur_handle, server_idx); 567 584 } 568 token = readdir_resp.token;585 memcpy(&token, &readdir_resp.token, sizeof(PVFS_kv_position)); 569 586 if (readdir_resp.pvfs_dirent_outcount) 570 587 { … … 651 668 char* fmt_string; 652 669 653 entry_ref.handle = handle;670 PVFS_handle_copy(entry_ref.handle, handle); 654 671 entry_ref.fs_id = cur_fs; 655 672 /* only remaining handles are dirdata */ … … 745 762 746 763 for (i = 0; i < handle_count; i++) { 747 handlelist_list[server_idx][start_off + i] = handles[i]; 764 PVFS_handle_copy(handlelist_list[server_idx][start_off + i], 765 handles[i]); 748 766 } 749 767 … … 796 814 { 797 815 /* move last entry to this position before decrement */ 798 handlelist_list[server_idx][i] =799 handlelist_list[server_idx][handlelist_used[server_idx]-1] ;816 PVFS_handle_copy(handlelist_list[server_idx][i], 817 handlelist_list[server_idx][handlelist_used[server_idx]-1]); 800 818 801 819 } … … 821 839 { 822 840 if (handlelist_used[i] > 0) { 823 *handle_p = handlelist_list[i][handlelist_used[i]-1]; 841 PVFS_handle_copy(*handle_p, 842 handlelist_list[i][handlelist_used[i]-1]); 824 843 handlelist_used[i]--; 825 844 *server_idx_p = i; -
branches/orange-next/src/apps/admin/pvfs2-fsck.c
r8932 r8943 254 254 unsigned long *handle_count_array; 255 255 unsigned long *total_count_array; 256 PVFS_ds_position *position_array; 256 PVFS_ds_position *ds_position_array; 257 PVFS_kv_position *kv_position_array; 258 unsigned int *position_flag_array; 257 259 struct PVFS_mgmt_server_stat *stat_array; 258 260 struct handlelist *hl; 259 261 struct PVFS_mgmt_setparam_value param_value; 260 262 263 /* FIX: need error handling to clean up memory if malloc failure later */ 261 264 /* find out how many handles are in use on each */ 262 265 stat_array = (struct PVFS_mgmt_server_stat *) … … 323 326 return NULL; 324 327 } 325 position_array = (PVFS_ds_position *) calloc(server_count, sizeof(PVFS_ds_position)); 326 if (position_array == NULL) 328 ds_position_array = (PVFS_ds_position *) calloc(server_count, 329 sizeof(PVFS_ds_position)); 330 if (ds_position_array == NULL) 327 331 { 328 332 perror("malloc"); 329 333 return NULL; 334 } 335 336 kv_position_array = (PVFS_kv_position *) calloc(server_count, 337 sizeof(PVFS_kv_position)); 338 if (kv_position_array == NULL) 339 { 340 perror("malloc"); 341 return NULL; 342 } 343 344 position_flag_array = (unsigned int *) calloc(server_count, 345 sizeof(unsigned int)); 346 if( position_flag_array == NULL ) 347 { 348 perror("malloc"); 349 return NULL; 330 350 } 331 351 /* total_count_array */ … … 357 377 hcount_array[i] = HANDLE_BATCH; 358 378 /* FIX: position stuff changed to use small int and flag */ 359 position_ array[i] = PVFS_ITERATE_START;379 position_flag_array[i] = PVFS_ITERATE_START; 360 380 } 361 381 … … 368 388 handle_matrix, 369 389 hcount_array, 370 position_array, 390 ds_position_array, 391 kv_position_array, 392 position_flag_array, 371 393 addr_array, 372 394 server_count, … … 399 421 * within valid ranges for the given server here. 400 422 */ 401 ret = PINT_cached_config_map_to_server(&tmp_addr, handle_matrix[i][j], cur_fs); 423 ret = PINT_cached_config_map_to_server(&tmp_addr, 424 handle_matrix[i][j], cur_fs); 402 425 if (ret || tmp_addr != addr_array[i]) 403 426 { 404 fprintf(stderr, "Ugh! handle does not seem to be owned by the server!\n"); 427 fprintf(stderr, "Ugh! handle does not seem to be owned " 428 "by the server!\n"); 405 429 return NULL; 406 430 } … … 417 441 for (i=0; i < server_count; i++) 418 442 { 419 /* FIX: position stuff changed to use small int and flag */ 420 if (position_array[i] != PVFS_ITERATE_END) 443 if (position_flag_array[i] != PVFS_ITERATE_END) 421 444 { 422 445 more_flag = 1; … … 431 454 if (total_count_array[i] != used_handles) 432 455 { 433 fprintf(stderr, "Ugh! Server %d, Received %ld total handles instead of %ld\n",434 i, total_count_array[i], used_handles);456 fprintf(stderr, "Ugh! Server %d, Received %ld total handles " 457 "instead of %ld\n", i, total_count_array[i], used_handles); 435 458 return NULL; 436 459 } … … 443 466 { 444 467 hcount_array[i] = HANDLE_BATCH; 445 /* FIX: position stuff changed to use small int and flag */ 446 position_array[i] = PVFS_ITERATE_START; 468 position_flag_array[i] = PVFS_ITERATE_START; 447 469 } 448 470 … … 454 476 handle_matrix, 455 477 hcount_array, 456 position_array, 478 ds_position_array, 479 kv_position_array, 480 position_flag_array, 457 481 addr_array, 458 482 server_count, … … 497 521 for (i=0; i < server_count; i++) 498 522 { 499 /* FIX: position stuff changed to use small int and flag */ 500 if (position_array[i] != PVFS_ITERATE_END) 523 if (position_flag_array[i] != PVFS_ITERATE_END) 501 524 { 502 525 more_flag = 1; … … 515 538 free(hcount_array); 516 539 free(total_count_array); 517 free(position_array); 540 free(ds_position_array); 541 free(kv_position_array); 542 free(position_flag_array); 518 543 519 544 free(stat_array); … … 611 636 { 612 637 int i, count; 613 PVFS_ds_position token; 638 PVFS_kv_position token; 639 unsigned int token_flag; 614 640 PVFS_sysresp_readdir readdir_resp; 615 641 PVFS_sysresp_getattr getattr_resp; 616 PVFS_object_ref entry_ref = {0, 0}; 642 PVFS_object_ref entry_ref; 643 644 entry_ref.fs_id = PVFS_FS_ID_NULL; 645 PVFS_handle_clear(entry_ref.handle); 646 memset(&token, 0, sizeof(PVFS_kv_position)); 617 647 618 648 count = 64; 619 620 token = 0; 649 token_flag = PVFS_READDIR_START; 621 650 do { 622 651 memset(&readdir_resp, 0, sizeof(PVFS_sysresp_readdir)); 623 PVFS_sys_readdir(dir_ref, 624 (!token ? PVFS_READDIR_START : token), 652 PVFS_sys_readdir(dir_ref, token, &token_flag, 625 653 count, 626 654 creds, … … 633 661 PVFS_handle cur_handle; 634 662 635 cur_handle = readdir_resp.dirent_array[i].handle;663 PVFS_handle_copy(cur_handle, readdir_resp.dirent_array[i].handle); 636 664 cur_file = readdir_resp.dirent_array[i].d_name; 637 665 638 entry_ref.handle = cur_handle;666 PVFS_handle_copy(entry_ref.handle, cur_handle); 639 667 entry_ref.fs_id = cur_fs; 640 668 … … 832 860 * handle and dirent removed. 833 861 */ 834 df_handles[i] = PVFS_HANDLE_NULL;862 PVFS_handle_clear(df_handles[i]); 835 863 error++; 836 864 } … … 840 868 for (i = 0; i < df_count; i++) 841 869 { 842 if ( df_handles[i] != PVFS_HANDLE_NULL) {870 if (PVFS_handle_is_null(df_handles[i])) { 843 871 /* TODO: THIS IS A HACK; NEED BETTER WAY TO REMOVE FROM 844 872 * ONE OF TWO LISTS... … … 888 916 PVFS_sysresp_getattr getattr_resp; 889 917 890 handle_ref.handle = handle;918 PVFS_handle_copy(handle_ref.handle, handle); 891 919 handle_ref.fs_id = cur_fs; 892 920 … … 969 997 PVFS_sysresp_getattr getattr_resp; 970 998 971 handle_ref.handle = handle;999 PVFS_handle_copy(handle_ref.handle, handle); 972 1000 handle_ref.fs_id = cur_fs; 973 1001 … … 1080 1108 PVFS_sysresp_getattr getattr_resp; 1081 1109 1082 handle_ref.handle = handle;1110 PVFS_handle_copy(handle_ref.handle, handle); 1083 1111 handle_ref.fs_id = cur_fs; 1084 1112 … … 1331 1359 1332 1360 for (i = 0; i < handle_count; i++) { 1333 hl->list_array[server_idx][start_off + i] = handles[i]; 1361 PVFS_handle_copy(hl->list_array[server_idx][start_off + i], 1362 handles[i]); 1334 1363 } 1335 1364 … … 1353 1382 } 1354 1383 1355 hl->list_array[server_idx][start_off] = handle;1384 PVFS_handle_copy(hl->list_array[server_idx][start_off], handle); 1356 1385 hl->used_array[server_idx]++; 1357 1386 } … … 1421 1450 { 1422 1451 /* move last entry to this position before decrement */ 1423 hl->list_array[server_idx][i] = 1424 hl->list_array[server_idx][hl->used_array[server_idx]-1]; 1452 PVFS_handle_copy( hl->list_array[server_idx][i], 1453 hl->list_array[server_idx] 1454 [hl->used_array[server_idx]-1]); 1425 1455 1426 1456 } … … 1456 1486 { 1457 1487 /* move last entry to this position before decrement */ 1458 hl->list_array[server_idx][i] =1459 hl->list_array[server_idx][hl->used_array[server_idx]-1] ;1488 PVFS_handle_copy(hl->list_array[server_idx][i], 1489 hl->list_array[server_idx][hl->used_array[server_idx]-1]); 1460 1490 1461 1491 } … … 1488 1518 { 1489 1519 if (hl->used_array[i] > 0) { 1490 *handle_p = hl->list_array[i][hl->used_array[i]-1]; 1520 PVFS_handle_copy(*handle_p, 1521 hl->list_array[i][hl->used_array[i]-1]); 1491 1522 hl->used_array[i]--; 1492 1523 *server_idx_p = i; -
branches/orange-next/src/apps/admin/pvfs2-ls.c
r8935 r8943 488 488 PVFS_credentials credentials; 489 489 PVFS_object_ref ref; 490 PVFS_ds_position token; 490 PVFS_kv_position token; 491 unsigned int token_flag = 0; 491 492 uint64_t dir_version = 0; 492 493 double begin = 0., end; … … 511 512 } 512 513 513 ref.handle = lk_response.ref.handle;514 PVFS_handle_copy(ref.handle, lk_response.ref.handle); 514 515 ref.fs_id = fs_id; 515 516 pvfs_dirent_incount = MAX_NUM_DIRENTS; 516 517 518 memset(&token, 0, sizeof(PVFS_kv_position)); 517 519 memset(&getattr_response,0,sizeof(PVFS_sysresp_getattr)); 518 520 if (PVFS_sys_getattr(ref, PVFS_ATTR_SYS_ALL, … … 560 562 if (do_timing) 561 563 begin = Wtime(); 562 token = 0;564 token_flag = PVFS_READDIR_START; 563 565 do 564 566 { 565 567 memset(&rdplus_response, 0, sizeof(PVFS_sysresp_readdirplus)); 566 568 ret = PVFS_sys_readdirplus( 567 ref, (!token ? PVFS_READDIR_START : token),569 ref, token, &token_flag, 568 570 pvfs_dirent_incount, &credentials, 569 571 (opts->list_long) ? … … 604 606 { 605 607 cur_file = rdplus_response.dirent_array[i].d_name; 606 cur_handle = rdplus_response.dirent_array[i].handle; 608 PVFS_handle_copy(cur_handle, 609 rdplus_response.dirent_array[i].handle); 607 610 608 611 print_entry(cur_file, cur_handle, fs_id, … … 643 646 } 644 647 } 645 token = rdplus_response.token;648 memcpy(&token, &rdplus_response.token, sizeof(PVFS_kv_position)); 646 649 647 650 if (rdplus_response.pvfs_dirent_outcount) -
branches/orange-next/src/apps/admin/pvfs2-migrate-collection.c
r7959 r8943 693 693 TROVE_context_id trove_context = -1; 694 694 char current_path[PATH_MAX]; 695 695 TROVE_handle handle; 696 697 PVFS_handle_clear(handle); 696 698 /* rename old collection */ 697 699 snprintf(current_path, PATH_MAX, "%s/%08x", meta_storage_space, coll_id); … … 733 735 coll_name, 734 736 coll_id, 735 TROVE_HANDLE_NULL,737 handle, 736 738 handle_range, 737 739 NULL, … … 1083 1085 int count = 0; 1084 1086 TROVE_ds_state state; 1085 TROVE_handle_extent cur_extent;1086 TROVE_handle_extent_array extent_array;1087 1087 TROVE_handle new_handle; 1088 1088 TROVE_handle* tmp_handle; … … 1168 1168 llu(*tmp_handle), (int)tmp_attr->type); 1169 1169 1170 cur_extent.first = cur_extent.last = *tmp_handle;1171 extent_array.extent_count = 1;1172 extent_array.extent_array = &cur_extent;1173 1174 1170 state = 0; 1175 1171 ret = trove_dspace_create( 1176 coll_id, & extent_array, &new_handle,1172 coll_id, &new_handle, 1177 1173 tmp_attr->type, NULL, 1178 1174 (TROVE_SYNC | TROVE_FORCE_REQUESTED_HANDLE), … … 1202 1198 */ 1203 1199 new_attr.fs_id = tmp_attr->fs_id; 1204 new_attr.handle = tmp_attr->handle;1200 PVFS_handle_copy(new_attr.handle, tmp_attr->handle); 1205 1201 new_attr.type = tmp_attr->type; 1206 1202 new_attr.uid = tmp_attr->uid; … … 1284 1280 { 1285 1281 /* scan the handle value out of the file name */ 1286 #if SIZEOF_LONG_INT == 4 1287 ret = sscanf(tmp_ent->d_name, "%llx.keyval", 1288 &(llu(tmp_handle))); 1289 #elif SIZEOF_LONG_INT == 8 1290 ret = sscanf(tmp_ent->d_name, "%lx.keyval", 1291 &(tmp_handle)); 1292 #else 1293 #error Unexpected sizeof(long int) 1294 #endif 1295 if(ret != 1) 1296 { 1297 fprintf(stderr, "Error: malformed file name %s in %s\n", 1298 tmp_ent->d_name, bucket_dir); 1299 closedir(tmp_dir); 1300 return(-1); 1301 } 1282 PVFS_handle_unparse(tmp_handle, (char *)tmp_ent->d_name); 1283 1302 1284 snprintf(keyval_db, PATH_MAX, "%s/keyvals/%.8d/%s", 1303 1285 old_coll_path, i, tmp_ent->d_name); -
branches/orange-next/src/apps/admin/pvfs2-mkdir.c
r7471 r8943 290 290 } 291 291 292 parent_ref.handle = resp_lookup.ref.handle;292 PVFS_handle_copy(parent_ref.handle, resp_lookup.ref.handle); 293 293 parent_ref.fs_id = resp_lookup.ref.fs_id; 294 294 -
branches/orange-next/src/apps/admin/pvfs2-mkspace.c
r8658 r8943 37 37 38 38 static int default_verbose = 0; 39 static PVFS_handle default_root_handle = PVFS_HANDLE_NULL;39 static PVFS_handle default_root_handle; 40 40 static int default_collection_only = 0; 41 41 static char default_meta_ranges[PATH_MAX] = "4-2147483650"; … … 166 166 case 'r': 167 167 do_root_handle: 168 #ifdef HAVE_STRTOULL 169 opts->root_handle = (PVFS_handle) 170 strtoull(optarg, NULL, 10); 171 #else 172 opts->root_handle = (PVFS_handle) 173 strtoul(optarg, NULL, 10); 174 #endif 168 PVFS_handle_parse(optarg, opts->root_handle); 175 169 break; 176 170 case 'M': … … 297 291 { 298 292 opts.verbose = default_verbose; 299 opts.root_handle = default_root_handle;293 PVFS_handle_copy(opts.root_handle, default_root_handle); 300 294 opts.collection_only = default_collection_only; 301 295 strncpy(opts.meta_ranges, default_meta_ranges, PATH_MAX); -
branches/orange-next/src/apps/admin/pvfs2-ping.c
r8929 r8943 208 208 209 209 param_value.type = PVFS_MGMT_PARAM_TYPE_UINT64; 210 PVFS_han lde_copy(param_value.u.handle_value, resp_lookup.ref.handle);210 PVFS_handle_copy(param_value.u.handle_value, resp_lookup.ref.handle); 211 211 212 212 /* check that only one server controls root handle */ -
branches/orange-next/src/apps/admin/pvfs2-remove-object.c
r7528 r8943 133 133 do_object: 134 134 tmp_opts->remove_object_only = 1; 135 tmp_opts->object_handle = 136 (PVFS_handle)strtoull(optarg, NULL,10); 135 PVFS_handle_parse(optarg, tmp_opts->object_handle); 137 136 break; 138 137 case 'p': 139 138 do_parent: 140 tmp_opts->parent_handle = 141 (PVFS_handle)strtoull(optarg, NULL,10); 139 PVFS_handle_parse( optarg, tmp_opts->parent_handle ); 142 140 break; 143 141 case 'd': … … 175 173 if (user_opts->remove_object_only) 176 174 { 177 ref.handle = user_opts->object_handle;178 if (( ref.handle == PVFS_HANDLE_NULL) ||175 PVFS_handle_copy(ref.handle, user_opts->object_handle); 176 if ((PVFS_handle_is_null(ref.handle)) || 179 177 (ref.fs_id == PVFS_FS_ID_NULL)) 180 178 { … … 186 184 else 187 185 { 188 ref.handle = user_opts->parent_handle;189 if ( (ref.handle == PVFS_HANDLE_NULL) ||186 PVFS_handle_copy(ref.handle, user_opts->parent_handle); 187 if (PVFS_handle_is_null(ref.handle) || 190 188 (ref.fs_id == PVFS_FS_ID_NULL)) 191 189 { -
branches/orange-next/src/apps/admin/pvfs2-showcoll.c
r8934 r8943 223 223 /* TODO: USE BIGGER VALUE */ 224 224 got_dspace_handle = 1; 225 dspace_handle = strtol(optarg, NULL, 16);225 PVFS_handle_parse(optarg, dspace_handle); 226 226 break; 227 227 case 'v': … … 364 364 { 365 365 int ret, count; 366 TROVE_ds_position pos; 366 TROVE_kv_position pos; 367 unsigned int pos_flag; 367 368 TROVE_keyval_s key, val; 368 369 TROVE_op_id op_id; … … 391 392 } 392 393 393 394 pos = TROVE_ITERATE_START; 394 pos_flag = TROVE_ITERATE_START; 395 395 count = 1; 396 396 … … 403 403 handle, 404 404 &pos, 405 &pos_flag, 405 406 &key, 406 407 &val, -
branches/orange-next/src/apps/admin/pvfs2-stat.c
r8317 r8943 224 224 } 225 225 226 ref.handle = lk_response.ref.handle;226 PVFS_handle_copy(ref.handle, lk_response.ref.handle); 227 227 ref.fs_id = fs_id; 228 228 -
branches/orange-next/src/apps/admin/pvfs2-validate.c
r7471 r8943 265 265 char new_path[PVFS_SEGMENT_MAX]; 266 266 267 obj_ref.handle = directory_entries[j].handle;267 PVFS_handle_copy(obj_ref.handle, directory_entries[j].handle); 268 268 obj_ref.fs_id = *cur_fs; 269 269 -
branches/orange-next/src/apps/admin/pvfs2-viewdist.c
r7471 r8943 178 178 PVFS_handle *ptr = (PVFS_handle *) ((char *) buffer + ret * sizeof(PVFS_handle)); 179 179 servers[ret] = (char *) calloc(1, PVFS_MAX_SERVER_ADDR_LEN); 180 handles[ret] = *ptr;180 PVFS_handle_copy(handles[ret], *ptr); 181 181 if (servers[ret] == NULL) 182 182 { … … 410 410 return (-1); 411 411 } 412 ref.handle = resp_lookup.ref.handle;412 PVFS_handle_copy(ref.handle, resp_lookup.ref.handle); 413 413 ref.fs_id = resp_lookup.ref.fs_id; 414 414 -
branches/orange-next/src/apps/admin/pvfs2-xattr.c
r8592 r8943 733 733 return (-1); 734 734 } 735 ref.handle = resp_lookup.ref.handle;735 PVFS_handle_copy(ref.handle, resp_lookup.ref.handle); 736 736 ref.fs_id = resp_lookup.ref.fs_id; 737 737
