Changeset 8962

Show
Ignore:
Timestamp:
07/19/11 16:55:27 (22 months ago)
Author:
mtmoore
Message:

small build change for libuuid and printing of temp change for handle printing in pvfs2-db-display

Location:
branches/orange-next
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/orange-next/Makefile.in

    r8878 r8962  
    191191PICFLAGS = -fPIC 
    192192LIBS += -lpvfs2 @LIBS@  
     193LIBS += -luuid @LIBS@ 
    193194LIBS_THREADED += -lpvfs2-threaded @LIBS@ 
    194195# need to include external dependency libs when building shared libraries 
    195 DEPLIBS := @LIBS@ 
     196DEPLIBS += @LIBS@ 
    196197MMAP_RA_CACHE = @MMAP_RA_CACHE@ 
    197198TRUSTED_CONNECTIONS = @TRUSTED_CONNECTIONS@ 
     
    317318SERVERCFLAGS += -D__STATIC_FLOWPROTO_BMI_CACHE__ 
    318319 
    319 SERVERLIBS = -lpvfs2-server @LIBS@ @DB_LIB@ -lpthread  
     320SERVERLIBS = -lpvfs2-server @LIBS@ @DB_LIB@ -lpthread -luuid 
    320321 
    321322ifdef NEEDS_LIBRT  
     
    11541155        # install any development tools built 
    11551156        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;\ 
    11571158        done 
    11581159 
  • branches/orange-next/configure

    r8935 r8962  
    1149511495fi 
    1149611496 
    11497 for ac_header 
    11498 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 <<_ACEOF 
    11503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 
    11504 _ACEOF 
    11505  
    11506 fi 
    11507  
    11508 done 
    11509  
    1151011497for ac_header in uuid/uuid.h 
    1151111498do : 
     
    1151611503_ACEOF 
    1151711504 LDFLAGS="$LDFLAGS -luuid" 
    11518          SERVER_LDFLAGS="$LDFLAGS -luuid" 
    1151911505 
    1152011506fi 
  • branches/orange-next/configure.in

    r8935 r8962  
    11061106 
    11071107dnl check for uuid  
    1108 AC_CHECK_HEADERS 
    11091108AC_CHECK_HEADERS(uuid/uuid.h, 
    11101109    LDFLAGS="$LDFLAGS -luuid" 
  • branches/orange-next/src/apps/devel/pvfs2-db-display.c

    r8961 r8962  
    264264    v = val.data; 
    265265 
    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); 
    267268  
    268269    print_ds_type( v->type ); 
    269270 
    270     uuid_unparse(v->handle, handle_s); 
     271    TROVE_handle_unparse(v->handle, handle_s); 
    271272    printf("(fsid: %d)(handle: %s)(uid: %u)(gid: %u)" 
    272273           "(perm: %u)(ctime: %llu)(mtime: %llu)(atime: %llu)(%d)\n",  
     
    281282{ 
    282283    struct dbpf_keyval_db_entry *k; 
    283     uint64_t vh, kh; 
    284284    uint32_t vi; 
    285285 
    286286 
    287287    k = key.data; 
    288     uuid_unparse(k->handle, handle_s); 
     288    TROVE_handle_unparse(k->handle, handle_s); 
    289289    printf("(%s)", handle_s); 
    290     printf("key.size: %d\n", key.size); 
    291     if( key.size == 8 ) 
     290    if( key.size == 16 ) 
    292291    { 
    293292        printf("()(%d) -> ", key.size); 
    294293    } 
    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); 
    300298    } 
    301299    else 
     
    306304    if( strncmp(k->key, "dh", 3) == 0 || strncmp(k->key, "de", 3) == 0 ) 
    307305    { 
    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); 
    310308    } 
    311309 
     
    319317       printf("(%s)(%d)\n", dname, val.size ); 
    320318    } 
    321  
    322     else if( strlen(k->key) > 2 && val.size == 8 ) 
     319     
     320    else if( strlen(k->key) > 2 && val.size == 16 ) 
    323321    { 
    324322        /* 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     
    329327    else if( (key.size == 8 || key.size == 16 ) && val.size == 4 ) 
    330328    { 
     
    332330        printf("(%u)(%d)\n", vi, val.size ); 
    333331    } 
     332     
    334333/* 
    335334 * not implemented 
     
    353352    { 
    354353        /* 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); 
    356355    } 
    357356 
     
    362361{ 
    363362    char *k, *vs; 
    364     uint64_t vu; 
    365363    k = key.data; 
    366364    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); 
    371371    } 
    372372    else