Changeset 8962
- Timestamp:
- 07/19/11 16:55:27 (22 months ago)
- Location:
- branches/orange-next
- Files:
-
- 4 modified
-
Makefile.in (modified) (3 diffs)
-
configure (modified) (2 diffs)
-
configure.in (modified) (1 diff)
-
src/apps/devel/pvfs2-db-display.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/orange-next/Makefile.in
r8878 r8962 191 191 PICFLAGS = -fPIC 192 192 LIBS += -lpvfs2 @LIBS@ 193 LIBS += -luuid @LIBS@ 193 194 LIBS_THREADED += -lpvfs2-threaded @LIBS@ 194 195 # need to include external dependency libs when building shared libraries 195 DEPLIBS := @LIBS@196 DEPLIBS += @LIBS@ 196 197 MMAP_RA_CACHE = @MMAP_RA_CACHE@ 197 198 TRUSTED_CONNECTIONS = @TRUSTED_CONNECTIONS@ … … 317 318 SERVERCFLAGS += -D__STATIC_FLOWPROTO_BMI_CACHE__ 318 319 319 SERVERLIBS = -lpvfs2-server @LIBS@ @DB_LIB@ -lpthread 320 SERVERLIBS = -lpvfs2-server @LIBS@ @DB_LIB@ -lpthread -luuid 320 321 321 322 ifdef NEEDS_LIBRT … … 1154 1155 # install any development tools built 1155 1156 for i in $(notdir $(DEVELTOOLS)) ; do \ 1156 if [ -f $( srcdir)/src/apps/devel/$$i ]; then install -m 755 $(srcdir)/src/apps/devel/$$i $(bindir); fi;\1157 if [ -f $(builddir)/src/apps/devel/$$i ]; then install -m 755 $(srcdir)/src/apps/devel/$$i $(bindir); fi;\ 1157 1158 done 1158 1159 -
branches/orange-next/configure
r8935 r8962 11495 11495 fi 11496 11496 11497 for ac_header11498 do :11499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`11500 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"11501 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :11502 cat >>confdefs.h <<_ACEOF11503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 111504 _ACEOF11505 11506 fi11507 11508 done11509 11510 11497 for ac_header in uuid/uuid.h 11511 11498 do : … … 11516 11503 _ACEOF 11517 11504 LDFLAGS="$LDFLAGS -luuid" 11518 SERVER_LDFLAGS="$LDFLAGS -luuid"11519 11505 11520 11506 fi -
branches/orange-next/configure.in
r8935 r8962 1106 1106 1107 1107 dnl check for uuid 1108 AC_CHECK_HEADERS1109 1108 AC_CHECK_HEADERS(uuid/uuid.h, 1110 1109 LDFLAGS="$LDFLAGS -luuid" -
branches/orange-next/src/apps/devel/pvfs2-db-display.c
r8961 r8962 264 264 v = val.data; 265 265 266 printf("(%llu)(%d) -> ", llu(k), key.size); 266 TROVE_handle_unparse(*(TROVE_handle *)key.data, handle_s); 267 printf("(%s)(%d) -> ", handle_s, key.size); 267 268 268 269 print_ds_type( v->type ); 269 270 270 uuid_unparse(v->handle, handle_s);271 TROVE_handle_unparse(v->handle, handle_s); 271 272 printf("(fsid: %d)(handle: %s)(uid: %u)(gid: %u)" 272 273 "(perm: %u)(ctime: %llu)(mtime: %llu)(atime: %llu)(%d)\n", … … 281 282 { 282 283 struct dbpf_keyval_db_entry *k; 283 uint64_t vh, kh;284 284 uint32_t vi; 285 285 286 286 287 287 k = key.data; 288 uuid_unparse(k->handle, handle_s);288 TROVE_handle_unparse(k->handle, handle_s); 289 289 printf("(%s)", handle_s); 290 printf("key.size: %d\n", key.size); 291 if( key.size == 8 ) 290 if( key.size == 16 ) 292 291 { 293 292 printf("()(%d) -> ", key.size); 294 293 } 295 else if( key.size == 16 ) 296 { 297 298 kh = *(uint64_t *)k->key; 299 printf("(%llu)(%d) -> ", llu(kh), key.size); 294 else if( key.size == 32 ) 295 { 296 TROVE_handle_unparse(*(TROVE_handle *)k->key, handle_s); 297 printf("(%s)(%d) -> ", handle_s, key.size); 300 298 } 301 299 else … … 306 304 if( strncmp(k->key, "dh", 3) == 0 || strncmp(k->key, "de", 3) == 0 ) 307 305 { 308 vh = *(uint64_t *)val.data;309 printf("(% llu)(%d)\n", llu(vh), val.size);306 TROVE_handle_unparse(*(TROVE_handle *)val.data, handle_s); 307 printf("(%s)(%d)\n", handle_s, val.size); 310 308 } 311 309 … … 319 317 printf("(%s)(%d)\n", dname, val.size ); 320 318 } 321 322 else if( strlen(k->key) > 2 && val.size == 8)319 320 else if( strlen(k->key) > 2 && val.size == 16 ) 323 321 { 324 322 /* should be cases of filename to handle */ 325 vh = *(uint64_t *)val.data;326 printf("(% llu)(%d)\n", llu(vh), val.size );327 } 328 323 TROVE_handle_unparse(*(TROVE_handle *)val.data, handle_s); 324 printf("(%s)(%d)\n", handle_s, val.size ); 325 } 326 329 327 else if( (key.size == 8 || key.size == 16 ) && val.size == 4 ) 330 328 { … … 332 330 printf("(%u)(%d)\n", vi, val.size ); 333 331 } 332 334 333 /* 335 334 * not implemented … … 353 352 { 354 353 /* just print out the size of the data, try not to segfault */ 355 printf(" (%d)\n", val.size);354 printf("unhandled(%d)\n", val.size); 356 355 } 357 356 … … 362 361 { 363 362 char *k, *vs; 364 uint64_t vu;365 363 k = key.data; 366 364 printf("(%s)(%d) -> ", k, key.size); 367 if( val.size == 8 ) 368 { 369 vu = *(uint64_t *)val.data; 370 printf("(%llu)(%d)\n", llu(vu), val.size); 365 366 367 if( val.size == 16 ) 368 { 369 TROVE_handle_unparse(*(TROVE_handle*)val.data, handle_s); 370 printf("(%s)(%d)\n", handle_s, val.size); 371 371 } 372 372 else
