Changeset 8330

Show
Ignore:
Timestamp:
05/21/10 13:34:36 (3 years ago)
Author:
nlmills
Message:

revert cu-security-branch to before the attempted merge with Orange-Branch

Location:
branches/cu-security-branch
Files:
6 added
5 removed
156 modified

Legend:

Unmodified
Added
Removed
  • branches/cu-security-branch

    • Property svn:ignore
      •  

        old new  
        33aclocal.m4 
        44autom4te.cache 
         5config.status 
         6Makefile 
         7pvfs2-config.h 
         8module.mk 
  • branches/cu-security-branch/Makefile.in

    r7956 r8330  
    1111# publish        copy over documents to the PVFS.org web pags 
    1212# admintools     builds admin tools 
    13 # usertools      builds user tools 
    1413# kernapps       builds userland helper programs for kernel driver 
    1514# cscope         generates information for cscope utility 
     
    121120#    here keeps make from accidentally doing too much work (see GNU 
    122121#    make manual). 
    123 .PHONY: all clean dist distclean docs docsclean publish cscope tags codecheck admintools kernapps usertools 
     122.PHONY: all clean dist distclean docs docsclean publish cscope tags codecheck admintools kernapps 
    124123 
    125124################################################################ 
     
    437436# library 
    438437ADMINSRC_SERVER := 
    439 # usRSRC is source code for userland programs 
    440 USERSRC := 
    441438# LIBSRC is source code for libpvfs2 
    442439LIBSRC := 
     
    553550# ADMINDEPENDS is a list of dependency files for admin programs 
    554551ADMINDEPENDS := $(patsubst %.c,%.d, $(filter %.c,$(ADMINSRC))) 
    555 # 
    556 # USEROBJS is a list of user program objects 
    557 USEROBJS := $(patsubst %.c,%.o, $(filter %.c,$(USERSRC))) 
    558 # USERTOOLS is a list of user program executables  
    559 USERTOOLS := $(patsubst %.c,%, $(filter %.c, $(USERSRC))) 
    560 # USERDEPENDS is a list of dependency files for user programs 
    561 USERDEPENDS := $(patsubst %.c,%.d, $(filter %.c,$(USERSRC))) 
    562552 
    563553ifdef BUILD_SERVER 
     
    639629else 
    640630DEPENDS := $(sort $(LIBDEPENDS) $(SERVERDEPENDS) $(SERVERBINDEPENDS) \ 
    641     $(MISCDEPENDS) $(USERDEPENDS) \ 
     631    $(MISCDEPENDS) \ 
    642632    $(ADMINDEPENDS) $(ADMINDEPENDS_SERVER) $(KERNAPPDEPENDS) $(VISDEPENDS) \ 
    643633    $(VISMISCDEPENDS) $(KARMADEPENDS) $(STATECOMPDEPS) $(FUSEDEPENDS)) 
     
    651641all:: $(BMILIBRARIES) 
    652642else 
    653 all:: $(SERVER) $(KARMA) $(LIBRARIES) admintools usertools $(VISS) $(KARMA) $(FUSE) 
     643all:: $(SERVER) $(KARMA) $(LIBRARIES) admintools $(VISS) $(KARMA) $(FUSE) 
    654644endif 
    655645 
    656646# target for building admin tools 
    657647admintools: $(ADMINTOOLS) $(ADMINTOOLS_SERVER) 
    658 #target for building user tools 
    659 usertools: $(USERTOOLS) 
    660648 
    661649# target for building kernel driver userland programs 
     
    862850$(ADMINTOOLS): %: %.o $(LIBRARIES) 
    863851$(ADMINTOOLS_SERVER): %: %.o $(LIBRARIES) lib/libpvfs2-server.a 
    864 $(USERTOOLS): %: %.o $(LIBRARIES) 
    865852 
    866853$(KERNAPPS): %: %.o $(LIBRARIES) 
     
    927914                $(ADMINOBJS) $(ADMINOBJS_SERVER) $(ADMINTOOLS)\ 
    928915                $(ADMINTOOLS_SERVER) lib/libpvfs2-server.a\ 
    929                 $(USERTOOLS) $(USEROBJS) \ 
    930916                $(KERNAPPOBJS) $(KERNAPPS) $(KERNAPPSTHR) \ 
    931917                $(VISS) $(VISMISCOBJS) $(VISOBJS) $(VISDEPENDS)\ 
     
    958944bmidist: cleaner 
    959945        @sh $(srcdir)/maint/make-bmi-dist.sh $(srcdir) $(builddir) @PVFS2_VERSION@ 
    960         cp -u $(builddir)/config.save $(builddir)/config.status 
     946        if test -f $(builddir)/config.save; then  cp -u $(builddir)/config.save $(builddir)/config.status; fi 
    961947endif 
    962948 
     
    973959        rm -f pvfs2-config.h.in~ 
    974960        rm -f $(srcdir)/cscope.out $(srcdir)/cscope.files 
    975         cp -p config.status config.save 
     961        if test -f config.status; then cp -p config.status config.save; fi 
    976962        rm -f config.log config.status config.cache  
    977963        rm -f pvfs-@PVFS2_VERSION@.tar.gz 
     
    10731059        install -m 644 $(srcdir)/include/pvfs2-hint.h $(includedir) 
    10741060        install -m 644 $(srcdir)/include/pvfs2-compat.h $(includedir) 
    1075         install -m 644 $(srcdir)/include/pvfs2-mirror.h $(includedir) 
    10761061 
    10771062        install -d $(libdir) 
     
    11081093        install -d $(bindir) 
    11091094        install -m 755 $(ADMINTOOLS) $(bindir) 
    1110         install -m 755 $(USERTOOLS) $(bindir) 
    11111095        # for compatibility in case anyone really wants "lsplus" 
    11121096        $(LN_S) pvfs2-ls $(bindir)/pvfs2-lsplus 
     
    11151099        install -m 755 $(srcdir)/src/apps/admin/pvfs2-genconfig $(bindir) 
    11161100        install -m 755 $(srcdir)/src/apps/admin/pvfs2-config-convert $(bindir) 
    1117         install -m 755 $(srcdir)/src/apps/admin/pvfs2-getmattr $(bindir) 
    1118         install -m 755 $(srcdir)/src/apps/admin/pvfs2-setmattr $(bindir) 
    11191101ifdef BUILD_KARMA 
    11201102        install -m 755 $(KARMA) $(bindir) 
  • branches/cu-security-branch/configure

    r7956 r8330  
    14021402PVFS2_VERSION_MINOR=8 
    14031403PVFS2_VERSION_SUB=1 
    1404 #PVFS2_PRE="" 
    1405 PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME" 
     1404PVFS2_PRE="" 
     1405#PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME" 
    14061406 
    14071407PVFS2_VERSION=$PVFS2_VERSION_MAJOR.$PVFS2_VERSION_MINOR.$PVFS2_VERSION_SUB$PVFS2_VERSION_PRE 
  • branches/cu-security-branch/configure.in

    r7956 r8330  
    2020PVFS2_VERSION_MINOR=8 
    2121PVFS2_VERSION_SUB=1 
    22 #PVFS2_PRE="" 
    23 PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME" 
     22PVFS2_PRE="" 
     23#PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME" 
    2424 
    2525PVFS2_VERSION=$PVFS2_VERSION_MAJOR.$PVFS2_VERSION_MINOR.$PVFS2_VERSION_SUB$PVFS2_VERSION_PRE 
  • branches/cu-security-branch/doc/coding

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/doc/coding/romio-MPICH2-0.96p2-PVFS2-0.51.diff

    r7956 r8330  
    21412141 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    21422142 /*  
    2143 - *   $Id: ad_pvfs.h,v 1.3 2002/10/24 17:00:57 gropp Exp $     
    2144 + *   $Id: ad_pvfs.h,v 1.5 2004/06/07 19:26:28 gropp Exp $     
     2143- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     2144+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    21452145  * 
    21462146  *   Copyright (C) 1997 University of Chicago.  
     
    21772177 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    21782178 /*  
    2179 - *   $Id: ad_pvfs_flush.c,v 1.11 2003/04/18 20:15:01 David Exp $     
    2180 + *   $Id: ad_pvfs_flush.c,v 1.12 2004/05/20 19:05:17 robl Exp $     
     2179- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     2180+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    21812181  * 
    21822182  *   Copyright (C) 1997 University of Chicago.  
     
    22252225 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    22262226 /*  
    2227 - *   $Id: ad_pvfs_resize.c,v 1.11 2003/04/18 20:15:01 David Exp $     
    2228 + *   $Id: ad_pvfs_resize.c,v 1.13 2004/06/07 16:42:26 gropp Exp $     
     2227- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     2228+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    22292229  * 
    22302230  *   Copyright (C) 1997 University of Chicago.  
     
    22822282 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    22832283 /*  
    2284 - *   $Id: ad_pvfs2_close.c,v 1.2 2003/06/27 23:23:16 robl Exp $ 
    2285 + *   $Id: ad_pvfs2_close.c,v 1.3 2004/05/20 19:13:57 robl Exp $ 
     2284- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
     2285+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    22862286  * 
    22872287  *   Copyright (C) 1997 University of Chicago.  
     
    23142314 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    23152315 /*  
    2316 - *   $Id: ad_pvfs2_common.c,v 1.7 2003/09/05 20:43:58 robl Exp $ 
    2317 + *   $Id: ad_pvfs2_common.c,v 1.9 2004/03/25 22:17:45 robl Exp $ 
     2316- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
     2317+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    23182318  * 
    23192319  *   Copyright (C) 2003 University of Chicago.  
     
    24232423 /* -*- Mode: C; c-basic-offset:4 ; -*- 
    24242424  * vim: ts=8 sts=4 sw=4 noexpandtab 
    2425 - *   $Id: ad_pvfs2_common.h,v 1.8 2003/09/18 23:13:18 robl Exp $     
    2426 + *   $Id: ad_pvfs2_common.h,v 1.10 2004/03/25 22:22:34 robl Exp $     
     2425- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     2426+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    24272427  * 
    24282428  *   Copyright (C) 1997 University of Chicago.  
     
    24692469 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    24702470 /*  
    2471 - *   $Id: ad_pvfs2_delete.c,v 1.5 2003/09/05 20:43:58 robl Exp $     
    2472 + *   $Id: ad_pvfs2_delete.c,v 1.8 2004/05/20 20:31:05 robl Exp $     
     2471- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     2472+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    24732473  * 
    24742474  *   Copyright (C) 2003 University of Chicago.  
     
    25472547 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    25482548 /*  
    2549 - *   $Id: ad_pvfs2_fcntl.c,v 1.3 2003/08/05 22:59:20 robl Exp $     
    2550 + *   $Id: ad_pvfs2_fcntl.c,v 1.5 2004/05/20 20:31:05 robl Exp $     
     2549- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     2550+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    25512551  * 
    25522552  *   Copyright (C) 1997 University of Chicago.  
     
    25882588 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    25892589 /*  
    2590 - *   $Id: ad_pvfs2_flush.c,v 1.3 2003/10/30 18:53:40 robl Exp $     
    2591 + *   $Id: ad_pvfs2_flush.c,v 1.9 2004/05/20 20:31:05 robl Exp $     
     2590- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     2591+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    25922592  * 
    25932593  *   Copyright (C) 1997 University of Chicago.  
     
    26552655 /* -*- Mode: C; c-basic-offset:4 ; -*- 
    26562656  * vim: ts=8 sts=4 sw=4 noexpandtab 
    2657 - *   $Id: ad_pvfs2_open.c,v 1.11 2003/11/02 15:55:18 rross Exp $ 
    2658 + *   $Id: ad_pvfs2_open.c,v 1.14 2004/05/20 20:31:05 robl Exp $ 
     2657- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
     2658+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    26592659  * 
    26602660  *   Copyright (C) 1997 University of Chicago.  
     
    28652865 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    28662866 /*  
    2867 - *   $Id: ad_pvfs2_read.c,v 1.7 2003/08/07 23:34:31 robl Exp $ 
    2868 + *   $Id: ad_pvfs2_read.c,v 1.10 2004/06/07 20:48:15 robl Exp $ 
     2867- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
     2868+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    28692869  * 
    28702870  *   Copyright (C) 1997 University of Chicago.  
     
    36403640 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    36413641 /*  
    3642 - *   $Id: ad_pvfs2_resize.c,v 1.4 2003/09/04 23:20:09 robl Exp $ 
    3643 + *   $Id: ad_pvfs2_resize.c,v 1.10 2004/05/20 20:31:05 robl Exp $ 
     3642- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
     3643+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    36443644  * 
    36453645  *   Copyright (C) 1997 University of Chicago.  
     
    37003700 /* -*- Mode: C; c-basic-offset:4 ; -*-  
    37013701  *   vim: ts=8 sts=4 sw=4 noexpandtab 
    3702 - *   $Id: ad_pvfs2_write.c,v 1.11 2003/09/05 20:47:47 robl Exp $ 
    3703 + *   $Id: ad_pvfs2_write.c,v 1.13 2004/05/20 20:31:05 robl Exp $ 
     3702- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
     3703+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    37043704  * 
    37053705  *   Copyright (C) 1997 University of Chicago.  
     
    39433943 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    39443944 /*  
    3945 - *   $Id: ad_open.c,v 1.23 2003/09/05 22:35:49 gropp Exp $     
    3946 + *   $Id: ad_open.c,v 1.27 2004/05/20 07:43:36 David Exp $     
     3945- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     3946+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    39473947  * 
    39483948  *   Copyright (C) 1997 University of Chicago.  
     
    41504150 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    41514151 /*  
    4152 - *   $Id: ad_write_str.c,v 1.11 2003/07/26 23:16:57 David Exp $     
    4153 + *   $Id: ad_write_str.c,v 1.12 2003/12/16 21:51:22 robl Exp $     
     4152- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     4153+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    41544154  * 
    41554155  *   Copyright (C) 1997 University of Chicago.  
     
    42004200+/* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    42014201+/*  
    4202 + *   $Id: ad_write_str_naive.c,v 1.1 2003/12/16 21:51:23 robl Exp $ 
     4202+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    42034203+ * 
    42044204+ *   Copyright (C) 2001 University of Chicago.  
     
    45834583 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    45844584 /*  
    4585 - *   $Id: flatten.c,v 1.12 2003/09/04 21:35:29 rross Exp $     
    4586 + *   $Id: flatten.c,v 1.14 2004/02/19 16:24:02 robl Exp $     
     4585- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     4586+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    45874587  * 
    45884588  *   Copyright (C) 1997 University of Chicago.  
     
    52285228 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    52295229 /*  
    5230 - *   $Id: lock.c,v 1.10 2003/12/10 22:44:12 gropp Exp $     
    5231 + *   $Id: lock.c,v 1.11 2004/05/26 17:56:55 thakur Exp $     
     5230- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5231+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    52325232  * 
    52335233  *   Copyright (C) 1997 University of Chicago.  
     
    52675267 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    52685268 /*  
    5269 - *   $Id: adio.h,v 1.30 2003/09/08 13:35:43 gropp Exp $     
    5270 + *   $Id: adio.h,v 1.35 2004/06/07 17:59:57 gropp Exp $     
     5269- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5270+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    52715271  * 
    52725272  *   Copyright (C) 1997 University of Chicago.  
     
    53455345 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    53465346 /*  
    5347 - *   $Id: adioi.h,v 1.21 2003/12/04 22:20:06 robl Exp $     
    5348 + *   $Id: adioi.h,v 1.22 2003/12/17 16:49:52 robl Exp $     
     5347- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5348+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    53495349  * 
    53505350  *   Copyright (C) 1997 University of Chicago.  
     
    53855385@@ -1,10 +1,10 @@ 
    53865386 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    5387 -/*  $Id: mpipr.h,v 1.8 2003/09/08 13:36:43 gropp Exp $ 
    5388 +/*  $Id: mpipr.h,v 1.9 2004/01/08 22:41:54 gropp Exp $ 
     5387-/*  $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
     5388+/*  $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 
    53895389  * 
    53905390  *  (C) 2001 by Argonne National Laboratory. 
     
    55245524 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    55255525 /*  
    5526 - *   $Id: mpio.h.in,v 1.20 2003/11/07 00:14:54 robl Exp $     
    5527 + *   $Id: mpio.h.in,v 1.25 2004/06/01 19:21:16 thakur Exp $     
     5526- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5527+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    55285528  * 
    55295529  *   Copyright (C) 1997 University of Chicago.  
     
    57755775 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    57765776 /*  
    5777 - *   $Id: close.c,v 1.11 2003/07/01 19:12:39 robl Exp $     
    5778 + *   $Id: close.c,v 1.12 2004/04/06 18:46:31 thakur Exp $     
     5777- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5778+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    57795779  * 
    57805780  *   Copyright (C) 1997 University of Chicago.  
     
    58165816 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    58175817 /*  
    5818 - *   $Id: delete.c,v 1.18 2003/09/15 13:33:30 gropp Exp $     
    5819 + *   $Id: delete.c,v 1.19 2004/02/12 06:08:22 David Exp $     
     5818- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5819+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    58205820  * 
    58215821  *   Copyright (C) 1997 University of Chicago.  
     
    59025902 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    59035903 /*  
    5904 - *   $Id: get_posn_sh.c,v 1.17 2003/07/01 19:12:39 robl Exp $     
    5905 + *   $Id: get_posn_sh.c,v 1.18 2004/02/12 06:08:24 David Exp $     
     5904- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5905+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    59065906  * 
    59075907  *   Copyright (C) 1997 University of Chicago.  
     
    59715971 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    59725972 /*  
    5973 - *   $Id: get_view.c,v 1.15 2003/04/18 20:15:08 David Exp $     
    5974 + *   $Id: get_view.c,v 1.16 2004/02/12 06:08:26 David Exp $     
     5973- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     5974+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    59755975  * 
    59765976  *   Copyright (C) 1997 University of Chicago.  
     
    60266026 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    60276027 /*  
    6028 - *   $Id: ioreq_f2c.c,v 1.10 2003/02/24 23:52:08 robl Exp $     
    6029 + *   $Id: ioreq_f2c.c,v 1.11 2004/02/12 06:08:27 David Exp $     
     6028- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     6029+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    60306030  * 
    60316031  *   Copyright (C) 1997 University of Chicago.  
     
    60666066 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    60676067 /*  
    6068 - *   $Id: iread_sh.c,v 1.20 2003/07/01 19:12:40 robl Exp $     
    6069 + *   $Id: iread_sh.c,v 1.21 2004/02/12 06:08:29 David Exp $     
     6068- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     6069+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    60706070  * 
    60716071  *   Copyright (C) 1997 University of Chicago.  
     
    63246324 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    63256325 /*  
    6326 - *   $Id: mpioprof.h,v 1.9 2003/09/08 13:32:48 gropp Exp $     
    6327 + *   $Id: mpioprof.h,v 1.10 2004/05/28 23:05:41 David Exp $     
     6326- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     6327+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    63286328  * 
    63296329  *   Copyright (C) 1997 University of Chicago.  
     
    64126412 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    64136413 /*  
    6414 - *   $Id: open.c,v 1.32 2003/09/22 21:23:23 gropp Exp $     
    6415 + *   $Id: open.c,v 1.34 2004/05/19 23:55:09 thakur Exp $     
     6414- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     6415+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    64166416  * 
    64176417  *   Copyright (C) 1997 University of Chicago.  
     
    66306630 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    66316631 /*  
    6632 - *   $Id: read_alle.c,v 1.15 2003/09/08 13:35:04 gropp Exp $     
    6633 + *   $Id: read_alle.c,v 1.16 2004/02/12 06:08:42 David Exp $     
     6632- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     6633+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    66346634  * 
    66356635  *   Copyright (C) 1997 University of Chicago.  
     
    66966696 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    66976697 /*  
    6698 - *   $Id: read_at.c,v 1.20 2003/09/08 13:33:43 gropp Exp $     
    6699 + *   $Id: read_at.c,v 1.21 2004/02/12 06:08:44 David Exp $     
     6698- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     6699+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    67006700  * 
    67016701  *   Copyright (C) 1997 University of Chicago.  
     
    68976897 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    68986898 /*  
    6899 - *   $Id: read_ordb.c,v 1.20 2003/09/25 13:25:11 gropp Exp $     
    6900 + *   $Id: read_ordb.c,v 1.21 2004/02/12 06:08:49 David Exp $     
     6899- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     6900+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    69016901  * 
    69026902  *   Copyright (C) 1997 University of Chicago.  
     
    70637063 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    70647064 /*  
    7065 - *   $Id: read_orde.c,v 1.15 2003/09/08 13:35:04 gropp Exp $     
    7066 + *   $Id: read_orde.c,v 1.16 2004/02/12 06:08:51 David Exp $     
     7065- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7066+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    70677067  * 
    70687068  *   Copyright (C) 1997 University of Chicago.  
     
    71187118 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    71197119 /*  
    7120 - *   $Id: read_sh.c,v 1.19 2003/09/15 13:33:31 gropp Exp $     
    7121 + *   $Id: read_sh.c,v 1.20 2004/02/12 06:08:53 David Exp $     
     7120- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7121+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    71227122  * 
    71237123  *   Copyright (C) 1997 University of Chicago.  
     
    72927292 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    72937293 /*  
    7294 - *   $Id: seek_sh.c,v 1.18 2003/09/15 13:33:31 gropp Exp $     
    7295 + *   $Id: seek_sh.c,v 1.19 2004/02/12 06:09:02 David Exp $     
     7294- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7295+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    72967296  * 
    72977297  *   Copyright (C) 1997 University of Chicago.  
     
    75227522 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    75237523 /*  
    7524 - *   $Id: set_errh.c,v 1.11 2003/04/18 20:15:12 David Exp $     
    7525 + *   $Id: set_errh.c,v 1.12 2003/12/16 17:32:34 thakur Exp $     
     7524- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7525+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    75267526  * 
    75277527  *   Copyright (C) 1997 University of Chicago.  
     
    75617561 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    75627562 /*  
    7563 - *   $Id: wr_atallb.c,v 1.16 2003/09/05 22:33:57 gropp Exp $     
    7564 + *   $Id: wr_atallb.c,v 1.17 2004/02/12 06:09:09 David Exp $     
     7563- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7564+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    75657565  * 
    75667566  *   Copyright (C) 1997 University of Chicago.  
     
    77137713 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    77147714 /*  
    7715 - *   $Id: wr_atalle.c,v 1.16 2003/09/08 13:35:05 gropp Exp $     
    7716 + *   $Id: wr_atalle.c,v 1.17 2004/02/12 06:09:10 David Exp $     
     7715- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7716+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    77177717  * 
    77187718  *   Copyright (C) 1997 University of Chicago.  
     
    77797779 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    77807780 /*  
    7781 - *   $Id: write_allb.c,v 1.15 2003/09/05 22:34:31 gropp Exp $     
    7782 + *   $Id: write_allb.c,v 1.16 2004/02/12 06:09:12 David Exp $     
     7781- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7782+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    77837783  * 
    77847784  *   Copyright (C) 1997 University of Chicago.  
     
    79167916 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    79177917 /*  
    7918 - *   $Id: write_alle.c,v 1.15 2003/09/05 22:34:32 gropp Exp $     
    7919 + *   $Id: write_alle.c,v 1.18 2004/03/17 20:31:27 gropp Exp $     
     7918- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7919+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    79207920  * 
    79217921  *   Copyright (C) 1997 University of Chicago.  
     
    79847984 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    79857985 /*  
    7986 - *   $Id: write_at.c,v 1.20 2003/09/08 21:29:22 gropp Exp $     
    7987 + *   $Id: write_at.c,v 1.21 2004/02/12 06:09:15 David Exp $     
     7986- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     7987+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    79887988  * 
    79897989  *   Copyright (C) 1997 University of Chicago.  
     
    81838183 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    81848184 /*  
    8185 - *   $Id: write_ordb.c,v 1.20 2003/09/25 13:25:11 gropp Exp $     
    8186 + *   $Id: write_ordb.c,v 1.21 2004/02/12 06:09:17 David Exp $     
     8185- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     8186+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    81878187  * 
    81888188  *   Copyright (C) 1997 University of Chicago.  
     
    83518351 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    83528352 /*  
    8353 - *   $Id: write_orde.c,v 1.15 2003/09/08 13:35:05 gropp Exp $     
    8354 + *   $Id: write_orde.c,v 1.16 2004/02/12 06:09:19 David Exp $     
     8353- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     8354+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    83558355  * 
    83568356  *   Copyright (C) 1997 University of Chicago.  
     
    84178417 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 
    84188418 /*  
    8419 - *   $Id: write_sh.c,v 1.19 2003/09/15 13:33:36 gropp Exp $     
    8420 + *   $Id: write_sh.c,v 1.21 2004/02/20 19:47:59 gropp Exp $     
     8419- *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
     8420+ *   $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $     
    84218421  * 
    84228422  *   Copyright (C) 1997 University of Chicago.  
  • branches/cu-security-branch/doc/design

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/doc/design/concepts.tex

    r7956 r8330  
    2424\maketitle 
    2525 
    26 \begin{verbatim}$Id: concepts.tex,v 1.3.20.2 2009-09-02 20:15:50 nlmills Exp $\end{verbatim} 
     26\begin{verbatim}$Id: concepts.tex,v 1.3.20.3 2010-05-21 17:33:53 nlmills Exp $\end{verbatim} 
    2727\section{Introduction} 
    2828 
  • branches/cu-security-branch/doc/design/handle-allocator.tex

    r7956 r8330  
    2222\begin{document} 
    2323\maketitle 
    24 \begin{verbatim}$Id: handle-allocator.tex,v 1.1.72.2 2009-09-02 20:15:50 nlmills Exp $\end{verbatim} 
     24\begin{verbatim}$Id: handle-allocator.tex,v 1.1.72.3 2010-05-21 17:33:53 nlmills Exp $\end{verbatim} 
    2525 
    2626\section{Introduction} 
  • branches/cu-security-branch/doc/doxygen

    • Property svn:ignore set to
      pvfs2-doxygen.conf
  • branches/cu-security-branch/doc/random

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/examples

    • Property svn:ignore set to
      fs.conf
      pvfs2-server.rc
  • branches/cu-security-branch/include/pvfs2-debug.h

    r7956 r8330  
    7676#define GOSSIP_DIRECTIO_DEBUG          ((uint64_t)1 << 54) 
    7777#define GOSSIP_MGMT_DEBUG              ((uint64_t)1 << 55) 
    78 #define GOSSIP_MIRROR_DEBUG            ((uint64_t)1 << 56) 
    79 #define GOSSIP_SECURITY_DEBUG          ((uint64_t)1 << 57) 
    80 #define GOSSIP_GETCRED_DEBUG           ((uint64_t)1 << 58) 
     78#define GOSSIP_SECURITY_DEBUG          ((uint64_t)1 << 56) 
     79#define GOSSIP_GETCRED_DEBUG           ((uint64_t)1 << 57) 
    8180 
    8281/* NOTE: if you want your gossip flag to be controllable from  
  • branches/cu-security-branch/include/pvfs2-sysint.h

    r7956 r8330  
    462462    void *user_ptr); 
    463463 
    464 #define PVFS_isys_read(x1,x2,x3,x4,x5,x6,y,x7,x8,x9) \ 
    465 PVFS_isys_io(x1,x2,x3,x4,x5,x6,y,PVFS_IO_READ,x7,x8,x9) 
    466  
    467 #define PVFS_isys_write(x1,x2,x3,x4,x5,x6,y,x7,x8,x9) \ 
    468 PVFS_isys_io(x1,x2,x3,x4,x5,x6,y,PVFS_IO_WRITE,x7,x8,x9) 
     464#define PVFS_isys_read(x1,x2,x3,x4,x5,x6,y,x7,x8) \ 
     465PVFS_isys_io(x1,x2,x3,x4,x5,x6,y,PVFS_IO_READ,x7,x8) 
     466 
     467#define PVFS_isys_write(x1,x2,x3,x4,x5,x6,y,x7,x8) \ 
     468PVFS_isys_io(x1,x2,x3,x4,x5,x6,y,PVFS_IO_WRITE,x7,x8) 
    469469 
    470470PVFS_error PVFS_sys_io( 
  • branches/cu-security-branch/include/pvfs2-types.h

    r7956 r8330  
    77 * please update the PVFS2_PROTO_VERSION in pvfs2-req-proto.h accordingly 
    88 */ 
     9 
    910/** \file 
    1011 * 
     
    369370#define PVFS_ATTR_SYS_ALL_TIMES \ 
    370371((PVFS_ATTR_SYS_COMMON_ALL-PVFS_ATTR_SYS_TYPE) | PVFS_ATTR_SYS_ATIME_SET | PVFS_ATTR_SYS_MTIME_SET) 
     372 
     373 
     374/* Extended attribute flags */ 
     375#define PVFS_XATTR_CREATE  0x1 
     376#define PVFS_XATTR_REPLACE 0x2 
    371377 
    372378/* Extended attribute flags */ 
     
    441447#define PVFS_MAX_XATTR_VALUELEN  8192 /* Not the same as XATTR_SIZE_MAX defined 
    442448                                        by <linux/xattr.h> */  
    443 #define PVFS_MAX_XATTR_LISTLEN   8  /* Not the same as XATTR_LIST_MAX 
     449#define PVFS_MAX_XATTR_LISTLEN   8    /* Not the same as XATTR_LIST_MAX 
    444450                                          defined by <linux/xattr.h> */ 
    445451 
  • branches/cu-security-branch/module.mk.in

    r7956 r8330  
    11# This file is used by "make dist" to pass along parameters 
    22# to the Makefile in release snapshots 
     3DIST_RELEASE = 1 
  • branches/cu-security-branch/src/apps/admin

    • Property svn:ignore set to
      pvfs2-config
      module.mk
  • branches/cu-security-branch/src/apps/admin/pvfs2-cp.c

    r7956 r8330  
    328328        "\n-s <strip_size>\t\t\tsize of access to PVFS2 volume" 
    329329        "\n-n <num_datafiles>\t\tnumber of PVFS2 datafiles to use" 
    330         "\n-b <buffer_size in bytes>\thow much data to read/write at once" 
     330        "\n-b <buffer_size>\t\thow much data to read/write at once" 
    331331        "\n-t\t\t\t\tprint some timing information" 
    332332        "\n-v\t\t\t\tprint version number and exit\n"); 
  • branches/cu-security-branch/src/apps/admin/pvfs2-genconfig

    r7956 r8330  
    158158    # 
    159159    @components = $inputline =~ /(?:,?[ ]*([^{,]+(?:{[^}]+})?[^,]*))/g; 
    160     foreach my $comp_ws (@components) 
    161     { 
    162         my $comp; 
    163  
    164         # Trim leading and trailing whitespace 
    165         $comp = $comp_ws; 
    166         $comp =~ s/^\s+//; 
    167         $comp =~ s/\s+$//; 
    168  
     160    foreach my $comp (@components) 
     161    { 
    169162        # if we've got a component that has {..}, then expand. 
    170163        # match the prefix (hostname) and curly brackets 
  • branches/cu-security-branch/src/apps/admin/pvfs2-xattr.c

    r7956 r8330  
    33 *  
    44 * See COPYING in top-level directory. 
    5  * 
    6  * 03/19/07 - Added set and get for user.pvfs2.mirror.mode and ..mirror.copies. 
    7  *            Added get for user.pvfs2.mirror.handles and ..mirror.status 
    85 */ 
    96 
     
    3027#include "xattr-utils.h" 
    3128 
    32 #include "pvfs2-mirror.h" 
    33  
    3429#define VALBUFSZ 1024 
    3530 
     
    4742struct options 
    4843{ 
    49     PVFS_ds_keyval *key; 
    50     PVFS_ds_keyval *val; 
     44    PVFS_ds_keyval key; 
     45    PVFS_ds_keyval val; 
    5146    char* srcfile; 
    52     int get, text, key_count; 
     47    int get, text; 
    5348}; 
    5449 
     
    8580static struct options* parse_args(int argc, char* argv[]); 
    8681static int generic_open(file_object *obj); 
    87  
    88 static int pvfs2_eattr(int get 
    89                       ,file_object      *obj 
    90                       ,PVFS_ds_keyval   *key_p 
    91                       ,PVFS_ds_keyval   *val_p 
    92                       ,int key_count);  
    93  
     82static int pvfs2_eattr(int get, file_object *, PVFS_ds_keyval *key_p, 
     83        PVFS_ds_keyval *val_p); 
    9484static void usage(int argc, char** argv); 
    9585static int resolve_filename(file_object *obj, char *filename); 
     
    147137      return -1; 
    148138  } 
    149  
    150   if (!eattr_is_prefixed(user_opts->key[0].buffer)) 
    151   { 
    152       fprintf(stderr, "extended attribute key is not prefixed %s\n" 
    153                     , (char *) user_opts->key[0].buffer); 
     139  if (!eattr_is_prefixed(user_opts->key.buffer)) 
     140  { 
     141      fprintf(stderr, "extended attribute key is not prefixed %s\n", (char *) user_opts->key.buffer); 
    154142      return -1; 
    155143  } 
    156144  if (!user_opts->get) 
    157145  { 
    158       if (!permit_set(&user_opts->key[0])) 
     146      if (!permit_set(&user_opts->key)) 
    159147      { 
    160           fprintf(stderr, "Not permitted to set key %s\n" 
    161                         , (char *) user_opts->key[0].buffer); 
     148          fprintf(stderr, "Not permitted to set key %s\n", (char *) user_opts->key.buffer); 
    162149          return -1; 
    163150      } 
    164       if (modify_val(&user_opts->key[0], &user_opts->val[0]) < 0) 
     151      if (modify_val(&user_opts->key, &user_opts->val) < 0) 
    165152      { 
    166           fprintf(stderr, "Invalid value for user-settable attribute %s, %s\n" 
    167                         , (char *) user_opts->key[0].buffer 
    168                         , (char *) user_opts->val[0].buffer); 
     153          fprintf(stderr, "Invalid value for user-settable hint %s, %s\n", (char *) user_opts->key.buffer, (char *) user_opts->val.buffer); 
    169154          return -1; 
    170155      } 
    171156  } 
    172157 
    173     ret = pvfs2_eattr(user_opts->get 
    174                      ,&src 
    175                      ,user_opts->key 
    176                      ,user_opts->val 
    177                      ,user_opts->key_count); 
    178     if (ret != 0)  
    179     { 
    180         return ret; 
    181     } 
    182     if (user_opts->get && user_opts->text)   
    183     { 
    184         if (strncmp(user_opts->key[0].buffer 
    185                    ,"user.pvfs2.meta_hint" 
    186                    ,SPECIAL_METAFILE_HINT_KEYLEN) == 0) { 
    187             PVFS_metafile_hint *hint =  
    188                             (PVFS_metafile_hint *) user_opts->val[0].buffer; 
    189             printf("Metafile hints"); 
    190             if (hint->flags & PVFS_IMMUTABLE_FL) { 
    191                 printf(" :immutable file "); 
    192             } 
    193             if (hint->flags & PVFS_APPEND_FL) { 
    194                 printf(" :Append-only file "); 
    195             } 
    196             if (hint->flags & PVFS_NOATIME_FL) { 
    197                 printf(" :Atime updates disabled"); 
    198             } 
    199             printf("\n"); 
    200         } else if ( strncmp(user_opts->key[0].buffer 
    201                            ,"user.pvfs2.mirror.handles" 
    202                            ,sizeof("user.pvfs2.mirror.handles")) == 0) 
    203         { 
    204              PVFS_handle *myHandles = (PVFS_handle *)user_opts->val[0].buffer; 
    205              int copies = *(int *)user_opts->val[1].buffer; 
    206              int dfile_count = src.u.pvfs2.attr.dfile_count; 
    207              for (i=0; i<(copies * dfile_count); i++) 
    208              { 
    209                  printf("Handle(%d):%llu\n",i,llu(myHandles[i])); 
    210              } 
    211         } else if ( strncmp(user_opts->key[0].buffer 
    212                            ,"user.pvfs2.mirror.copies" 
    213                            ,sizeof("user.pvfs2.mirror.copies")) == 0) 
    214         { 
    215              int *myCopies = (int *)user_opts->val[0].buffer; 
    216              printf("Number of Mirrored Copies : %d\n",*myCopies); 
    217         } else if ( strncmp(user_opts->key[0].buffer 
    218                            ,"user.pvfs2.mirror.status" 
    219                            ,sizeof("user.pvfs2.mirror.status")) == 0) 
    220         { 
    221              int copies = *(int *)user_opts->val[1].buffer; 
    222              int dfile_count = src.u.pvfs2.attr.dfile_count; 
    223              PVFS_handle *status = (PVFS_handle *)user_opts->val[0].buffer; 
    224              for (i=0; i<(dfile_count * copies); i++) 
    225                  printf("src handle(%d) : status(%s) : value(%llu)\n" 
    226                        ,i 
    227                        ,status[i]==0?"usable":"UNusable" 
    228                        ,llu(status[i])); 
    229         } else if ( strncmp(user_opts->key[0].buffer 
    230                            ,"user.pvfs2.mirror.mode" 
    231                            , sizeof("user.pvfs2.mirror.mode")) == 0) 
    232         { 
    233              printf("Mirroring Mode : "); 
    234              switch(*(MIRROR_MODE *)user_opts->val[0].buffer) 
    235              { 
    236                 case NO_MIRRORING : 
    237                 { 
    238                     printf("Turned OFF\n"); 
    239                     break; 
    240                 } 
    241                 case MIRROR_ON_IMMUTABLE : 
    242                 { 
    243                     printf("Create Mirror when IMMUTABLE is set\n"); 
    244                     break; 
    245                 } 
    246                 default: 
    247                 { 
    248                     printf("Unknown mode(%d)\n" 
    249                           ,*(int *)user_opts->val[0].buffer); 
    250                     break; 
    251                 } 
    252              }/*end switch*/ 
    253         } else { 
    254             printf("key : \"%s\" \tValue : \"%s\"\n", 
    255                     (char *)user_opts->key[0].buffer, 
    256                     (char *)user_opts->val[0].buffer); 
    257         } 
    258     } 
     158  ret = pvfs2_eattr(user_opts->get, &src, &user_opts->key, &user_opts->val); 
     159  if (ret != 0)  
     160  { 
     161      return ret; 
     162  } 
     163  if (user_opts->get && user_opts->text)   
     164  { 
     165      if (strncmp(user_opts->key.buffer, "user.pvfs2.meta_hint", SPECIAL_METAFILE_HINT_KEYLEN) == 0) { 
     166          PVFS_metafile_hint *hint = (PVFS_metafile_hint *) user_opts->val.buffer; 
     167          printf("Metafile hints: "); 
     168          if (hint->flags & PVFS_IMMUTABLE_FL) { 
     169              printf("immutable file "); 
     170          } 
     171          if (hint->flags & PVFS_APPEND_FL) { 
     172              printf("Append-only file "); 
     173          } 
     174          if (hint->flags & PVFS_NOATIME_FL) { 
     175              printf("Atime updates disabled."); 
     176          } 
     177          printf("\n"); 
     178      } else { 
     179          printf("key:%s Value:\n%s\n", 
     180                 (char *)user_opts->key.buffer, 
     181                 (char *)user_opts->val.buffer); 
     182      } 
     183  } 
     184 
     185  for (i = 0; i < ncreds; i++) 
     186  { 
     187      PINT_cleanup_credential(&creds[i]); 
     188  } 
     189  free(creds); 
    259190  PVFS_sys_finalize(); 
    260191  return(ret); 
     
    263194static int modify_val(PVFS_ds_keyval *key_p, PVFS_ds_keyval *val_p) 
    264195{ 
    265     if (strncmp(key_p->buffer,"user.pvfs2.meta_hint" 
    266                              , SPECIAL_METAFILE_HINT_KEYLEN) == 0) 
     196    if (strncmp(key_p->buffer, "user.pvfs2.meta_hint", SPECIAL_METAFILE_HINT_KEYLEN) == 0) 
    267197    { 
    268198        PVFS_metafile_hint hint; 
     
    284214        memcpy(val_p->buffer, &hint, sizeof(hint)); 
    285215        val_p->buffer_sz = sizeof(hint); 
    286         gossip_err("From xattr, My key value is %llu.\n", 
    287                  llu(hint.flags)); 
    288     } else if (strncmp(key_p->buffer,"user.pvfs2.mirror.mode" 
    289                                     ,sizeof("user.pvfs2.mirror.mode")) == 0) 
    290     { 
    291        printf("Setting mirror mode to %d\n",*(int *)val_p->buffer); 
    292     } else if (strncmp(key_p->buffer,"user.pvfs2.mirror.copies" 
    293                                     ,sizeof("user.pvfs2.mirror.mode")) == 0) 
    294     { 
    295        printf("Setting number of mirrored copies to %d\n" 
    296              ,*(int *)val_p->buffer); 
    297     } 
    298  
    299  
     216    } 
    300217    return 0; 
    301218} 
     
    316233 * returns zero on success and negative one on failure 
    317234 */ 
    318 static int pvfs2_eattr(int get 
    319                       ,file_object      *obj 
    320                       ,PVFS_ds_keyval   *key_p 
    321                       ,PVFS_ds_keyval   *val_p 
    322                       ,int key_count)  
     235static int pvfs2_eattr(int get, file_object *obj, PVFS_ds_keyval *key_p, 
     236        PVFS_ds_keyval *val_p)  
    323237{ 
    324238  int ret = -1; 
     
    329243      { 
    330244#ifndef HAVE_FGETXATTR_EXTRA_ARGS 
    331         if ((ret = fgetxattr(obj->u.ufs.fd 
    332                             ,key_p->buffer 
    333                             ,val_p->buffer 
    334                             ,val_p->buffer_sz)) < 0) 
     245        if ((ret = fgetxattr(obj->u.ufs.fd, key_p->buffer, val_p->buffer, val_p->buffer_sz)) < 0) 
    335246#else 
    336         if ((ret = fgetxattr(obj->u.ufs.fd 
    337                             ,key_p->buffer 
    338                             ,val_p->buffer 
    339                             ,val_p->buffer_sz  
    340                             ,0 
    341                             ,0)) < 0) 
     247        if ((ret = fgetxattr(obj->u.ufs.fd, key_p->buffer, val_p->buffer, val_p->buffer_sz, 0, 0)) < 0) 
    342248#endif 
    343249        { 
     
    366272  else 
    367273  { 
    368       if (get == 1 && key_count == 1) 
     274      if (get == 1) 
    369275      { 
    370           ret = PVFS_sys_geteattr(obj->u.pvfs2.ref, obj->u.pvfs2.cred, key_p, val_p, NULL); 
    371       } else if (get == 1 && key_count == 2) 
    372       { 
    373           PVFS_sysresp_geteattr *resp = malloc(sizeof(*resp)); 
    374           if (!resp) 
    375           { 
    376              fprintf(stderr,"Unable to allocate resp structure.\n"); 
    377              exit(EXIT_FAILURE); 
    378           } 
    379           memset(resp,0,sizeof(*resp)); 
    380           resp->val_array = val_p; 
    381           resp->err_array = malloc(2 * sizeof(PVFS_error)); 
    382           if (!resp->err_array) 
    383           { 
    384              fprintf(stderr,"Unable to allocate err_array.\n"); 
    385              exit(EXIT_FAILURE); 
    386           } 
    387           memset(resp->err_array,0,sizeof(2 * sizeof(PVFS_error))); 
    388            
    389           ret = PVFS_sys_geteattr_list(obj->u.pvfs2.ref 
    390                                       ,obj->u.pvfs2.cred 
    391                                       ,key_count 
    392                                       ,key_p 
    393                                       ,resp 
    394                                       ,NULL ); 
    395       } else { 
    396           ret = PVFS_sys_seteattr(obj->u.pvfs2.ref, obj->u.pvfs2.cred, key_p, val_p, 0, NULL); 
     276          ret = PVFS_sys_geteattr(obj->u.pvfs2.ref, obj->u.pvfs2.cred,  
     277                                  key_p, val_p, NULL); 
     278      } 
     279      else { 
     280          ret = PVFS_sys_seteattr(obj->u.pvfs2.ref, obj->u.pvfs2.cred,  
     281                                  key_p, val_p, 0, NULL); 
    397282      } 
    398283 
     
    427312    memset(tmp_opts, 0, sizeof(struct options)); 
    428313 
    429     /*create one key structure*/ 
    430     tmp_opts->key = malloc(sizeof(PVFS_ds_keyval)); 
    431     if (!tmp_opts->key) 
    432     { 
    433         fprintf(stderr,"Unable to allocate tmp_opts->key.\n"); 
    434         exit(EXIT_FAILURE); 
    435     } 
    436     memset(tmp_opts->key,0,sizeof(PVFS_ds_keyval)); 
    437  
    438     /*create one val structure*/ 
    439     tmp_opts->val = malloc(sizeof(PVFS_ds_keyval)); 
    440     if (!tmp_opts->val) 
    441     { 
    442         fprintf(stderr,"Unable to allocate tmp_opts->val.\n"); 
    443         exit(EXIT_FAILURE); 
    444     } 
    445     memset(tmp_opts->val,0,sizeof(PVFS_ds_keyval)); 
    446  
    447     /*set default key_count*/ 
    448     tmp_opts->key_count = 1; 
    449  
    450314    /* fill in defaults */ 
     315    memset(&tmp_opts->key, 0, sizeof(PVFS_ds_keyval)); 
     316    memset(&tmp_opts->val, 0, sizeof(PVFS_ds_keyval)); 
    451317    tmp_opts->srcfile = strdup(argv[argc-1]); 
    452318    tmp_opts->get = 1; 
     
    463329                break; 
    464330            case 'k': 
    465                 tmp_opts->key[0].buffer = strdup(optarg); 
    466                 tmp_opts->key[0].buffer_sz = strlen(tmp_opts->key[0].buffer) + 1; 
     331                tmp_opts->key.buffer = strdup(optarg); 
     332                tmp_opts->key.buffer_sz = strlen(tmp_opts->key.buffer) + 1; 
    467333                break; 
    468334            case 'v': 
    469                 if (strncmp(tmp_opts->key[0].buffer 
    470                            ,"user.pvfs2.mirror.mode" 
    471                            ,sizeof("user.pvfs2.mirror.mode")) == 0 || 
    472                     strncmp(tmp_opts->key[0].buffer 
    473                            ,"user.pvfs2.mirror.copies" 
    474                            ,sizeof("user.pvfs2.mirror.copies")) == 0) 
    475                 { /*convert string argument into numeric argument*/ 
    476                   tmp_opts->val[0].buffer = malloc(sizeof(int)); 
    477                   if (!tmp_opts->val[0].buffer) 
    478                   { 
    479                      printf("Unable to allocate memory for key value.\n"); 
    480                      exit(EXIT_FAILURE); 
    481                   } 
    482                   memset(tmp_opts->val[0].buffer,0,sizeof(int)); 
    483                   *(int *)tmp_opts->val[0].buffer = atoi(optarg); 
    484                   tmp_opts->val[0].buffer_sz = sizeof(int); 
    485                   break; 
    486                 } else { 
    487                   tmp_opts->val[0].buffer = strdup(optarg); 
    488                   tmp_opts->val[0].buffer_sz = strlen(tmp_opts->val[0].buffer); 
    489                   break; 
    490                 } 
     335                tmp_opts->val.buffer = strdup(optarg); 
     336                tmp_opts->val.buffer_sz = strlen(tmp_opts->val.buffer) + 1; 
     337                break; 
    491338            case('?'): 
    492339                printf("?\n"); 
     
    495342        } 
    496343    } 
    497  
    498     /*ensure that the given mode is supported by PVFS*/ 
    499     if (!tmp_opts->get && 
    500          strcmp(tmp_opts->key[0].buffer,"user.pvfs2.mirror.mode") == 0) 
    501     { 
    502        if (*(int *)tmp_opts->val[0].buffer < BEGIN_MIRROR_MODE || 
    503            *(int *)tmp_opts->val[0].buffer > END_MIRROR_MODE ) 
    504        { 
    505           fprintf(stderr,"Invalid Mirror Mode ==> %d\n" 
    506                          "\tValid Modes\n" 
    507                          "\t1. %d == No Mirroring\n" 
    508                          "\t2. %d == Mirroring on Immutable\n" 
    509                         ,*(int *)tmp_opts->val[0].buffer 
    510                         ,NO_MIRRORING,MIRROR_ON_IMMUTABLE); 
    511  
    512           exit(EXIT_FAILURE); 
    513        } 
    514     } 
    515  
    516344    if (tmp_opts->get == 1) 
    517345    { 
    518         /*if user wants mirror.handles or mirror.status, then we must also */ 
    519         /*retrieve the number of copies, so we know how to display the     */ 
    520         /*information properly.                                            */ 
    521         if (strcmp(tmp_opts->key[0].buffer,"user.pvfs2.mirror.handles") == 0 || 
    522             strcmp(tmp_opts->key[0].buffer,"user.pvfs2.mirror.status") == 0 ) 
    523         { 
    524            tmp_opts->key_count = 2; 
    525            PVFS_ds_keyval *myKeys = malloc(tmp_opts->key_count *  
    526                                            sizeof(PVFS_ds_keyval)); 
    527            if (!myKeys) 
    528            { 
    529                fprintf(stderr,"Unable to allocate myKeys.\n"); 
    530                exit(EXIT_FAILURE); 
    531            } 
    532            memset(myKeys,0,sizeof(tmp_opts->key_count * 
    533                                   sizeof(PVFS_ds_keyval))); 
    534            myKeys[0] = *tmp_opts->key; 
    535            myKeys[1].buffer = strdup("user.pvfs2.mirror.copies"); 
    536            myKeys[1].buffer_sz = sizeof("user.pvfs2.mirror.copies"); 
    537            free(tmp_opts->key); 
    538            tmp_opts->key = myKeys; 
    539         }/*end if handles or status*/ 
    540  
    541          
    542  
    543         tmp_opts->val[0].buffer = calloc(1, VALBUFSZ); 
    544         if (!tmp_opts->val[0].buffer) 
    545         { 
    546            fprintf(stderr,"Unable to allocate tmp_opts->val[0].buffer.\n"); 
    547            exit(EXIT_FAILURE); 
    548         } 
    549         tmp_opts->val[0].buffer_sz = VALBUFSZ; 
    550          
    551         if (tmp_opts->key_count == 2) 
    552         { 
    553            PVFS_ds_keyval *myVals = malloc(tmp_opts->key_count *  
    554                                            sizeof(PVFS_ds_keyval)); 
    555            if (!myVals) 
    556            { 
    557                fprintf(stderr,"Unable to allocate myVals.\n"); 
    558                exit(EXIT_FAILURE); 
    559            } 
    560            memset(myVals,0,sizeof(tmp_opts->key_count * 
    561                                   sizeof(PVFS_ds_keyval))); 
    562            myVals[0] = *tmp_opts->val; 
    563            free(tmp_opts->val); 
    564  
    565            myVals[1].buffer = malloc(sizeof(int)); 
    566            if (!myVals[1].buffer) 
    567            { 
    568               fprintf(stderr,"Unable to allocate myVals[1].buffer.\n"); 
    569               exit(EXIT_FAILURE); 
    570            } 
    571            myVals[1].buffer_sz = sizeof(int); 
    572            tmp_opts->val = myVals; 
    573          }/*end if*/   
    574     } else { 
    575         if (tmp_opts->val[0].buffer == NULL) 
    576         { 
    577             fprintf(stderr, "Please specify value if setting extended " 
    578                             "attributes\n"); 
     346        tmp_opts->val.buffer = calloc(1, VALBUFSZ); 
     347        tmp_opts->val.buffer_sz = VALBUFSZ; 
     348        if (tmp_opts->val.buffer == NULL) 
     349        { 
     350            fprintf(stderr, "Could not allocate val\n"); 
     351            exit(EXIT_FAILURE); 
     352        } 
     353    } 
     354    else { 
     355        if (tmp_opts->val.buffer == NULL) 
     356        { 
     357            fprintf(stderr, "Please specify value if setting extended attributes\n"); 
    579358            usage(argc, argv); 
    580359            exit(EXIT_FAILURE); 
    581360        } 
    582361    } 
    583     if (tmp_opts->key[0].buffer == NULL) 
     362    if (tmp_opts->key.buffer == NULL) 
    584363    { 
    585364        fprintf(stderr, "Please specify key if getting extended attributes\n"); 
     
    593372static void usage(int argc, char** argv) 
    594373{ 
    595     fprintf(stderr,"Usage: %s -s {set xattrs} -k <key> -v <val> " 
    596                    "-t {print attributes} filename\n",argv[0]); 
     374    fprintf(stderr,"Usage: %s -s {set xattrs} -k <key> -v <val> -t {print attributes} filename\n",argv[0]); 
    597375    return; 
    598376} 
  • branches/cu-security-branch/src/apps/fuse/pvfs2fuse.c

    r7956 r8330  
    1010 *           Sumit Narayan 
    1111 * 
    12  *   $Date: 2009-09-02 20:15:54 $ 
    13  *   $Revision: 1.3.28.2 $ 
     12 *   $Date: 2010-05-21 17:33:57 $ 
     13 *   $Revision: 1.3.28.3 $ 
    1414 * 
    1515 *   Documentation: http://www.engr.uconn.edu/~sun03001/docs/pvfs2fuse-rpt.pdf 
    1616 */ 
    1717 
    18 /* char *pvfs2fuse_version = "$Id: pvfs2fuse.c,v 1.3.28.2 2009-09-02 20:15:54 nlmills Exp $"; */ 
     18/* char *pvfs2fuse_version = "$Id: pvfs2fuse.c,v 1.3.28.3 2010-05-21 17:33:57 nlmills Exp $"; */ 
    1919char *pvfs2fuse_version = "0.01"; 
    2020 
     
    10481048                     { 
    10491049                         fprintf(stderr, "PVFS2FUSE requires mountpoint as argument\n"); 
    1050                          abort(); 
     1050                         abort() 
    10511051                     } 
    10521052 
  • branches/cu-security-branch/src/apps/karma

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/apps/kernel/linux

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/apps/vis

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/client/sysint

    • Property svn:ignore set to
      sys-remove.c
      sys-set-eattr.c
      server-get-config.c
      mgmt-iterate-handles-list.c
      client-job-timer.c
      sys-truncate.c
      sys-io.c
      sys-small-io.c
      perf-count-timer.c
      sys-flush.c
      sys-create.c
      sys-getcred.c
      mgmt-noop.c
      sys-lookup.c
      mgmt-get-dfile-array.c
      sys-get-eattr.c
      mgmt-remove-object.c
      remove.c
      mgmt-perf-mon-list.c
      mgmt-create-dirent.c
      mgmt-remove-dirent.c
      sys-statfs.c
      sys-mkdir.c
      sys-symlink.c
      sys-setattr.c
      sys-del-eattr.c
      sys-rename.c
      fs-add.c
      mgmt-get-dirdata-handle.c
      module.mk
      sys-getattr.c
      pint-sysdev-unexp.c
      mgmt-setparam-list.c
      mgmt-event-mon-list.c
      mgmt-statfs-list.c
      sys-readdir.c
      sys-list-eattr.c
      sys-readdirplus.c
  • branches/cu-security-branch/src/client/sysint/client-state-machine.h

    r7956 r8330  
    4040 * send or receive request messages. 
    4141 */ 
    42 #ifndef PVFS2_CLIENT_JOB_BMI_TIMEOUT_DEFAULT 
    4342#define PVFS2_CLIENT_JOB_BMI_TIMEOUT_DEFAULT 30 
    44 #endif 
    4543 
    4644/* Default number of times to retry restartable client operations. */ 
  • branches/cu-security-branch/src/client/sysint/mgmt-iterate-handles-list.sm

    r7956 r8330  
    182182    foreach_msgpair(&sm_p->msgarray_op, msg_p, i) 
    183183    { 
    184 skipped: 
     184 
    185185        /* skip servers that have already reached end */ 
    186186        /* TODO: use a better #define or something for ITERATE_END */ 
    187         if(sm_p->u.iterate_handles_list.position_array[j] 
     187        if(sm_p->u.iterate_handles_list.position_array[i] 
    188188            == PVFS_ITERATE_END) 
    189189        { 
    190190            sm_p->msgarray_op.count--; 
    191             sm_p->u.iterate_handles_list.handle_count_array[j] = 0; 
    192             j++; 
    193             goto skipped; 
     191            sm_p->u.iterate_handles_list.handle_count_array[i] = 0; 
    194192        } 
    195193        else 
     
    199197                capability, 
    200198                sm_p->u.iterate_handles_list.fs_id, 
    201                 sm_p->u.iterate_handles_list.handle_count_array[j], 
    202                 sm_p->u.iterate_handles_list.position_array[j], 
     199                sm_p->u.iterate_handles_list.handle_count_array[i], 
     200                sm_p->u.iterate_handles_list.position_array[i], 
    203201                sm_p->u.iterate_handles_list.flags, 
    204202                sm_p->hints); 
     203            j++; 
    205204            msg_p->fs_id = sm_p->u.iterate_handles_list.fs_id; 
    206205            msg_p->handle = PVFS_HANDLE_NULL; 
    207206            msg_p->retry_flag = PVFS_MSGPAIR_RETRY; 
    208207            msg_p->comp_fn = iterate_handles_list_comp_fn; 
    209             msg_p->svr_addr = sm_p->u.iterate_handles_list.addr_array[j]; 
    210             j++; 
     208            msg_p->svr_addr = sm_p->u.iterate_handles_list.addr_array[i]; 
    211209        } 
    212210    } 
  • branches/cu-security-branch/src/client/sysint/sys-io.sm

    r7956 r8330  
    444444        struct PINT_smcb *smcb, job_status_s *js_p) 
    445445{ 
    446  
    447446    struct PINT_client_sm *sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    448447    if (PINT_smcb_cancelled(smcb)) 
     
    795794 
    796795        cur_ctx->session_tag = PINT_util_get_next_tag(); 
     796 
    797797        cur_ctx->msg_recv_has_been_posted = 0; 
    798798        cur_ctx->msg_recv_in_progress = 0; 
  • branches/cu-security-branch/src/client/sysint/sys-set-eattr.sm

    r7956 r8330  
    8080    { 
    8181        int i = 0; 
    82         int j; char *valBuf = (char *)val_array[i].buffer; 
    83         gossip_debug(GOSSIP_SETEATTR_DEBUG,"Setting extended attributes:\n"); 
     82        gossip_debug(GOSSIP_SETEATTR_DEBUG, 
     83                     "Setting extended attributes:\n"); 
    8484        for(; i < nkey; ++i) 
    8585        { 
    86             gossip_debug(GOSSIP_SETEATTR_DEBUG,"eattr[%d]: key=%s\n" 
    87                                               , i 
    88                                               ,(char *)key_array[i].buffer); 
    89             for (j=0; j<val_array[i].buffer_sz; j++) 
    90                 gossip_debug(GOSSIP_SETEATTR_DEBUG,"          val[%d]=%#x\n" 
    91                                                   ,j 
    92                                                   ,(unsigned int)valBuf[j]); 
    93         }/*end for*/ 
    94     } /*end if*/ 
     86            gossip_debug(GOSSIP_SETEATTR_DEBUG, 
     87                         "eattr[%d]: key=%s val=%.*s\n", 
     88                         i, (char *)key_array[i].buffer, 
     89                         val_array[i].buffer_sz, (char *)val_array[i].buffer); 
     90        } 
     91    } 
    9592 
    9693    if ((ref.handle == PVFS_HANDLE_NULL) || 
  • branches/cu-security-branch/src/common/dotconf

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/common/events/debug.h

    r7956 r8330  
    11/************************************* 
    22 * File         : debug.h 
    3  * Version      : $Id: debug.h,v 1.2.30.2 2009-09-02 20:15:57 nlmills Exp $ 
     3 * Version      : $Id: debug.h,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 
    44 ************************************/ 
    55 
  • branches/cu-security-branch/src/common/events/fmt_fsm.c

    r7956 r8330  
    11/***************************************************** 
    22 * File    : fmt_fsm.cpp    
    3  * Version : $Id: fmt_fsm.c,v 1.2.30.2 2009-09-02 20:15:57 nlmills Exp $ 
     3 * Version : $Id: fmt_fsm.c,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 
    44 ****************************************************/ 
    55 
  • branches/cu-security-branch/src/common/events/fmt_fsm.h

    r7956 r8330  
    11/***************************************************** 
    22 * File    : fmt_fsm.h    
    3  * Version : $Id: fmt_fsm.h,v 1.2.30.2 2009-09-02 20:15:57 nlmills Exp $ 
     3 * Version : $Id: fmt_fsm.h,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 
    44 ****************************************************/ 
    55 
     
    222222/*************************************************************************** 
    223223 * $RCSfile: fmt_fsm.h,v $   $Author: nlmills $ 
    224  * $Revision: 1.2.30.2 $   $Date: 2009-09-02 20:15:57 $ 
     224 * $Revision: 1.2.30.3 $   $Date: 2010-05-21 17:34:01 $ 
    225225 ***************************************************************************/ 
  • branches/cu-security-branch/src/common/events/pvfs_tau_api.c

    r7956 r8330  
    11/***************************************************** 
    22 * File    : pvfs_tau_api.cpp  
    3  * Version : $Id: pvfs_tau_api.c,v 1.2.30.2 2009-09-02 20:15:57 nlmills Exp $ 
     3 * Version : $Id: pvfs_tau_api.c,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 
    44 ****************************************************/ 
    55 
  • branches/cu-security-branch/src/common/events/pvfs_tau_api.h

    r7956 r8330  
    11/***************************************************** 
    22 * File    : pvfs_tau_api.h  
    3  * Version : $Id: pvfs_tau_api.h,v 1.2.30.2 2009-09-02 20:15:57 nlmills Exp $ 
     3 * Version : $Id: pvfs_tau_api.h,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 
    44 ****************************************************/ 
    55 
  • branches/cu-security-branch/src/common/gen-locks

    • Property svn:ignore set to
      *.mk
  • branches/cu-security-branch/src/common/gossip

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/common/id-generator

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/common/llist

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/common/misc

    • Property svn:ignore set to
      msgpairarray.c
      void.c
      module.mk
  • branches/cu-security-branch/src/common/misc/msgpairarray.h

    r7956 r8330  
    4949    /* server address */ 
    5050    PVFS_BMI_addr_t svr_addr; 
    51  
    52     /*session identifier between send and rcvs*/ 
    53     /*note:  server-side i/o machine uses the session_tag as the flow */ 
    54     /*descriptor tag.                                                 */ 
    55     bmi_msg_tag_t session_tag; 
    5651 
    5752    /* req and encoded_req are used to send a request */ 
  • branches/cu-security-branch/src/common/misc/msgpairarray.sm

    r7956 r8330  
    9494    int i = 0; 
    9595    PINT_sm_msgpair_state *msg_p = NULL; 
    96  
    97     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing msgpairarray_init...\n"); 
    98     gossip_debug(GOSSIP_MIRROR_DEBUG,"\tbase frame:%d\tframe count:%d\n" 
    99                                     ,smcb->base_frame,smcb->frame_count); 
    10096 
    10197    gossip_debug(GOSSIP_MSGPAIR_DEBUG, "(%p) msgpairarray state: init " 
     
    250246        session_tag = PINT_util_get_next_tag(); 
    251247 
    252         /*store the session tag for this msgpair, so the msgpair completion */ 
    253         /*function can pass it to the caller of msgpairarray.               */ 
    254         msg_p->session_tag = session_tag; 
    255  
    256248        gossip_debug(GOSSIP_MSGPAIR_DEBUG, "%s: sm %p msgpair %d: " 
    257249                     "posting recv\n", __func__, smcb, i); 
     
    497489    gossip_debug(GOSSIP_MSGPAIR_DEBUG, "(%p) msgpairarray state: " 
    498490                 "completion_fn\n", smcb); 
    499     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing msgpairarray_completion_fn..\n"); 
    500491 
    501492    for (i = 0; i < mop->count; i++) 
     
    555546        if (msg_p->comp_fn != NULL) 
    556547        { 
    557             gossip_debug(GOSSIP_MIRROR_DEBUG,"\texecuting msg_p->comp_fn..\n"); 
    558548            /* If we call the completion function, store the result on 
    559549             * a per message pair basis.  Also store some non-zero 
  • branches/cu-security-branch/src/common/misc/pint-cached-config.c

    r7956 r8330  
    17881788} 
    17891789 
    1790 /* PINT_cached_config_server_names() 
    1791  * 
    1792  * Returns a list of pointers to the IO server names currently running in this    
    1793  * file system. 
    1794  * 
    1795  * returns 0 on success, -PVFS_error on failure 
    1796  */ 
    1797 int PINT_cached_config_io_server_names( char ***list 
    1798                                       , int *size 
    1799                                       , PVFS_fs_id fsid) 
    1800 { 
    1801     int i; 
    1802     struct qlist_head *hash_link = NULL; 
    1803     struct config_fs_cache_s *cur_config_cache = NULL; 
    1804  
    1805     assert(PINT_fsid_config_cache_table); 
    1806  
    1807     hash_link = qhash_search(PINT_fsid_config_cache_table,&(fsid)); 
    1808     if(!hash_link) 
    1809     { 
    1810         return(-PVFS_ENOENT); 
    1811     } 
    1812  
    1813     cur_config_cache = qlist_entry( 
    1814         hash_link, struct config_fs_cache_s, hash_link); 
    1815  
    1816     assert(cur_config_cache); 
    1817  
    1818     *size = cur_config_cache->io_server_count; 
    1819  
    1820     *list = malloc(sizeof(char *) * (*size)); 
    1821  
    1822     if (! (*list) ) 
    1823        return(-PVFS_ENOMEM); 
    1824  
    1825     memset(*list,0,sizeof(char *) * (*size)); 
    1826  
    1827     for (i=0; i<(*size); i++) 
    1828     { 
    1829         /*addr_string originates from the alias mapping->bmi_address*/ 
    1830         (*list)[i] = cur_config_cache->io_server_array[i].addr_string; 
    1831     } 
    1832  
    1833    return(0); 
    1834 } 
    1835  
    18361790/* 
    18371791 * Local variables: 
  • branches/cu-security-branch/src/common/misc/pint-cached-config.h

    r7956 r8330  
    136136    struct server_configuration_s *config); 
    137137 
    138 int PINT_cached_config_io_server_names( 
    139     char ***list,  
    140     int *size, 
    141     PVFS_fs_id fsid); 
    142  
    143138#endif /* __PINT_CACHED_CONFIG_H */ 
    144139 
  • branches/cu-security-branch/src/common/misc/pvfs2-debug.c

    r7956 r8330  
    117117    /* Debug the bstream code */ 
    118118    { "bstream", GOSSIP_BSTREAM_DEBUG }, 
    119     /* Debug mirroring operations */ 
    120     { "mirror",GOSSIP_MIRROR_DEBUG }, 
    121119    /* Debug trove in direct io mode */ 
    122120    {"directio", GOSSIP_DIRECTIO_DEBUG}, 
  • branches/cu-security-branch/src/common/misc/pvfs2-internal.h

    r7956 r8330  
    9494#define SPECIAL_METAFILE_HINT_KEYSTR    "meta_hint\0" 
    9595#define SPECIAL_METAFILE_HINT_KEYLEN    21 
    96 #define SPECIAL_MIRROR_PARAMS_KEYSTR    "mirror\0" 
    97 #define SPECIAL_MIRROR_PARAMS_KEYLEN    18 
    9896 
    9997#define IO_MAX_REGIONS 64 
  • branches/cu-security-branch/src/common/misc/pvfs2-util.c

    r7956 r8330  
    559559        *tmp = 0; 
    560560        mntent->mnt_opts = strdup("rw"); 
    561         mntent->fs_id = PVFS_FS_ID_NULL; 
    562561        return &s_stat_tab_array[0]; 
    563562    } 
  • branches/cu-security-branch/src/common/misc/state-machine.h

    r7956 r8330  
    5050    SM_RUN     = 9 
    5151}; 
    52  
    53 /*define msgpairarray parameters for server-to-server requests*/ 
    54 #define PINT_serv_init_msgarray_params(sm_p, __fsid)             \ 
    55 do {                                                             \ 
    56    PINT_sm_msgpair_params *mpp = &sm_p->msgarray_op.params;      \ 
    57    struct server_configuration_s *server_config =                \ 
    58         get_server_config_struct();                              \ 
    59    mpp->job_context = server_job_context;                        \ 
    60    if (server_config)                                            \ 
    61    {                                                             \ 
    62       mpp->job_timeout = server_config->client_job_bmi_timeout;  \ 
    63       mpp->retry_limit = server_config->client_retry_limit;      \ 
    64       mpp->retry_delay = server_config->client_retry_delay_ms;   \ 
    65    }                                                             \ 
    66    else                                                          \ 
    67    {                                                             \ 
    68       mpp->job_timeout = PVFS2_CLIENT_JOB_BMI_TIMEOUT_DEFAULT;   \ 
    69       mpp->retry_limit = PVFS2_CLIENT_RETRY_LIMIT_DEFAULT;       \ 
    70       mpp->retry_delay = PVFS2_CLIENT_RETRY_DELAY_MS_DEFAULT;    \ 
    71    }                                                             \ 
    72 } while (0)                                                       
    7352 
    7453/* these define things like stack size and so forth for the common 
     
    225204                        int *remaining); 
    226205 
    227 /* This macro is used in calls to PINT_sm_frame() */ 
     206/* This macro is used in calls to PINT_sm_fram() */ 
    228207#define PINT_FRAME_CURRENT 0 
    229 #define PINT_FRAME_TOP 1 
    230208 
    231209struct PINT_state_machine_s pvfs2_void_sm; 
  • branches/cu-security-branch/src/common/misc/str-utils.c

    r7956 r8330  
    144144 
    145145    /* initialize our starting position */ 
    146     if (*inout_segp == NULL) 
    147     { 
    148         ptr = pathname; 
    149     } 
    150     else if (*opaquep != NULL) 
    151     { 
    152         /* replace the '/', point just past it */ 
    153         ptr = (char *) *opaquep; 
    154         *ptr = '/'; 
    155         ptr++; 
    156     } 
    157     else 
    158         return -1; /* NULL *opaquep indicates last segment returned last time */ 
     146    if (*inout_segp == NULL) { 
     147        ptr = pathname; 
     148    } 
     149    else if (*opaquep != NULL) { 
     150        /* replace the '/', point just past it */ 
     151        ptr = (char *) *opaquep; 
     152        *ptr = '/'; 
     153        ptr++; 
     154    } 
     155    else return -1; /* NULL *opaquep indicates last segment returned last time */ 
    159156 
    160157    /* at this point, the string is back in its original state */ 
    161158 
    162159    /* jump past separators */ 
    163     while ((*ptr != '\0') && (*ptr == '/')) 
    164         ptr++; 
    165     if (*ptr == '\0') 
    166         return -1; /* all that was left was trailing '/'s */ 
     160    while ((*ptr != '\0') && (*ptr == '/')) ptr++; 
     161    if (*ptr == '\0') return -1; /* all that was left was trailing '/'s */ 
    167162 
    168163    *inout_segp = ptr; 
    169164 
    170165    /* find next separator */ 
    171     while ((*ptr != '\0') && (*ptr != '/')) 
    172         ptr++; 
    173     if (*ptr == '\0') 
    174         *opaquep = NULL; /* indicate last segment */ 
    175     else 
    176     { 
    177         /* terminate segment and save position of terminator */ 
    178         *ptr = '\0'; 
    179         *opaquep = ptr; 
     166    while ((*ptr != '\0') && (*ptr != '/')) ptr++; 
     167    if (*ptr == '\0') *opaquep = NULL; /* indicate last segment */ 
     168    else { 
     169        /* terminate segment and save position of terminator */ 
     170        *ptr = '\0'; 
     171        *opaquep = ptr; 
    180172    } 
    181173    return 0; 
     
    320312    for(i =0; i < pathlen; i++) 
    321313    { 
    322         if (path[i] == '/') 
    323         { 
    324                  num_slashes_seen++; 
    325             if (num_slashes_seen > skip) 
    326             { 
    327                 break; 
    328             } 
    329         } 
     314        if (path[i] == '/') 
     315        { 
     316            num_slashes_seen++; 
     317            if (num_slashes_seen > skip) 
     318            { 
     319                break; 
     320            } 
     321        } 
    330322    } 
    331323 
     
    364356    if (!comma_list || !tokens) 
    365357    { 
    366         return (0); 
     358        return (0); 
    367359    } 
    368360 
     
    371363    while ((holder = index(holder, ','))) 
    372364    { 
    373         tokencount++; 
    374         holder++; 
     365        tokencount++; 
     366        holder++; 
    375367    } 
    376368 
     
    388380    if (!(*tokens)) 
    389381    { 
    390         return 0; 
     382        return 0; 
    391383    } 
    392384 
    393385    if(1 == tokencount) 
    394386    { 
    395         (*tokens)[0] = strdup(comma_list); 
    396         if(!(*tokens)[0]) 
    397         { 
    398             tokencount = 0; 
    399             goto failure; 
    400         } 
    401         return tokencount; 
     387        (*tokens)[0] = strdup(comma_list); 
     388        if(!(*tokens)[0]) 
     389        { 
     390            tokencount = 0; 
     391            goto failure; 
     392        } 
     393        return tokencount; 
    402394    } 
    403395 
     
    407399    for (i = 0; i < tokencount && holder; i++) 
    408400    { 
    409         holder2 = index(holder, ','); 
    410         if (!holder2) 
    411         { 
    412             holder2 = end; 
    413         } 
     401        holder2 = index(holder, ','); 
     402        if (!holder2) 
     403        { 
     404            holder2 = end; 
     405        } 
    414406        if (holder2 - holder == 0) { 
    415407            retval--; 
    416             return (retval); 
    417         } 
    418         (*tokens)[i] = (char *) malloc((holder2 - holder) + 1); 
    419         if (!(*tokens)[i]) 
    420         { 
    421             goto failure; 
    422         } 
    423         strncpy((*tokens)[i], holder, (holder2 - holder)); 
    424         (*tokens)[i][(holder2 - holder)] = '\0'; 
     408            goto out; 
     409        } 
     410        (*tokens)[i] = (char *) malloc((holder2 - holder) + 1); 
     411        if (!(*tokens)[i]) 
     412        { 
     413            goto failure; 
     414        } 
     415        strncpy((*tokens)[i], holder, (holder2 - holder)); 
     416        (*tokens)[i][(holder2 - holder)] = '\0'; 
    425417        assert(strlen((*tokens)[i]) != 0); 
    426         holder = holder2 + 1; 
    427     } 
    428  
     418        holder = holder2 + 1; 
     419    } 
     420 
     421out: 
    429422    return (retval); 
    430423 
    431 failure: 
     424  failure: 
    432425 
    433426    /* free up any memory we allocated if we failed */ 
    434427    if (*tokens) 
    435428    { 
    436         for (i = 0; i < tokencount; i++) 
    437         { 
    438             if ((*tokens)[i]) 
    439             { 
    440                 free((*tokens)[i]); 
    441             } 
    442         } 
    443         free(*tokens); 
     429        for (i = 0; i < tokencount; i++) 
     430        { 
     431            if ((*tokens)[i]) 
     432            { 
     433                free((*tokens)[i]); 
     434            } 
     435        } 
     436        free(*tokens); 
    444437    } 
    445438    return (0); 
  • branches/cu-security-branch/src/common/quickhash

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/common/quicklist

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/common/quicklist/quicklist.h

    r7956 r8330  
    118118{ 
    119119    return head->next == head; 
    120 } 
    121  
    122 /** 
    123  * qlist_pop - pop the first item off the list and return it 
    124  * @head: qlist to modify 
    125  */ 
    126 static __inline__ struct qlist_head* qlist_pop(struct qlist_head *head) 
    127 { 
    128     struct qlist_head *item = NULL; 
    129  
    130     if (!qlist_empty(head)) 
    131     { 
    132         item = head->next; 
    133         qlist_del(item); 
    134     } 
    135  
    136     return item; 
    137120} 
    138121 
  • branches/cu-security-branch/src/common/security

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/common/statecomp

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/bmi

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/bmi/bmi-method-callback.h

    r7956 r8330  
    1212BMI_addr_t bmi_method_addr_reg_callback(bmi_method_addr_p map); 
    1313int bmi_method_addr_forget_callback(BMI_addr_t addr); 
    14 void bmi_method_addr_drop_callback(char *method_name); 
    1514 
    1615#endif /* __BMI_METHOD_CALLBACK_H */ 
  • branches/cu-security-branch/src/io/bmi/bmi.c

    r7956 r8330  
    5050    struct qlist_head link; 
    5151    BMI_addr_t addr; 
    52 }; 
    53  
    54 /* 
    55  * BMI trigger to reap all method resources for inactive addresses. 
    56  */ 
    57 static QLIST_HEAD(bmi_addr_force_drop_list); 
    58 static gen_mutex_t bmi_addr_force_drop_list_mutex = GEN_MUTEX_INITIALIZER; 
    59 struct drop_item 
    60 { 
    61     struct qlist_head link; 
    62     char  *method_name; 
    6352}; 
    6453 
     
    133122    int flags); 
    134123static void bmi_addr_drop(ref_st_p tmp_ref); 
    135 static void bmi_addr_force_drop(ref_st_p ref, ref_list_p ref_list); 
    136124static void bmi_check_forget_list(void); 
    137 static void bmi_check_addr_force_drop (void); 
    138125 
    139126/** Initializes the BMI layer.  Must be called before any other BMI 
     
    980967    /* figure out if we need to drop any stale addresses */ 
    981968    bmi_check_forget_list(); 
    982     bmi_check_addr_force_drop(); 
    983969 
    984970    gen_mutex_lock(&active_method_count_mutex); 
     
    19921978 
    19931979    return (0); 
    1994 } 
    1995  
    1996 /* 
    1997  * Signal BMI to drop inactive connections for this method. 
    1998  */ 
    1999 void bmi_method_addr_drop_callback (char* method_name) 
    2000 { 
    2001     struct drop_item *item = 
    2002         (struct drop_item *) malloc(sizeof(struct drop_item)); 
    2003  
    2004     /* 
    2005      * If we can't allocate, just return. 
    2006      * Maybe this will succeed next time. 
    2007      */ 
    2008     if (!item) return; 
    2009  
    2010     item->method_name = method_name; 
    2011      
    2012     gen_mutex_lock(&bmi_addr_force_drop_list_mutex); 
    2013     qlist_add(&item->link, &bmi_addr_force_drop_list); 
    2014     gen_mutex_unlock(&bmi_addr_force_drop_list_mutex); 
    2015  
    2016     return; 
    20171980} 
    20181981 
     
    22572220} 
    22582221 
    2259  
    2260 /* bmi_addr_force_drop 
    2261  * 
    2262  * Destroys a complete BMI address, including forcing the method to clean up  
    2263  * its portion. 
    2264  * 
    2265  * NOTE: must be called with ref list mutex held  
    2266  */ 
    2267 static void bmi_addr_force_drop(ref_st_p ref, ref_list_p ref_list) 
    2268 { 
    2269     gossip_debug(GOSSIP_BMI_DEBUG_CONTROL, 
    2270                  "[BMI CONTROL]: %s: bmi discarding address: %llu\n", 
    2271                  __func__, llu(ref->bmi_addr)); 
    2272  
    2273     ref_list_rem(ref_list, ref->bmi_addr); 
    2274     dealloc_ref_st(ref); 
    2275  
    2276     return; 
    2277 } 
    2278  
    2279 /* 
    2280  * bmi_check_addr_force_drop 
    2281  * 
    2282  * Checks to see if any method has requested freeing resources. 
    2283  */ 
    2284 static void bmi_check_addr_force_drop (void) 
    2285 { 
    2286     struct drop_item *drop_item = NULL; 
    2287     ref_st_p          ref_item = NULL; 
    2288  
    2289     gen_mutex_lock(&bmi_addr_force_drop_list_mutex); 
    2290     while (!qlist_empty(&bmi_addr_force_drop_list)) 
    2291     { 
    2292         drop_item = qlist_entry(qlist_pop(&bmi_addr_force_drop_list), 
    2293                                 struct drop_item, 
    2294                                 link); 
    2295         gen_mutex_unlock(&bmi_addr_force_drop_list_mutex); 
    2296         gen_mutex_lock(&ref_mutex); 
    2297         qlist_for_each_entry(ref_item, cur_ref_list, list_link) 
    2298         { 
    2299              if ((ref_item->ref_count == 0) && 
    2300                  (ref_item->interface->method_name == drop_item->method_name)) 
    2301              { 
    2302                  bmi_addr_force_drop(ref_item, cur_ref_list); 
    2303              } 
    2304         } 
    2305         gen_mutex_unlock(&ref_mutex); 
    2306         gen_mutex_lock(&bmi_addr_force_drop_list_mutex); 
    2307     } 
    2308     gen_mutex_unlock(&bmi_addr_force_drop_list_mutex); 
    2309  
    2310     return; 
    2311 } 
    2312  
    23132222/* 
    23142223 * Local variables: 
  • branches/cu-security-branch/src/io/bmi/bmi_gm

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/bmi/bmi_ib

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/bmi/bmi_mx

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/bmi/bmi_portals

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/bmi/bmi_tcp

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/bmi/bmi_tcp/bmi-tcp.c

    r7956 r8330  
    36493649            (errno == ENONET) || 
    36503650            (errno == EHOSTUNREACH) || 
    3651             (errno == EOPNOTSUPP) || 
    3652             (errno == ENETUNREACH) || 
    3653             (errno == ENFILE) || 
    3654             (errno == EMFILE)) 
     3651            (errno == EOPNOTSUPP) || (errno == ENETUNREACH)) 
    36553652        { 
    36563653            /* try again later */ 
    3657             if ((errno == ENFILE) || (errno == EMFILE)) 
    3658             { 
    3659                 gossip_err("Error: accept: %s (continuing)\n",strerror(errno)); 
    3660                 bmi_method_addr_drop_callback(BMI_tcp_method_name); 
    3661             } 
    36623654            return (0); 
    36633655        } 
  • branches/cu-security-branch/src/io/bmi/bmi_tcp/socket-collection-epoll.c

    r7956 r8330  
    129129    memset(status, 0, (sizeof(int) * incount)); 
    130130 
    131     if(incount == 0) 
    132     { 
    133         return(0); 
    134     } 
    135  
    136131    /* actually do the epoll_wait() here */ 
    137132    do 
  • branches/cu-security-branch/src/io/buffer

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/description

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/description/pint-request.c

    r7956 r8330  
    111111                temp_space = (void *)malloc(sizeof(PINT_Request_state)+ 
    112112                                (sizeof(PINT_reqstack)*req->cur->rqbase->depth)); 
    113                 if(!temp_space) 
    114                 { 
    115                    return -PVFS_ENOMEM; 
    116                 } 
     113        if(!temp_space) 
     114        { 
     115            return -PVFS_ENOMEM; 
     116        } 
    117117 
    118118                memcpy(temp_space,req,sizeof(PINT_Request_state)); 
     
    165165                /* do we allow external setting of LOGICAL_SKIP */ 
    166166                /* what about backwards skipping, as in seeking? */ 
    167         } 
     167    } 
    168168         
    169169        /* we should be ready to begin */ 
     
    174174        { 
    175175                if (req->cur[req->lvl].rq) 
    176             { 
     176                { 
    177177                /* print the current state of the decoding process */ 
    178178                gossip_debug(GOSSIP_REQUEST_DEBUG,"\tDo seq of %lld ne %d st %lld nb %d " 
     
    189189                                lld(req->type_offset), lld(req->target_offset), 
    190190                                lld(req->final_offset)); 
    191                if (mem) /* if a mem type is specified print its state */ 
    192                { 
     191            if (mem) /* if a mem type is specified print its state */ 
     192            { 
    193193                gossip_debug(GOSSIP_REQUEST_DEBUG,"\t\tmto %lld mta %lld mfi %lld\n", 
    194194                       lld(mem->type_offset), lld(mem->target_offset), 
    195195                       lld(mem->final_offset)); 
    196                } 
    197              } 
     196            } 
     197                } 
    198198                /* NULL type indicates packed data - handle directly */ 
    199199                if (req->cur[req->lvl].rq == NULL) 
  • branches/cu-security-branch/src/io/dev

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/flow

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/flow/flowproto-bmi-cache

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/flow/flowproto-bmi-trove

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/flow/flowproto-dump-offsets

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/flow/flowproto-template

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/job

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/job/job-desc-queue.h

    r7956 r8330  
    3131{ 
    3232    TROVE_op_id id; 
    33     PVFS_size *out_size_p; 
     33    PVFS_size actual_size; 
    3434    PVFS_vtag *vtag; 
    3535    PVFS_fs_id fsid; 
  • branches/cu-security-branch/src/io/job/job.c

    r7956 r8330  
    14001400} 
    14011401 
     1402/* job_trove_bstream_write_at() 
     1403 * 
     1404 * storage byte stream write 
     1405 * 
     1406 * returns 0 on success, 1 on immediate completion, and -errno on 
     1407 * failure 
     1408 */ 
     1409int job_trove_bstream_write_at(PVFS_fs_id coll_id, 
     1410                               PVFS_handle handle, 
     1411                               PVFS_offset offset, 
     1412                               void *buffer, 
     1413                               PVFS_size size, 
     1414                               PVFS_ds_flags flags, 
     1415                               PVFS_vtag * vtag, 
     1416                               void *user_ptr, 
     1417                               job_aint status_user_tag, 
     1418                               job_status_s * out_status_p, 
     1419                               job_id_t * id, 
     1420                               job_context_id context_id, 
     1421                               PVFS_hint hints) 
     1422{ 
     1423    /* post a trove write.  If it completes (or fails) immediately, then 
     1424     * return and fill in the status structure.  If it needs to be tested 
     1425     * for completion later, then queue up a job_desc structure. 
     1426     */ 
     1427    int ret = -1; 
     1428    struct job_desc *jd = NULL; 
     1429    void* user_ptr_internal; 
     1430 
     1431    /* create the job desc first, even though we may not use it.  This 
     1432     * gives us somewhere to store the BMI id and user ptr 
     1433     */ 
     1434    jd = alloc_job_desc(JOB_TROVE); 
     1435    if (!jd) 
     1436    { 
     1437        out_status_p->error_code = -PVFS_ENOMEM; 
     1438        return 1; 
     1439    } 
     1440    jd->hints = hints; 
     1441    jd->job_user_ptr = user_ptr; 
     1442    jd->u.trove.actual_size = size; 
     1443    jd->u.trove.vtag = vtag; 
     1444    jd->context_id = context_id; 
     1445    jd->status_user_tag = status_user_tag; 
     1446    jd->trove_callback.fn = trove_thread_mgr_callback; 
     1447    jd->trove_callback.data = (void*)jd; 
     1448    user_ptr_internal = &jd->trove_callback; 
     1449 
     1450#ifdef __PVFS2_TROVE_SUPPORT__ 
     1451    ret = trove_bstream_write_at(coll_id, handle, buffer, 
     1452                                 &jd->u.trove.actual_size, offset, flags, 
     1453                                 jd->u.trove.vtag, user_ptr_internal, 
     1454                                 global_trove_context, 
     1455                                 &(jd->u.trove.id), hints); 
     1456#else 
     1457    gossip_err("Error: Trove support not enabled.\n"); 
     1458    ret = -ENOSYS; 
     1459#endif 
     1460 
     1461    if (ret < 0) 
     1462    { 
     1463        /* error posting trove operation */ 
     1464        dealloc_job_desc(jd); 
     1465        jd = NULL; 
     1466        out_status_p->error_code = ret; 
     1467        out_status_p->status_user_tag = status_user_tag; 
     1468        return (1); 
     1469    } 
     1470 
     1471    if (ret == 1) 
     1472    { 
     1473        /* immediate completion */ 
     1474        out_status_p->error_code = 0; 
     1475        out_status_p->status_user_tag = status_user_tag; 
     1476        out_status_p->actual_size = jd->u.trove.actual_size; 
     1477        out_status_p->vtag = jd->u.trove.vtag; 
     1478        dealloc_job_desc(jd); 
     1479        jd = NULL; 
     1480        return (ret); 
     1481    } 
     1482 
     1483    /* if we fall through to this point, the job did not 
     1484     * immediately complete and we must queue up to test later 
     1485     */ 
     1486    *id = jd->job_id; 
     1487    trove_pending_count++; 
     1488 
     1489    return (0); 
     1490} 
     1491 
    14021492int job_trove_bstream_write_list(TROVE_coll_id coll_id, 
    14031493                                 TROVE_handle handle, 
     
    14381528    jd->hints = hints; 
    14391529    jd->u.trove.vtag = vtag; 
    1440     jd->u.trove.out_size_p = out_size_p; 
    14411530    jd->context_id = context_id; 
    14421531    jd->status_user_tag = status_user_tag; 
     
    14771566        out_status_p->error_code = 0; 
    14781567        out_status_p->status_user_tag = status_user_tag; 
    1479         out_status_p->actual_size = *out_size_p; 
     1568        out_status_p->actual_size = jd->u.trove.actual_size; 
    14801569        out_status_p->vtag = jd->u.trove.vtag; 
    14811570        dealloc_job_desc(jd); 
     
    14921581    return (0); 
    14931582}  
     1583 
     1584 
     1585/* job_trove_bstream_read_at() 
     1586 * 
     1587 * storage byte stream read  
     1588 * 
     1589 * returns 0 on success, 1 on immediate completion, and -errno on 
     1590 * failure 
     1591 */ 
     1592int job_trove_bstream_read_at(PVFS_fs_id coll_id, 
     1593                              PVFS_handle handle, 
     1594                              PVFS_offset offset, 
     1595                              void *buffer, 
     1596                              PVFS_size size, 
     1597                              PVFS_ds_flags flags, 
     1598                              PVFS_vtag * vtag, 
     1599                              void *user_ptr, 
     1600                              job_aint status_user_tag, 
     1601                              job_status_s * out_status_p, 
     1602                              job_id_t * id, 
     1603                              job_context_id context_id, 
     1604                              PVFS_hint hints) 
     1605{ 
     1606    /* post a trove read.  If it completes (or fails) immediately, then 
     1607     * return and fill in the status structure.  If it needs to be tested 
     1608     * for completion later, then queue up a job_desc structure. 
     1609     */ 
     1610    int ret = -1; 
     1611    struct job_desc *jd = NULL; 
     1612    void* user_ptr_internal; 
     1613 
     1614    /* create the job desc first, even though we may not use it.  This 
     1615     * gives us somewhere to store the BMI id and user ptr 
     1616     */ 
     1617    jd = alloc_job_desc(JOB_TROVE); 
     1618    if (!jd) 
     1619    { 
     1620        out_status_p->error_code = -PVFS_ENOMEM; 
     1621        return 1; 
     1622    } 
     1623    jd->hints = hints; 
     1624    jd->job_user_ptr = user_ptr; 
     1625    jd->u.trove.actual_size = size; 
     1626    jd->u.trove.vtag = vtag; 
     1627    jd->context_id = context_id; 
     1628    jd->status_user_tag = status_user_tag; 
     1629    jd->trove_callback.fn = trove_thread_mgr_callback; 
     1630    jd->trove_callback.data = (void*)jd; 
     1631    user_ptr_internal = &jd->trove_callback; 
     1632 
     1633#ifdef __PVFS2_TROVE_SUPPORT__ 
     1634    ret = trove_bstream_read_at(coll_id, handle, buffer, 
     1635                                &jd->u.trove.actual_size, offset, flags, 
     1636                                jd->u.trove.vtag, user_ptr_internal, 
     1637                                global_trove_context, 
     1638                                &(jd->u.trove.id), hints); 
     1639#else 
     1640    gossip_err("Error: Trove support not enabled.\n"); 
     1641    ret = -ENOSYS; 
     1642#endif 
     1643 
     1644    if (ret < 0) 
     1645    { 
     1646        /* error posting trove operation */ 
     1647        dealloc_job_desc(jd); 
     1648        jd = NULL; 
     1649        out_status_p->error_code = ret; 
     1650        out_status_p->status_user_tag = status_user_tag; 
     1651        return (1); 
     1652    } 
     1653 
     1654    if (ret == 1) 
     1655    { 
     1656        /* immediate completion */ 
     1657        out_status_p->error_code = 0; 
     1658        out_status_p->status_user_tag = status_user_tag; 
     1659        out_status_p->actual_size = jd->u.trove.actual_size; 
     1660        out_status_p->vtag = jd->u.trove.vtag; 
     1661        dealloc_job_desc(jd); 
     1662        jd = NULL; 
     1663        return (ret); 
     1664    } 
     1665 
     1666    /* if we fall through to this point, the job did not 
     1667     * immediately complete and we must queue up to test later 
     1668     */ 
     1669    *id = jd->job_id; 
     1670    trove_pending_count++; 
     1671 
     1672    return (0); 
     1673} 
    14941674 
    14951675int job_trove_bstream_read_list(PVFS_fs_id coll_id, 
     
    15311711    jd->job_user_ptr = user_ptr; 
    15321712    jd->u.trove.vtag = vtag; 
    1533     jd->u.trove.out_size_p = out_size_p; 
    15341713    jd->context_id = context_id; 
    15351714    jd->status_user_tag = status_user_tag; 
     
    15681747        out_status_p->error_code = 0; 
    15691748        out_status_p->status_user_tag = status_user_tag; 
    1570         out_status_p->actual_size = *out_size_p; 
     1749        out_status_p->actual_size = jd->u.trove.actual_size; 
    15711750        out_status_p->vtag = jd->u.trove.vtag; 
    15721751        dealloc_job_desc(jd); 
     
    49765155    case JOB_TROVE: 
    49775156        status->error_code = jd->u.trove.state; 
    4978         if(jd->u.trove.out_size_p) 
    4979             status->actual_size = *jd->u.trove.out_size_p; 
     5157        status->actual_size = jd->u.trove.actual_size; 
    49805158        status->vtag = jd->u.trove.vtag; 
    49815159        status->coll_id = jd->u.trove.fsid; 
  • branches/cu-security-branch/src/io/job/job.h

    r7956 r8330  
    3333    job_aint status_user_tag;   /* tag supplied by caller */ 
    3434    int error_code;             /* returned by all operations */ 
    35     PVFS_size actual_size;      /* resize, bmi_recv */ 
     35    PVFS_size actual_size;      /* read_at, write_at, resize, bmi_recv */ 
    3636    PVFS_vtag *vtag;            /* most trove operations */ 
    3737    PVFS_ds_position position;  /* iterate, iterate_keys, iterate_handles */ 
     
    227227 
    228228/* storage byte stream write */ 
     229int job_trove_bstream_write_at(PVFS_fs_id coll_id, 
     230                               PVFS_handle handle, 
     231                               PVFS_offset offset, 
     232                               void *buffer, 
     233                               PVFS_size size, 
     234                               PVFS_ds_flags flags, 
     235                               PVFS_vtag * vtag, 
     236                               void *user_ptr, 
     237                               job_aint status_user_tag, 
     238                               job_status_s * out_status_p, 
     239                               job_id_t * id, 
     240                               job_context_id context_id, 
     241                               PVFS_hint hints); 
     242 
    229243int job_trove_bstream_write_list(PVFS_fs_id coll_id, 
    230244                                 PVFS_handle handle, 
     
    247261 
    248262/* storage byte stream read */ 
     263int job_trove_bstream_read_at(PVFS_fs_id coll_id, 
     264                              PVFS_handle handle, 
     265                              PVFS_offset offset, 
     266                              void *buffer, 
     267                              PVFS_size size, 
     268                              PVFS_ds_flags flags, 
     269                              PVFS_vtag * vtag, 
     270                              void *user_ptr, 
     271                              job_aint status_user_tag, 
     272                              job_status_s * out_status_p, 
     273                              job_id_t * id, 
     274                              job_context_id context_id, 
     275                              PVFS_hint hints); 
    249276 
    250277int job_trove_bstream_read_list(PVFS_fs_id coll_id, 
  • branches/cu-security-branch/src/io/trove

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/trove/trove-dbpf

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/io/trove/trove-dbpf/dbpf-bstream-direct.c

    r7956 r8330  
    858858                goto cache_put; 
    859859            } 
    860             if(qop_p->op.flags & TROVE_SYNC) 
    861             { 
    862                 sync_required = 1; 
    863             } 
     860            sync_required = 1; 
    864861        } 
    865862        gen_mutex_unlock(&dbpf_update_size_lock); 
  • branches/cu-security-branch/src/io/trove/trove-dbpf/dbpf-bstream.c

    r7956 r8330  
    187187                    goto error_in_cleanup; 
    188188                } 
    189                 if(op_p->flags & TROVE_SYNC) 
    190                 { 
    191                     sync_required = 1; 
    192                 } 
     189                sync_required = 1; 
    193190            } 
    194191            gen_mutex_unlock(&dbpf_update_size_lock); 
  • branches/cu-security-branch/src/io/trove/trove-dbpf/dbpf-dspace.c

    r7956 r8330  
    887887               sizeof_attr != sizeof(attr)) 
    888888            { 
    889                 gossip_err("Warning: got invalid handle or key size in dbpf_dspace_iterate_handles().\n"); 
    890                 gossip_err("Warning: skipping entry.\n"); 
    891                 i--; 
    892                 continue; 
     889                /* something is wrong with the result */ 
     890                ret = -TROVE_EINVAL; 
     891                goto return_error; 
    893892            } 
    894893 
     
    906905         * return 
    907906         */ 
    908         sizeof_handle = sizeof(TROVE_handle); 
    909         sizeof_attr = sizeof(attr); 
    910         do 
    911         { 
    912             /* verify sizes are correct */ 
    913             if(sizeof_handle != sizeof(TROVE_handle) || 
    914                sizeof_attr != sizeof(attr)) 
    915             { 
    916                 gossip_err("Warning: got invalid handle or key size in dbpf_dspace_iterate_handles().\n"); 
    917                 gossip_err("Warning: skipping entry.\n"); 
    918             } 
    919             DB_MULTIPLE_KEY_NEXT(tmp_ptr, &data, 
    920                                  tmp_handle, sizeof_handle, 
    921                                  tmp_attr, sizeof_attr); 
    922             if(!tmp_ptr) 
    923             { 
    924                 goto get_next; 
    925             } 
    926         } while (sizeof_handle != sizeof(TROVE_handle) || 
    927            sizeof_attr != sizeof(attr)); 
     907        DB_MULTIPLE_KEY_NEXT(tmp_ptr, &data, 
     908                             tmp_handle, sizeof_handle, 
     909                             tmp_attr, sizeof_attr); 
     910        if(!tmp_ptr) 
     911        { 
     912            goto get_next; 
     913        } 
     914 
     915        /* verify sizes are correct */ 
     916        if(sizeof_handle != sizeof(TROVE_handle) || 
     917           sizeof_attr != sizeof(attr)) 
     918        { 
     919            /* something is wrong with the result */ 
     920            ret = -TROVE_EINVAL; 
     921            goto return_error; 
     922        } 
    928923 
    929924        *op_p->u.d_iterate_handles.position_p = *(TROVE_handle *)tmp_handle; 
  • branches/cu-security-branch/src/io/trove/trove-handle-mgmt

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/kernel/linux-2.4

    • Property svn:ignore set to
      Makefile
  • branches/cu-security-branch/src/kernel/linux-2.6

    • Property svn:ignore set to
      Module.markers
      Module.symvers
      Makefile
  • branches/cu-security-branch/src/kernel/linux-2.6/namei.c

    r7956 r8330  
    201201    if (inode && !is_bad_inode(inode)) 
    202202    { 
     203        struct dentry *res; 
    203204        gossip_debug(GOSSIP_NAME_DEBUG, "%s:%s:%d Found good inode [%lu] with count [%d]\n",  
    204205            __FILE__, __func__, __LINE__, inode->i_ino, (int)atomic_read(&inode->i_count)); 
    205         struct dentry *res; 
    206206 
    207207        /* update dentry/inode pair into dcache */ 
  • branches/cu-security-branch/src/kernel/linux-2.6/pvfs2-utils.c

    r7956 r8330  
    668668#define DIRENT_KEY  "system.pvfs2." DIRECTORY_ENTRY_KEYSTR 
    669669 
     670/* Extended attributes helper functions */ 
     671static char *xattr_non_zero_terminated[] = { 
     672    DFILE_KEY, 
     673    DIST_KEY, 
     674    ROOT_KEY, 
     675}; 
     676 
     677/* Extended attributes helper functions */ 
     678 
     679/* 
     680 * this function returns  
     681 * 0 if the val corresponding to name is known to be not terminated with an explicit \0 
     682 * 1 if the val corresponding to name is known to be \0 terminated 
     683 */ 
     684static int xattr_zero_terminated(const char *name) 
     685{ 
     686    int i; 
     687    static int xattr_count = sizeof(xattr_non_zero_terminated)/sizeof(char *); 
     688    for (i = 0;i < xattr_count; i++) 
     689    { 
     690        if (strcmp(name, xattr_non_zero_terminated[i]) == 0) 
     691            return 0; 
     692    } 
     693    return 1; 
     694} 
     695 
    670696static char *xattr_resvd_keys[] = { 
    671697    DFILE_KEY, 
     
    765791        if (ret == 0) 
    766792        { 
     793            ssize_t new_length; 
    767794            length = new_op->downcall.resp.getxattr.val_sz; 
     795            /* 
     796             * if the xattr corresponding to name was not terminated with a \0 
     797             * then we return the entire response length 
     798             */ 
     799            if (xattr_zero_terminated(name) == 0) 
     800            { 
     801                new_length = length; 
     802            } 
     803            /* 
     804             * if it was terminated by a \0 then we return 1 less for the getfattr 
     805             * programs to play nicely with displaying it 
     806             */ 
     807            else { 
     808                new_length = length - 1; 
     809            } 
     810            /* Just return the length of the queried attribute after 
     811             * subtracting the \0 thingie */ 
    768812            if (size == 0) 
    769813            { 
    770                 ret = length; 
     814                ret = new_length; 
    771815            } 
    772816            else 
    773817            { 
    774                 /* check to see if val length is > provided buffer size */ 
    775                 if (length > size) 
     818                /* check to see if key length is > provided buffer size */ 
     819                if (new_length > size) 
    776820                { 
    777821                    ret = -ERANGE; 
     
    782826                    memset(buffer, 0, size); 
    783827                    memcpy(buffer, new_op->downcall.resp.getxattr.val,  
    784                            length); 
    785                     ret = length;  
    786                     gossip_debug(GOSSIP_XATTR_DEBUG,"pvfs2_inode_getxattr: " 
    787                         "inode %llu key %s key_sz %d, val_length %d\n",  
     828                            new_length); 
     829                    ret = new_length; 
     830                    gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode %llu key %s " 
     831                            " key_sz %d, val_length %d\n",  
    788832                        llu(get_handle_from_ino(inode)), 
    789833                        (char*)new_op->upcall.req.getxattr.key,  
     
    795839        { 
    796840            ret = -ENODATA; /* if no such keys exists we set this to be errno */ 
    797             gossip_debug(GOSSIP_XATTR_DEBUG,"pvfs2_inode_getxattr: inode %llu " 
    798                                             "key %s does not exist!\n" 
    799                                       ,llu(get_handle_from_ino(inode)) 
    800                                       ,(char *)new_op->upcall.req.getxattr.key); 
     841            gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_getxattr: inode %llu key %s does not exist!\n", 
     842                    llu(get_handle_from_ino(inode)), (char *) new_op->upcall.req.getxattr.key); 
    801843        } 
    802844 
     
    819861    pvfs2_kernel_op_t *new_op = NULL; 
    820862    pvfs2_inode_t *pvfs2_inode = NULL; 
    821     int i; 
    822     char *valBuf; 
    823863 
    824864    if (size < 0 || size >= PVFS_MAX_XATTR_VALUELEN || flags < 0) 
     
    896936            ret + 1; 
    897937        memcpy(new_op->upcall.req.setxattr.keyval.val, value, size); 
    898         new_op->upcall.req.setxattr.keyval.val_sz = size; 
    899  
    900         gossip_debug(GOSSIP_XATTR_DEBUG,"Upcall: size=%d\n" 
    901                     ,new_op->upcall.req.setxattr.keyval.val_sz); 
    902         valBuf = (char *)new_op->upcall.req.setxattr.keyval.val; 
    903         for (i=0; i<new_op->upcall.req.setxattr.keyval.val_sz; i++) 
    904             gossip_debug(GOSSIP_XATTR_DEBUG,"\tval[%d]=%#x\n" 
    905                         ,i 
    906                         ,(unsigned int)valBuf[i]); 
    907  
    908         gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_setxattr: key %s, " 
    909                 "key_sz %d value size %zd\n",  
     938        new_op->upcall.req.setxattr.keyval.val[size] = '\0'; 
     939        /* For some reason, val_sz should include the \0 at the end as well */ 
     940        new_op->upcall.req.setxattr.keyval.val_sz = size + 1; 
     941 
     942        gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_setxattr: key %s, key_sz %d " 
     943                " value size %zd\n",  
    910944                 (char*)new_op->upcall.req.setxattr.keyval.key,  
    911945                 (int) new_op->upcall.req.setxattr.keyval.key_sz, 
    912                  size); 
     946                 size + 1); 
    913947 
    914948        ret = service_operation( 
     
    916950            get_interruptible_flag(inode)); 
    917951 
    918         gossip_debug(GOSSIP_XATTR_DEBUG,"pvfs2_inode_setxattr: returning %d\n" 
    919                                        , ret); 
     952        gossip_debug(GOSSIP_XATTR_DEBUG, "pvfs2_inode_setxattr: returning %d\n", ret); 
    920953 
    921954        /* when request is serviced properly, free req op struct */ 
  • branches/cu-security-branch/src/proto

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/proto/PINT-le-bytefield.c

    r7956 r8330  
    9595 
    9696    for (op_type=0; op_type<PVFS_SERV_NUM_OPS; op_type++) { 
    97         memset(&req.u, 0, sizeof(req.u)); 
    9897        req.op = resp.op = op_type; 
    9998        reqsize = 0; 
     
    124123                respsize = extra_size_PVFS_servresp_batch_create; 
    125124                break; 
    126         case PVFS_SERV_CREATE: 
    127             zero_credential(&req.u.create.credential); 
    128             zero_capability(&resp.u.create.capability); 
     125            case PVFS_SERV_CREATE: 
     126                zero_credential(&req.u.create.credential); 
     127                zero_capability(&resp.u.create.capability); 
    129128                /* can request a range of handles */ 
    130129                reqsize = extra_size_PVFS_servreq_create; 
    131130                respsize = extra_size_PVFS_servresp_create; 
    132131                break; 
    133             case PVFS_SERV_MIRROR: 
    134                  req.u.mirror.dist = &tmp_dist; 
    135                  req.u.mirror.dst_count = 0; 
    136                  reqsize = extra_size_PVFS_servreq_mirror; 
    137                  respsize = extra_size_PVFS_servresp_mirror; 
    138                  break; 
    139             case PVFS_SERV_IMM_COPIES: 
    140                  break; 
    141132            case PVFS_SERV_REMOVE: 
    142133                /* nothing special, let normal encoding work */ 
     
    362353    /* this encoder always uses just one buffer */ 
    363354    BF_ENCODE_TARGET_MSG_INIT(target_msg); 
    364  
    365     gossip_debug(GOSSIP_ENDECODE_DEBUG,"\tmaxsize:%d\tinitializing_sizes:%d\n" 
    366                                       ,maxsize,initializing_sizes); 
    367355 
    368356    /* allocate the max size buffer to avoid the work of calculating it */ 
     
    403391    char **p; 
    404392 
    405     gossip_debug(GOSSIP_ENDECODE_DEBUG,"Executing lebf_encode_req...\n"); 
    406     gossip_debug(GOSSIP_ENDECODE_DEBUG,"\treq->op:%d\n",req->op); 
    407  
    408393    ret = encode_common(target_msg, max_size_array[req->op].req); 
    409394 
     
    424409        CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 
    425410        CASE(PVFS_SERV_CREATE, create); 
    426         CASE(PVFS_SERV_MIRROR, mirror); 
    427411        CASE(PVFS_SERV_UNSTUFF, unstuff); 
    428412        CASE(PVFS_SERV_BATCH_CREATE, batch_create); 
     
    459443        case PVFS_SERV_MGMT_NOOP: 
    460444        case PVFS_SERV_PROTO_ERROR: 
    461         case PVFS_SERV_IMM_COPIES: 
    462445            /* nothing else */ 
    463446            break; 
     
    532515        CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 
    533516        CASE(PVFS_SERV_CREATE, create); 
    534         CASE(PVFS_SERV_MIRROR, mirror); 
    535517        CASE(PVFS_SERV_UNSTUFF, unstuff); 
    536518        CASE(PVFS_SERV_BATCH_CREATE, batch_create); 
     
    566548        case PVFS_SERV_BATCH_REMOVE: 
    567549        case PVFS_SERV_PROTO_ERROR: 
    568         case PVFS_SERV_IMM_COPIES: 
    569550        case PVFS_SERV_MGMT_SETPARAM: 
    570551            /* nothing else */ 
     
    634615        CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 
    635616        CASE(PVFS_SERV_CREATE, create); 
    636         CASE(PVFS_SERV_MIRROR, mirror); 
    637617        CASE(PVFS_SERV_UNSTUFF, unstuff); 
    638618        CASE(PVFS_SERV_BATCH_CREATE, batch_create); 
     
    668648        case PVFS_SERV_GETCONFIG: 
    669649        case PVFS_SERV_MGMT_NOOP: 
    670         case PVFS_SERV_IMM_COPIES: 
    671650            /* nothing else */ 
    672651            break; 
     
    732711        CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 
    733712        CASE(PVFS_SERV_CREATE, create); 
    734         CASE(PVFS_SERV_MIRROR, mirror); 
    735713        CASE(PVFS_SERV_UNSTUFF, unstuff); 
    736714        CASE(PVFS_SERV_BATCH_CREATE, batch_create); 
     
    766744        case PVFS_SERV_MGMT_NOOP: 
    767745        case PVFS_SERV_PROTO_ERROR: 
    768         case PVFS_SERV_IMM_COPIES: 
    769746        case PVFS_SERV_MGMT_SETPARAM: 
    770747            /* nothing else */ 
     
    854831                decode_free(req->u.small_io.file_req); 
    855832                break; 
    856  
    857             case PVFS_SERV_MIRROR: 
    858                 decode_free(req->u.mirror.dist); 
    859                 decode_free(req->u.mirror.dst_handle); 
    860                 decode_free(req->u.mirror.wcIndex); 
    861                 break; 
    862833 
    863834            case PVFS_SERV_MKDIR: 
     
    887858                    decode_free(req->u.setattr.attr.u.meta.dfile_array); 
    888859                break; 
    889  
    890860            case PVFS_SERV_LISTATTR: 
    891861                if (req->u.listattr.handles) 
    892862                    decode_free(req->u.listattr.handles); 
    893                 break; 
    894  
    895             case PVFS_SERV_SETEATTR: 
    896                 decode_free(req->u.seteattr.key); 
    897                 decode_free(req->u.seteattr.val); 
    898                 break; 
    899  
    900             case PVFS_SERV_GETEATTR: 
    901                 decode_free(req->u.geteattr.key); 
    902                 decode_free(req->u.geteattr.valsz); 
    903863                break; 
    904864 
     
    936896            case PVFS_SERV_MGMT_PERF_MON: 
    937897            case PVFS_SERV_MGMT_EVENT_MON: 
    938  
     898            case PVFS_SERV_GETEATTR: 
     899            case PVFS_SERV_SETEATTR: 
    939900            case PVFS_SERV_DELEATTR: 
    940901            case PVFS_SERV_LISTEATTR: 
    941902            case PVFS_SERV_BATCH_REMOVE: 
    942             case PVFS_SERV_IMM_COPIES: 
    943               /*nothing to free*/ 
    944                   break; 
     903                /* nothing to free */ 
     904                break; 
    945905            case PVFS_SERV_INVALID: 
    946906            case PVFS_SERV_WRITE_COMPLETION: 
     
    1038998                        break; 
    1039999                    } 
    1040  
    1041                 case PVFS_SERV_MIRROR: 
    1042                    { 
    1043                       decode_free(resp->u.mirror.bytes_written); 
    1044                       decode_free(resp->u.mirror.write_status_code); 
    1045                       break; 
    1046                    } 
    1047  
    10481000               case PVFS_SERV_GETCRED: 
    10491001                    decode_free(resp->u.getcred.credential.group_array); 
     
    10731025                case PVFS_SERV_BATCH_REMOVE: 
    10741026                case PVFS_SERV_LOOKUP_PATH: 
    1075                 case PVFS_SERV_IMM_COPIES: 
    1076                   /*nothing to free */ 
    1077                    break; 
     1027                    /* nothing to free */ 
     1028                    break; 
     1029 
    10781030                case PVFS_SERV_INVALID: 
    10791031                case PVFS_SERV_PERF_UPDATE: 
  • branches/cu-security-branch/src/proto/pvfs2-req-proto.h

    r7956 r8330  
    8181    PVFS_SERV_PRECREATE_POOL_REFILLER = 37, /* not a real protocol request */ 
    8282    PVFS_SERV_UNSTUFF = 38, 
    83     PVFS_SERV_MIRROR = 39, 
    84     PVFS_SERV_IMM_COPIES = 40, 
    85     PVFS_SERV_GETCRED = 41, 
     83    PVFS_SERV_GETCRED = 39, 
    8684    /* leave this entry last */ 
    8785    PVFS_SERV_NUM_OPS 
     
    939937    (PVFS_REQ_LIMIT_CONFIG_FILE_BYTES) 
    940938 
    941 /* mirror ******************************************************/ 
    942 /* - copies a datahandle owned by the local server to a data-  */ 
    943 /*   handle on a remote server. There could be multiple desti- */ 
    944 /*   nation data handles. dst_count tells us how many there    */ 
    945 /*   are.                                                      */ 
    946 struct PVFS_servreq_mirror 
    947 { 
    948     PVFS_handle src_handle; 
    949     PVFS_handle *dst_handle; 
    950     PVFS_fs_id  fs_id; 
    951     PINT_dist   *dist; 
    952     uint32_t    bsize; 
    953     uint32_t    src_server_nr; 
    954     uint32_t    *wcIndex; 
    955     uint32_t     dst_count; 
    956     enum PVFS_flowproto_type flow_type; 
    957     enum PVFS_encoding_type encoding; 
    958 }; 
    959  
    960 #ifdef __PINT_REQPROTO_ENCODE_FUNCS_C 
    961 #define encode_PVFS_servreq_mirror(pptr,x) do {      \ 
    962    encode_PVFS_handle(pptr,&(x)->src_handle);        \ 
    963    encode_PVFS_fs_id(pptr,&(x)->fs_id);              \ 
    964    encode_PINT_dist(pptr,&(x)->dist);                \ 
    965    encode_uint32_t(pptr,&(x)->bsize);                \ 
    966    encode_uint32_t(pptr,&(x)->src_server_nr);        \ 
    967    encode_uint32_t(pptr,&(x)->dst_count);            \ 
    968    encode_enum(pptr,&(x)->flow_type);                \ 
    969    encode_enum(pptr,&(x)->encoding);                 \ 
    970    int i;                                            \ 
    971    for (i=0; i<(x)->dst_count; i++)                  \ 
    972    {                                                 \ 
    973        encode_PVFS_handle(pptr,&(x)->dst_handle[i]); \ 
    974        encode_uint32_t(pptr,&(x)->wcIndex[i]);       \ 
    975    }                                                 \ 
    976 } while (0) 
    977  
    978 #define decode_PVFS_servreq_mirror(pptr,x) do {          \ 
    979    decode_PVFS_handle(pptr,&(x)->src_handle);            \ 
    980    decode_PVFS_fs_id(pptr,&(x)->fs_id);                  \ 
    981    decode_PINT_dist(pptr,&(x)->dist);                    \ 
    982    decode_uint32_t(pptr,&(x)->bsize);                    \ 
    983    decode_uint32_t(pptr,&(x)->src_server_nr);            \ 
    984    decode_uint32_t(pptr,&(x)->dst_count);                \ 
    985    decode_enum(pptr,&(x)->flow_type);                    \ 
    986    decode_enum(pptr,&(x)->encoding);                     \ 
    987    (x)->dst_handle = decode_malloc((x)->dst_count *      \ 
    988                                    sizeof(PVFS_handle)); \ 
    989    (x)->wcIndex = decode_malloc((x)->dst_count *         \ 
    990                                sizeof(uint32_t));        \ 
    991    int i;                                                \ 
    992    for (i=0; i<(x)->dst_count; i++)                      \ 
    993    {                                                     \ 
    994        decode_PVFS_handle(pptr,&(x)->dst_handle[i]);     \ 
    995        decode_uint32_t(pptr,&(x)->wcIndex[i]);           \ 
    996    }                                                     \ 
    997 } while (0) 
    998 #endif 
    999  
    1000 #define extra_size_PVFS_servreq_mirror \ 
    1001    ( (sizeof(PVFS_handle) * PVFS_REQ_LIMIT_HANDLES_COUNT) + \ 
    1002      (sizeof(uint32_t) * PVFS_REQ_LIMIT_HANDLES_COUNT) ) 
    1003  
    1004 /*Response to mirror request.  Identifies the number of bytes written and the */ 
    1005 /*status of that write for each source-destination handle pair. (Source is    */ 
    1006 /*always the same for each pair.)                                             */ 
    1007 struct PVFS_servresp_mirror 
    1008 { 
    1009     PVFS_handle src_handle; 
    1010     uint32_t src_server_nr; 
    1011     uint32_t *bytes_written; 
    1012     uint32_t *write_status_code; 
    1013     uint32_t dst_count; 
    1014 }; 
    1015  
    1016 #ifdef __PINT_REQPROTO_ENCODE_FUNCS_C 
    1017 #define encode_PVFS_servresp_mirror(pptr,x) do {         \ 
    1018    encode_PVFS_handle(pptr,&(x)->src_handle);            \ 
    1019    encode_uint32_t(pptr,&(x)->src_server_nr);            \ 
    1020    encode_uint32_t(pptr,&(x)->dst_count);                \ 
    1021    int i;                                                \ 
    1022    for (i=0; i<(x)->dst_count; i++)                      \ 
    1023    {                                                     \ 
    1024        encode_uint32_t(pptr,&(x)->bytes_written[i]);     \ 
    1025        encode_uint32_t(pptr,&(x)->write_status_code[i]); \ 
    1026    }                                                     \ 
    1027 } while (0) 
    1028  
    1029 #define decode_PVFS_servresp_mirror(pptr,x) do {            \ 
    1030   decode_PVFS_handle(pptr,&(x)->src_handle);                \ 
    1031   decode_uint32_t(pptr,&(x)->src_server_nr);                \ 
    1032   decode_uint32_t(pptr,&(x)->dst_count);                    \ 
    1033   (x)->bytes_written     = decode_malloc((x)->dst_count *   \ 
    1034                                          sizeof(uint32_t)); \ 
    1035   (x)->write_status_code = decode_malloc((x)->dst_count *   \ 
    1036                                          sizeof(uint32_t)); \ 
    1037   int i;                                                    \ 
    1038   for (i=0; i<(x)->dst_count; i++ )                         \ 
    1039   {                                                         \ 
    1040       decode_uint32_t(pptr,&(x)->bytes_written[i]);         \ 
    1041       decode_uint32_t(pptr,&(x)->write_status_code[i]);     \ 
    1042   }                                                         \ 
    1043 } while (0) 
    1044 #endif 
    1045  
    1046 #define extra_size_PVFS_servresp_mirror \ 
    1047   ( (sizeof(uint32_t) * PVFS_REQ_LIMIT_HANDLES_COUNT) + \ 
    1048     (sizeof(uint32_t) * PVFS_REQ_LIMIT_HANDLES_COUNT) ) 
    1049  
    1050  
    1051939/* truncate ****************************************************/ 
    1052940/* - resizes an existing datafile */ 
     
    19131801    union 
    19141802    { 
    1915         struct PVFS_servreq_mirror mirror; 
    19161803        struct PVFS_servreq_create create; 
    19171804        struct PVFS_servreq_unstuff unstuff; 
     
    19781865    union 
    19791866    { 
    1980         struct PVFS_servresp_mirror mirror; 
    19811867        struct PVFS_servresp_create create; 
    19821868        struct PVFS_servresp_unstuff unstuff; 
  • branches/cu-security-branch/src/server

    • Property svn:ignore set to
      *.c
      simple.conf
      module.mk
  • branches/cu-security-branch/src/server/create.sm

    r7956 r8330  
    150150        struct PINT_smcb *smcb, job_status_s *js_p) 
    151151{ 
    152  
    153    gossip_err("Executing create_metafile.....\n"); 
    154     
    155152    struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    156153    int ret = -1; 
     
    183180    struct PINT_smcb *smcb, job_status_s *js_p) 
    184181{ 
    185   gossip_err("Executing check_stuffed...\n"); 
    186  
    187182    struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    188183    int server_type; 
     
    203198 
    204199    layout = &s_op->req->u.create.layout; 
    205  
    206     gossip_err("layout algorithm is %d.\n",layout->algorithm); 
    207200 
    208201    if(layout->algorithm == PVFS_SYS_LAYOUT_LIST) 
     
    255248 
    256249        s_op->resp.u.create.stuffed = 1; 
    257      s_op->u.create.handle_array_local[0] = 100; 
    258   gossip_err("File will be stuffed.\n"); 
    259250        js_p->error_code = 0; 
    260251        return SM_ACTION_COMPLETE; 
     
    394385        s_op->req->hints); 
    395386 
    396    gossip_err("Value of ret from job_trove_dspace_create_list is %d.\n",ret); 
    397    gossip_err("handle_array_local[0] is %llu.\n",llu(*(s_op->u.create.handle_array_local))); 
    398  
    399  
    400387    return(ret); 
    401388} 
     
    442429    } 
    443430 
     431    free(s_op->resp.u.create.datafile_handles); 
     432 
    444433    ret = job_trove_dspace_remove( 
    445434        s_op->req->u.create.fs_id, 
     
    653642    s_op->val_a[0].buffer = s_op->resp.u.create.datafile_handles; 
    654643    s_op->val_a[0].buffer_sz = 
    655          s_op->resp.u.create.datafile_count * sizeof(PVFS_handle); 
     644        s_op->resp.u.create.datafile_count * sizeof(PVFS_handle); 
    656645 
    657646    s_op->key_a[1].buffer = Trove_Common_Keys[METAFILE_DIST_KEY].key; 
  • branches/cu-security-branch/src/server/io.sm

    r7956 r8330  
    9494        struct PINT_smcb *smcb, job_status_s *js_p) 
    9595{ 
    96     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing io_send_ack (io.sm)....\n"); 
    9796    struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    9897    int err = -PVFS_EIO; 
     
    107106    s_op->resp.u.io.bstream_size = s_op->ds_attr.u.datafile.b_size; 
    108107 
    109     gossip_debug(GOSSIP_MIRROR_DEBUG,"/tbstream_size:%d\n" 
    110                                     ,(int)s_op->resp.u.io.bstream_size); 
    111  
    112108    err = PINT_encode(&s_op->resp, PINT_ENCODE_RESP, &(s_op->encoded), 
    113109                      s_op->addr, s_op->decoded.enc_type); 
     
    205201    } 
    206202 
    207     gossip_err("SERVER: IO SM: s_op->tag:%d\n",s_op->tag); 
    208  
    209203    gossip_debug(GOSSIP_IO_DEBUG, "flow: fsize: %lld, "  
    210204        "server_nr: %d, server_ct: %d\n", 
     
    243237    } 
    244238 
    245     gossip_debug(GOSSIP_IO_DEBUG,"\tabout to issue job_flow...\n"); 
    246239    err = job_flow(s_op->u.io.flow_d, smcb, 0, js_p, &tmp_id, 
    247240                   server_job_context, user_opts->server_job_flow_timeout 
    248241                   , s_op->req->hints); 
    249  
    250     gossip_debug(GOSSIP_IO_DEBUG,"\treturn code from job_flow " 
    251                                  "submission:%d\n" 
    252                                 ,err); 
    253242 
    254243    return err; 
     
    351340    job_id_t tmp_id; 
    352341    struct server_configuration_s *user_opts = get_server_config_struct(); 
    353      
    354     gossip_debug(GOSSIP_IO_DEBUG,"Executing io_send_completion_ack.\n"); 
    355      
     342         
    356343    /* we only send this trailing ack if we are working on a write 
    357344     * operation; otherwise just cut out early 
     
    389376    } 
    390377 
    391     gossip_debug(GOSSIP_IO_DEBUG,"\ts_op->tag:%d\n",s_op->tag); 
    392  
    393378    err = job_bmi_send_list( 
    394379        s_op->addr, s_op->encoded.buffer_list, s_op->encoded.size_list, 
     
    397382        server_job_context, user_opts->server_job_bmi_timeout, 
    398383        s_op->req->hints); 
    399  
    400     gossip_debug(GOSSIP_IO_DEBUG,"return code from sending ack:%d\n" 
    401                                 ,err); 
    402384 
    403385    return err; 
  • branches/cu-security-branch/src/server/module.mk.in

    r7956 r8330  
    1010                $(DIR)/lookup.c \ 
    1111                $(DIR)/create.c \ 
    12                 $(DIR)/mirror.c \ 
    13                 $(DIR)/create-immutable-copies.c \ 
    1412                $(DIR)/batch-create.c \ 
    1513                $(DIR)/batch-remove.c \ 
  • branches/cu-security-branch/src/server/prelude.sm

    r7956 r8330  
    7070        struct PINT_smcb *smcb, job_status_s *js_p) 
    7171{ 
    72     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing pvfs2_prelude_sm:prelude_setup...\n"); 
    73     gossip_debug(GOSSIP_MIRROR_DEBUG,"\tbase frame:%d\tframe count:%d\n" 
    74                                     ,smcb->base_frame,smcb->frame_count); 
    7572    int ret; 
    7673    struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
     
    9491    int ret = -PVFS_EINVAL; 
    9592 
    96     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing pvfs2_prelude_work_sm:prelude_req_sched\n"); 
    97     gossip_debug(GOSSIP_MIRROR_DEBUG,"\tbase_frame:%d\tframe_count:%d\n" 
    98                                     ,smcb->base_frame,smcb->frame_count); 
    9993    gossip_debug(GOSSIP_SERVER_DEBUG, 
    10094        "(%p) %s (prelude sm) state: req_sched\n", s_op, 
     
    136130    if (s_op->target_handle == PVFS_HANDLE_NULL) 
    137131    { 
    138  
    139132        js_p->error_code = 0; 
    140133        return SM_ACTION_COMPLETE; 
  • branches/cu-security-branch/src/server/pvfs2-server-req.c

    r7956 r8330  
    4848extern struct PINT_server_req_params pvfs2_stuffed_create_params; 
    4949extern struct PINT_server_req_params pvfs2_precreate_pool_refiller_params; 
    50 extern struct PINT_server_req_params pvfs2_mirror_params; 
    51 extern struct PINT_server_req_params pvfs2_create_immutable_copies_params; 
    5250extern struct PINT_server_req_params pvfs2_get_cred_params; 
    5351 
     
    9492    /* 37 */ {PVFS_SERV_PRECREATE_POOL_REFILLER, &pvfs2_precreate_pool_refiller_params}, 
    9593    /* 38 */ {PVFS_SERV_UNSTUFF, &pvfs2_unstuff_params}, 
    96     /* 39 */ {PVFS_SERV_MIRROR, &pvfs2_mirror_params}, 
    97     /* 40 */ {PVFS_SERV_IMM_COPIES, &pvfs2_create_immutable_copies_params}, 
    98     /* 41 */ {PVFS_SERV_GETCRED, &pvfs2_get_cred_params} 
     94    /* nlmills: TODO: does this list need to be in a specific order? */ 
     95    /* 39 */ {PVFS_SERV_GETCRED, &pvfs2_get_cred_params} 
    9996}; 
    10097 
  • branches/cu-security-branch/src/server/pvfs2-server.h

    r7956 r8330  
    148148}; 
    149149 
    150 /*MIRROR structures*/ 
    151 typedef struct  
    152 { 
    153    /* session identifier created in the PVFS_SERV_IO request.  also used as  */ 
    154    /* the flow identifier.                                                   */ 
    155    bmi_msg_tag_t session_tag; 
    156  
    157    /*destination server address*/ 
    158    PVFS_BMI_addr_t svr_addr; 
    159  
    160    /*status from PVFS_SERV_IO*/ 
    161    PVFS_error io_status; 
    162  
    163    /*variables used to setup write completion ack*/ 
    164    void        *encoded_resp_p; 
    165    job_status_s recv_status; 
    166    job_id_t     recv_id; 
    167  
    168    /*variables used to setup flow between the src & dest datahandle*/ 
    169    flow_descriptor *flow_desc; 
    170    job_status_s     flow_status; 
    171    job_id_t         flow_job_id; 
    172    
    173 } write_job_t; 
    174  
    175  
    176 /*This structure is used during the processing of a "mirror" request.*/ 
    177 struct PINT_server_mirror_op 
    178 { 
    179    /*keep up with the number of outstanding jobs*/ 
    180    int job_count; 
    181  
    182    /*maximum response size for the write request*/ 
    183    int max_resp_sz; 
    184  
    185    /*info about each job*/ 
    186    write_job_t *jobs; 
    187 }; 
    188 typedef struct PINT_server_mirror_op PINT_server_mirror_op; 
    189  
    190 /* Source refers to the handle being copied, and destination refers to        */ 
    191 /* its copy.                                                                  */ 
    192 struct PINT_server_create_copies_op 
    193 { 
    194     /*number of I/O servers required to meet the mirroring request.           */ 
    195     uint32_t io_servers_required; 
    196  
    197     /*mirroring mode. attribute key is user.pvfs2.mirror.mode*/ 
    198     MIRROR_MODE mirror_mode; 
    199  
    200     /*the expected mirroring mode tells us how to edit the retrieved mirroring*/ 
    201     /*mode.  Example: if mirroring was called when immutable was set, then    */ 
    202     /*the expected mirroring mode would be MIRROR_ON_IMMUTABLE.               */ 
    203     MIRROR_MODE expected_mirror_mode; 
    204  
    205     /*buffer holding list of remote servers for all copies of the file*/ 
    206     char **my_remote_servers; 
    207  
    208     /*saved error code*/ 
    209     PVFS_error saved_error_code; 
    210  
    211     /*number of copies desired. value of user.pvfs2.mirror.copies attribute*/ 
    212     uint32_t copies; 
    213  
    214     /*successful/failed writes array in order of source handles         */ 
    215     /*0=>successful  !UINT64_HIGH=>failure   UINT64_HIGH=>initial state */ 
    216     /*accessed as if a 2-dimensional array [SrcHandleNR][#ofCopies]     */ 
    217     PVFS_handle *writes_completed; 
    218  
    219     /*number of attempts at writing handles*/ 
    220     int retry_count; 
    221  
    222     /*list of server names that will be used as destination servers*/ 
    223     char **io_servers;                        
    224  
    225     /*source remote server names in distribution*/ 
    226     char **remote_io_servers; 
    227  
    228     /*source local server names in distribution*/;                 
    229     char **local_io_servers; 
    230  
    231     /*number of source server names in the distribution*/                      
    232     int num_io_servers; 
    233  
    234     /*number of source remote server names in distribution*/                   
    235     int remote_io_servers_count;              
    236  
    237     /*number of source local server names in distribution*/ 
    238     int local_io_servers_count;               
    239  
    240     /*source datahandles in order of distribution*/ 
    241     PVFS_handle *handle_array_base; 
    242  
    243     /*local source datahandles*/ 
    244     PVFS_handle *handle_array_base_local; 
    245  
    246     /*destination datahandles in order of distribution*/           
    247     PVFS_handle *handle_array_copies;         
    248  
    249     /*local destination datahandles*/ 
    250     PVFS_handle *handle_array_copies_local;   
    251  
    252     /*remote destination datahandles*/ 
    253     PVFS_handle *handle_array_copies_remote; 
    254  
    255     /*number of local source datahandles*/ 
    256     int handle_array_base_local_count;  
    257  
    258     /*number of local destination datahandles*/ 
    259     int handle_array_copies_local_count;       
    260  
    261     /*number of remote destination datahandles*/ 
    262     int handle_array_copies_remote_count;      
    263  
    264     /*number of source datahandles*/ 
    265     uint32_t dfile_count; 
    266  
    267     /*source metadata handle*/                      
    268     PVFS_handle metadata_handle;  
    269  
    270     /*source file system*/ 
    271     PVFS_fs_id fs_id;  
    272  
    273     /*number of io servers defined in the current file system*/ 
    274     int io_servers_count;  
    275  
    276     /*size of the source distribution structure */ 
    277     uint32_t dist_size; 
    278  
    279     /*distribution structure for basic_dist*/ 
    280     PINT_dist *dist; 
    281  
    282     /*local source handles' attribute structure*/ 
    283     /*populates bstream_array_base_local with byte stream size*/ 
    284     PVFS_ds_attributes *ds_attr_a; 
    285  
    286     /*local source handles' byte stream size*/ 
    287     /*index corresponds to handle_array_base*/ 
    288     PVFS_size *bstream_array_base_local; 
    289 }; 
    290 typedef struct PINT_server_create_copies_op PINT_server_create_copies_op; 
    291  
    292  
    293 /*This macro is used to initialize a PINT_server_op structure when pjmp'ing */ 
    294 /*to pvfs2_create_immutable_copies_sm.                                      */ 
    295 #define PVFS_SERVOP_IMM_COPIES_FILL(__new_p,__cur_p)                           \ 
    296 do {                                                                           \ 
    297    memcpy(__new_p,__cur_p,sizeof(struct PINT_server_op));                      \ 
    298    (__new_p)->op = PVFS_SERV_IMM_COPIES;                                       \ 
    299    memset(&((__new_p)->u.create_copies),0,sizeof((__new_p)->u.create_copies)); \ 
    300 }while(0) 
    301  
    302  
    303  
    304150/* struct PINT_server_lookup_op 
    305151 * 
     
    499345 
    500346    /* generic structures used in most server operations */ 
    501     PVFS_ds_keyval key, val;  
     347    PVFS_ds_keyval key, val; 
    502348    PVFS_ds_keyval *key_a; 
    503349    PVFS_ds_keyval *val_a; 
     
    565411        struct PINT_server_batch_remove_op batch_remove; 
    566412        struct PINT_server_unstuff_op unstuff; 
    567         struct PINT_server_create_copies_op create_copies; 
    568         struct PINT_server_mirror_op mirror; 
    569413        struct PINT_server_getcred_op getcred; 
    570414    } u; 
     
    662506 * no return value 
    663507 */ 
    664 #ifdef GOSSIP_DISABLE_DEBUG 
     508/*#ifdef GOSSIP_DISABLE_DEBUG*/ 
    665509#define PINT_ACCESS_DEBUG(__s_op, __mask, format, f...) do {} while (0) 
     510/* 
    666511#else 
    667512#define PINT_ACCESS_DEBUG(__s_op, __mask, format, f...)                     \ 
     
    673518                              const char * format, 
    674519                              ...) __attribute__((format(printf, 3, 4))); 
    675 /* server side state machines */ 
    676 extern struct PINT_state_machine_s pvfs2_mirror_sm; 
    677  
     520*/ 
    678521 
    679522/* nested state machines */ 
     
    686529extern struct PINT_state_machine_s pvfs2_mkdir_work_sm; 
    687530extern struct PINT_state_machine_s pvfs2_unexpected_sm; 
    688 extern struct PINT_state_machine_s pvfs2_create_immutable_copies_sm; 
    689 extern struct PINT_state_machine_s pvfs2_call_msgpairarray_sm; 
    690 extern struct PINT_state_machine_s pvfs2_mirror_work_sm; 
    691531 
    692532/* Exported Prototypes */ 
  • branches/cu-security-branch/src/server/request-scheduler

    • Property svn:ignore set to
      module.mk
  • branches/cu-security-branch/src/server/set-eattr.sm

    r7956 r8330  
    1616#include "pint-eattr.h" 
    1717#include "pint-security.h" 
    18 #include "pvfs2-mirror.h" 
    19  
    20  
    21 enum { 
    22    PVFS2_MAKE_IMMUTABLE_COPIES = 200, 
    23    CREATE_IMM_COPIES = 300 
    24 }; 
    2518 
    2619%% 
     
    4538    { 
    4639        run seteattr_setobj_eattribs; 
    47         success => check_immutable; 
    4840        default => final_response; 
    4941    } 
    50  
    51     state check_immutable 
    52     { 
    53         run check_immutable; 
    54         PVFS2_MAKE_IMMUTABLE_COPIES => generate_copies; 
    55         default => final_response; 
    56     } 
    57  
    58     state generate_copies 
    59     { 
    60         pjmp setup_create_immutable_copies 
    61         { 
    62            CREATE_IMM_COPIES => pvfs2_create_immutable_copies_sm; 
    63         } 
    64         success => inspect_imm_copies; 
    65         default => final_response; 
    66     } 
    67  
    68     state inspect_imm_copies 
    69     { 
    70          run inspect_imm_copies; 
    71          default => final_response; 
    72     } 
    73  
    7442 
    7543    state final_response 
     
    8957 
    9058/* 
    91  * This routine checks keys to confirm that the name spaces are valid and to see 
    92  * if the immutable flag is set for the user.pvfs2.meta_hint namespace. 
     59 * This routine checks keys to confirm that the name spaces are valid. 
    9360 * It also prints debugging information. 
    9461 */ 
     
    9764{ 
    9865    struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    99     int i;  
    100  
    101     gossip_debug(GOSSIP_MIRROR_DEBUG,"Current Frame Pointer in set-eattr.sm " 
    102                                      "is %p.\n",s_op);        
    103  
     66    int i; 
    10467    PVFS_object_attr *a_p = NULL; 
    10568    a_p = &s_op->attr; 
     
    11578 
    11679    /* iterate through the keys that are being written */ 
    117     int j = 0; 
    118     char *valBuf = NULL; 
    11980    for (i = 0; i < s_op->req->u.seteattr.nkey; i++) 
    12081    { 
    121         gossip_debug(GOSSIP_MIRROR_DEBUG 
    122                     ,"\tkey:%s\n" 
    123                     ,(char *)s_op->req->u.seteattr.key[i].buffer); 
    124         valBuf = (char *)s_op->req->u.seteattr.val[i].buffer; 
    125         for (j=0; j<s_op->req->u.seteattr.val[i].buffer_sz; j++) 
    126             gossip_debug(GOSSIP_MIRROR_DEBUG,"\tval[%d]=%#x\n" 
    127                                             ,j 
    128                                             ,(unsigned int)valBuf[j]); 
    12982        js_p->error_code = PINT_eattr_namespace_verify( 
    13083            &s_op->req->u.seteattr.key[i], 
    13184            &s_op->req->u.seteattr.val[i]); 
    132  
    133         if(js_p->error_code) 
     85        if(!js_p->error_code) 
    13486        { 
    13587            return SM_ACTION_COMPLETE; 
    13688        } 
    137  
    138     } /*end for*/ 
    139  
     89    } 
    14090 
    14191    return SM_ACTION_COMPLETE; 
     
    199149} 
    200150 
    201 static PINT_sm_action setup_create_immutable_copies(struct PINT_smcb *smcb 
    202                                                    ,job_status_s *js_p) 
    203 { 
    204     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing setup_create_immutable_copies.." 
    205                                      "\n"); 
    206     struct PINT_server_op *s_op = PINT_sm_frame(smcb,PINT_FRAME_CURRENT); 
    207     int ret; 
    208    
    209     js_p->error_code = 0; 
    210  
    211     struct PINT_server_op *new_op = malloc(sizeof(struct PINT_server_op)); 
    212     if (!new_op) 
    213     { 
    214         js_p->error_code = -PVFS_ENOMEM; 
    215         return SM_ACTION_COMPLETE; 
    216     } 
    217     memset(new_op,0,sizeof(struct PINT_server_op)); 
    218  
    219     PVFS_SERVOP_IMM_COPIES_FILL(new_op,s_op); 
    220     new_op->u.create_copies.expected_mirror_mode = MIRROR_ON_IMMUTABLE; 
    221  
    222     ret = PINT_sm_push_frame(smcb,CREATE_IMM_COPIES,new_op); 
    223     if (ret != 0) 
    224     { 
    225        gossip_debug(GOSSIP_MIRROR_DEBUG,"\tseteattr: failed to setup " 
    226                                         "nested sm.\n"); 
    227        js_p->error_code = ret; 
    228     } 
    229  
    230     gossip_debug(GOSSIP_MIRROR_DEBUG,"\tseteattr:s_op:%p " 
    231                                      "\tnew_op:%p\n",s_op,new_op); 
    232     return SM_ACTION_COMPLETE; 
    233 }/*end action setup_create_immutable_copies*/ 
    234  
    235  
    236 static PINT_sm_action inspect_imm_copies(struct PINT_smcb *smcb 
    237                                         ,job_status_s *js_p) 
    238 { 
    239     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing inspect_imm_copies....\n"); 
    240  
    241     struct PINT_server_op *s_op   = PINT_sm_frame(smcb,PINT_FRAME_CURRENT) 
    242                          ,*imm_op = NULL; 
    243     int task_id, error_code, remaining; 
    244  
    245     /*js_p->error_code will be zero upon entering this function*/ 
    246  
    247     /*error_code will have the value returned in js_p->error_code via the */ 
    248     /*cleanup function in create-immutable-copies.sm                      */ 
    249     imm_op = PINT_sm_pop_frame(smcb, &task_id, &error_code, &remaining); 
    250  
    251     assert(imm_op->op == PVFS_SERV_IMM_COPIES); 
    252  
    253     /*check error codes from mirror copies*/ 
    254     gossip_debug(GOSSIP_MIRROR_DEBUG,"\tstatus of copies:%d\n",error_code);     
    255  
    256     if ( PVFS_get_errno_mapping(error_code) == EPERM ) 
    257     { 
    258         /*If EPERM, then create-immutable-copies detected that the  */ 
    259         /*mirror mode is NO_MIRRORING or the mode didn't exist.     */ 
    260         js_p->error_code = 0; 
    261     } else { 
    262       /*set error_code based on return from copies.                   */ 
    263       /*this error_code will then be passed to the caller of set-eattr*/ 
    264       js_p->error_code = error_code; 
    265     } 
    266  
    267     gossip_debug(GOSSIP_MIRROR_DEBUG,"\tfrom pop, imm_op:%p\n" 
    268                                     ,imm_op); 
    269  
    270     gossip_debug(GOSSIP_MIRROR_DEBUG,"\tcurrent, s_op:%p\n",s_op); 
    271  
    272     if (js_p->error_code) 
    273     { 
    274        gossip_err("File NOT mirrored successfully(%d)\n",js_p->error_code); 
    275     } 
    276     else 
    277     { 
    278        gossip_err("File successfully mirrored.\n"); 
    279     } 
    280  
    281     /*free memory from popped stack frame*/ 
    282     free(imm_op); 
    283  
    284     return SM_ACTION_COMPLETE; 
    285 }/*end action inspect_imm_copies*/ 
    286  
    287  
    288  
    289  
    290 /* 
    291  * Function: check_immutable 
    292  * 
    293  * Params:   server_op *b,  
    294  *           job_status_s *js_p 
    295  * 
    296  * Returns:  SM_action 
    297  * 
    298  * Synopsis: If the immutable flag is set, then make a mirror. 
    299  *            
    300  */ 
    301 static PINT_sm_action check_immutable(struct PINT_smcb *smcb 
    302                                          ,job_status_s *js_p) 
    303 { 
    304     gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing check_immutable....\n"); 
    305  
    306     struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 
    307     int i;  
    308  
    309     PVFS_flags         immutable_is_on = 0; 
    310     PVFS_metafile_hint hint; 
    311     PVFS_ds_keyval    *k=NULL, *v=NULL; 
    312  
    313     js_p->error_code = 0; 
    314     
    315     for (i = 0; i < s_op->req->u.seteattr.nkey; i++) 
    316     { 
    317         v = &s_op->req->u.seteattr.val[i]; 
    318         k = &s_op->req->u.seteattr.key[i]; 
    319  
    320         /* Are we working with the correct namespace?  The immutable flag is */ 
    321         /* a hint that can be set in the "user.pvfs2.meta_hint" namespace.   */ 
    322         if (strcmp(k->buffer,"user.pvfs2.meta_hint") != 0){ 
    323             continue; 
    324         } 
    325  
    326         memset(&hint, 0, sizeof(hint)); 
    327         memcpy(&hint, v->buffer, sizeof(v->buffer)); 
    328  
    329         gossip_debug(GOSSIP_MIRROR_DEBUG,"My converted buffer is %llu.\n" 
    330                                         ,llu(hint.flags)); 
    331  
    332         immutable_is_on = hint.flags & PVFS_IMMUTABLE_FL; 
    333  
    334         gossip_debug(GOSSIP_MIRROR_DEBUG 
    335                      ,"My key is %s.  My key value is %llu" 
    336                       "\n" 
    337                       "PVFS_IMMUTABLE_FL is %llu.\n" 
    338                      ,(char *)k->buffer 
    339                      ,llu(hint.flags) 
    340                      ,llu(PVFS_IMMUTABLE_FL) ); 
    341         gossip_debug(GOSSIP_MIRROR_DEBUG,"immutable_is_on is %llu.\n" 
    342                                         ,llu(immutable_is_on)); 
    343         gossip_debug(GOSSIP_MIRROR_DEBUG,"IMMUTABLE is %s.\n", 
    344                                           immutable_is_on ? "ON" : "OFF"); 
    345  
    346         if (immutable_is_on){ 
    347             js_p->error_code = PVFS2_MAKE_IMMUTABLE_COPIES; 
    348             break;  
    349         } 
    350     } /*end for*/ 
    351  
    352     return SM_ACTION_COMPLETE; 
    353 }/*end action check_immutable*/ 
    354  
    355  
    356  
    357  
    358151/* 
    359152 * Function: setattr_cleanup 
  • branches/cu-security-branch/src/server/unstuff.sm

    r7956 r8330  
    671671    } 
    672672 
    673   gossip_err("Attributes show file as stuffed.\n"); 
    674673    gossip_debug(GOSSIP_SERVER_DEBUG, 
    675674        "unstuff found stuffed file.\n"); 
  • branches/cu-security-branch/test/automated/README.tests

    r7956 r8330  
    11# 
    2 # $Date: 2009-09-02 20:16:21 $ 
     2# $Date: 2010-05-21 17:34:25 $ 
    33# 
    44# A brief description of the contents of the test/automated directory 
  • branches/cu-security-branch/test/automated/testscrpt.sh

    r7956 r8330  
    3838TESTNAME="`hostname -s`-nightly" 
    3939 
    40 # before starting any client apps, we need to deal with the possiblity that we 
    41 # might have built with shared libraries 
    42 export LD_LIBRARY_PATH=${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/lib:${LD_LIBRARY_PATH} 
    4340 
    4441# we only have a few hosts that meet all the earlier stated prereqs 
    4542VFS_HOSTS="gil lain stan" 
    4643 
    47 # 
    48 # Detect basic heap corruption 
    49 # 
    50 export MALLOC_CHECK_=2 
    5144 
    5245# takes one argument: a tag or branch in CVS 
     
    10396        sudo dmesg -c >/dev/null 
    10497        sudo /sbin/insmod ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/lib/modules/`uname -r`/kernel/fs/pvfs2/pvfs2.ko 
    105         sudo LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client \ 
     98        sudo ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client \ 
    10699                -p ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core \ 
    107100                -L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log 
     
    201194                        echo -n "====== running $f ..." 
    202195                        ./$f > ${PVFS2_DEST}/${f}-${CVS_TAG}.log 
    203                         if [ $? -eq 0 ] ; then  
     196                        if [ $? == 0 ] ; then  
    204197                                nr_passed=$((nr_passed + 1)) 
    205198                                echo "OK" 
  • branches/cu-security-branch/test/client/mpi-io/module.mk.in

    r7956 r8330  
    44        $(DIR)/mpi-io-test.c \ 
    55        $(DIR)/mpi-md-test.c \ 
    6         $(DIR)/mpi-unbalanced-test.c \ 
    7         $(DIR)/multi-md-test.c \ 
    8         $(DIR)/multi-md-test-size-sweep.c 
     6        $(DIR)/mpi-unbalanced-test.c 
  • branches/cu-security-branch/test/client/mpi-io/mpi-io-test.c

    r7956 r8330  
    3737static int64_t opt_block     = 16*1024*1024; 
    3838static int     opt_iter      = 1; 
    39 static int     opt_individual_file = 0; 
    4039static int     opt_coll      = 0; 
    4140static int     opt_correct   = 0; 
     
    5352static void usage(void); 
    5453static void handle_error(int errcode, char *str); 
    55 static int check_count(int count, MPI_Datatype type, MPI_Status *status); 
    5654 
    5755/* global vars */ 
     
    8280   int namelen; 
    8381   char processor_name[MPI_MAX_PROCESSOR_NAME]; 
    84    char file_name[1024]; 
    8582 
    8683   /* startup MPI and determine the rank of this process */ 
     
    9592   if (opt_verbose) fprintf(stdout,"Process %d of %d is on %s\n", 
    9693                                                                         mynod, nprocs, processor_name); 
    97     
    98    if (opt_individual_file) 
    99    { 
    100         sprintf(file_name, "%s_%d", opt_file, mynod); 
    101    } 
    102    else 
    103    { 
    104         strncpy(file_name, opt_file, 1023); 
    105    } 
    10694 
    10795   if (mynod == 0) printf("# Using mpi-io calls.\n"); 
     
    138126                comm = MPI_COMM_SELF; 
    139127        } 
    140    err = MPI_File_open(comm, file_name,  
     128   err = MPI_File_open(comm, opt_file,  
    141129                                                          MPI_MODE_CREATE | MPI_MODE_RDWR, MPI_INFO_NULL, &fh); 
    142130   if (err != MPI_SUCCESS) { 
     
    155143       * we want to measure cached performance of file servers */ 
    156144      if (opt_single == 1) 
    157       { 
    158145                        seek_position = 0; 
    159       } 
    160146      else 
    161       { 
    162            if (opt_individual_file) 
    163            { 
    164               seek_position = (j*opt_block); 
    165            } 
    166            else 
    167            { 
    168147                        /* seek to an appropriate position depending on the iteration  
    169148                         * and rank of the current process */ 
    170                       seek_position = (j*iter_jump)+(mynod*opt_block); 
    171            } 
    172       } 
     149                        seek_position = (j*iter_jump)+(mynod*opt_block); 
    173150 
    174151      MPI_File_seek(fh, seek_position, MPI_SEEK_SET); 
     
    191168                } 
    192169      if(err){ 
    193                         handle_error(err, "MPI_File_write/write_all"); 
    194       } 
    195                 if (opt_correct && !check_count(nchars, MPI_CHAR, &status)) { 
    196                         my_correct = 0; 
    197                    fprintf(stderr, "short write"); 
    198                 } 
     170         fprintf(stderr, "node %d, write error: %s\n", mynod,  
     171         strerror(errno)); 
     172      } 
    199173      if (opt_sync) sync_err = MPI_File_sync(fh); 
    200174      if (sync_err) { 
    201                         handle_error(err, "MPI_File_sync"); 
     175         fprintf(stderr, "node %d, sync error: %s\n", mynod,  
     176                                          strerror(errno)); 
    202177      } 
    203178 
     
    213188   err = MPI_File_close(&fh); 
    214189   if(err){ 
    215                 handle_error(err, "MPI_File_close"); 
     190      fprintf(stderr, "node %d, close error after write\n", mynod); 
    216191   } 
    217192     
     
    223198                           MPI_MODE_CREATE | MPI_MODE_RDWR, MPI_INFO_NULL, &fh); 
    224199   if (err < 0) { 
    225                 handle_error(err, "MPI_File_open"); 
     200      fprintf(stderr, "node %d, open error: %s\n", mynod, strerror(errno)); 
    226201      goto die_jar_jar_die; 
    227202   } 
     
    233208      /* reading and writing to the same block is cheating, but sometimes 
    234209       * we want to measure cached performance of file servers */ 
    235       if (opt_single == 1) 
    236       { 
    237             seek_position = 0; 
    238       } 
    239       else 
    240       { 
    241            if (opt_individual_file) 
    242            { 
    243               seek_position = (j*opt_block); 
    244            } 
    245            else 
    246            { 
    247             /* seek to an appropriate position depending on the iteration  
    248              * and rank of the current process */ 
    249               seek_position = (j*iter_jump)+(mynod*opt_block); 
    250            } 
    251       } 
     210      if (opt_single == 1) { 
     211                        seek_position = 0; 
     212                } 
     213      else { 
     214                        /* seek to an appropriate position depending on the iteration  
     215                         * and rank of the current process */ 
     216                        seek_position = (j*iter_jump)+(mynod*opt_block); 
     217                } 
    252218 
    253219      MPI_File_seek(fh, seek_position, MPI_SEEK_SET); 
     
    271237 
    272238      if (err < 0) { 
    273                         handle_error(err, "MPI_File_write/write_all"); 
    274                 } 
    275                 if (opt_correct && !check_count(nchars, MPI_CHAR, &status)) { 
    276                         my_correct = 0; 
    277                         fprintf(stderr, "short read"); 
     239                        fprintf(stderr, "node %d, read error, loc = %lld: %s\n", 
     240                                mynod, (long long) mynod*opt_block, strerror(myerrno)); 
    278241                } 
    279242 
     
    308271   err = MPI_File_close(&fh); 
    309272   if (err) { 
    310            handle_error(err, "MPI_File_close"); 
     273      fprintf(stderr, "node %d, close error after write\n", mynod); 
    311274   } 
    312275 
     
    388351   int c; 
    389352    
    390    while ((c = getopt(argc, argv, "b:i:f:p:CcyShvrwI")) != EOF) { 
     353   while ((c = getopt(argc, argv, "b:i:f:p:CcyShvrw")) != EOF) { 
    391354      switch (c) { 
    392355         case 'b': /* block size */ 
     
    395358         case 'i': /* iterations */ 
    396359            opt_iter = atoi(optarg); 
    397             break; 
    398          case 'I': /* individual file per process */ 
    399             opt_individual_file = 1; 
    400360            break; 
    401361         case 'f': /* filename */ 
     
    439399      } 
    440400   } 
    441     
    442    if ( opt_individual_file  && opt_coll ) 
    443    { 
    444         printf("Flags individual file in combination with collective " 
    445             "I/O operation not compatible\n");  
    446         exit(1); 
    447    } 
    448401   return(0); 
    449402} 
     
    457410    printf(" -C       perform operations Collectively [default: off]\n"); 
    458411    printf(" -i       iterations [default: 1]\n"); 
    459     printf(" -I       individual file per process [default: off]\n"); 
    460412    printf(" -f       filename [default: /foo/test.out]\n"); 
    461413    printf(" -p       path to pvfs2tab file to use [default: notset]\n"); 
     
    475427    MPI_Error_string(errcode, msg, &resultlen); 
    476428    fprintf(stderr, "%s: %s\n", str, msg); 
    477 } 
    478  
    479 static int check_count(int count, MPI_Datatype type, MPI_Status *status) 
    480 { 
    481     int statcount; 
    482     MPI_Get_count(status, type, &statcount); 
    483          return (statcount==count); 
     429    MPI_Abort(MPI_COMM_WORLD, 1); 
    484430} 
    485431 
     
    490436 *  tab-width: 3 
    491437 * 
     438 * vim: ts=3 
    492439 * End: 
    493  * vim: ts=3 
    494440 */  
     441 
     442 
  • branches/cu-security-branch/test/common/gen-locks/module.mk.in

    r7956 r8330  
    11DIR := common/gen-locks 
    22 
     3TESTSRC += \ 
     4        $(DIR)/test-pthread-lock.c \ 
     5        $(DIR)/test-null-lock.c 
     6 
     7# for the null locking example, we want to set the right defines at 
     8# compile time 
     9$(DIR)/test-null-lock.o: $(DIR)/test-null-lock.c 
     10        $(Q) "  CC              $@" 
     11        $(E)$(CC) $< $(CFLAGS) -D__GEN_NULL_LOCKING__ -c -o $@ 
     12 
     13# for the pthread locking example, we use default defines (and thus 
     14# stick with the implicit compile rule), but we need to add an extra lib 
     15# when linking 
     16$(DIR)/test-pthread-lock: $(DIR)/test-pthread-lock.o 
     17        $(Q) "  LD              $@" 
     18        $(E)$(LD) $< $(LDFLAGS) $(LIBS) -lpthread -o $@ 
     19 
  • branches/cu-security-branch/test/common/id-generator/test.c

    r7956 r8330  
    2424#include <stdio.h> 
    2525#include <stdlib.h> 
    26 #include "pvfs2.h" 
    27 #include "id-generator.h" 
     26#include <id-generator.h> 
    2827 
    2928/* This code is a pretty pointless example.  It just generates a handle 
  • branches/cu-security-branch/test/configure

    r7956 r8330  
    842842  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] 
    843843  --enable-verbose-build  Enables full output during build process 
    844   --disable-thread-safety Disables thread safety in the client library 
    845844  --enable-strict         Turn on strict debugging with gcc 
    846845 
     
    29232922fi; 
    29242923 
    2925 # Check whether --enable-thread-safety or --disable-thread-safety was given. 
    2926 if test "${enable_thread_safety+set}" = set; then 
    2927   enableval="$enable_thread_safety" 
    2928   if test "x$enableval" = "xno" ; then 
    2929     CFLAGS="$CFLAGS -D__GEN_NULL_LOCKING__" 
    2930     echo "$as_me:$LINENO: result: no" >&5 
    2931 echo "${ECHO_T}no" >&6 
    2932 fi 
    2933 else 
    2934      CFLAGS="$CFLAGS -D__GEN_POSIX_LOCKING__" 
    2935     echo "$as_me:$LINENO: result: yes" >&5 
    2936 echo "${ECHO_T}yes" >&6 
    2937  
    2938 fi; 
    2939  
    29402924PVFS2_SRC_RELATIVE_TOP="${srcdir}/.." 
    29412925PVFS2_BUILD_RELATIVE_TOP=".." 
     
    36383622else 
    36393623  ac_check_lib_save_LIBS=$LIBS 
    3640 LIBS="-lpvfs2 $LIBS" 
     3624LIBS="-lpvfs2 -lssl -lcrypto $LIBS" 
    36413625cat >conftest.$ac_ext <<_ACEOF 
    36423626/* confdefs.h.  */ 
     
    37073691echo "$as_me: error: \"could not find libpvfs2... must specify path to PVFS2 installation or build tree with --with-pvfs2-build\"" >&2;} 
    37083692   { (exit 1); exit 1; }; } 
    3709  
    37103693fi 
    37113694 
  • branches/cu-security-branch/test/configure.in

    r7956 r8330  
    9595) 
    9696 
    97 dnl a mechanism to turn off threads in the client library 
    98 AC_ARG_ENABLE(thread-safety, 
    99 [  --disable-thread-safety Disables thread safety in the client library], 
    100 [if test "x$enableval" = "xno" ; then 
    101     CFLAGS="$CFLAGS -D__GEN_NULL_LOCKING__" 
    102     AC_MSG_RESULT(no) 
    103 fi], 
    104 [   CFLAGS="$CFLAGS -D__GEN_POSIX_LOCKING__" 
    105     AC_MSG_RESULT(yes) ] 
    106 ) 
    107  
    10897dnl default paths: 
    10998PVFS2_SRC_RELATIVE_TOP="${srcdir}/.." 
     
    165154dnl make sure the libs exist and work 
    166155AC_CHECK_LIB(pvfs2, PVFS_sys_create, , 
    167     AC_MSG_ERROR("could not find libpvfs2... must specify path to PVFS2 installation or build tree with --with-pvfs2-build") 
    168     ) 
     156    AC_MSG_ERROR("could not find libpvfs2... must specify path to PVFS2 installation or build tree with --with-pvfs2-build"), -lssl -lcrypto) 
    169157 
    170158MPI_INTELC= 
  • branches/cu-security-branch/test/io/bmi/bench-initialize.c

    r7956 r8330  
    172172    if (flags & BMI_INIT_SERVER) 
    173173    { 
    174         ret = BMI_initialize(NULL, NULL, 0); 
    175     } 
    176     else 
    177     { 
    178  
    179         ret = BMI_initialize(NULL, NULL, 0); 
     174        ret = BMI_initialize(method, local_address, BMI_INIT_SERVER); 
     175    } 
     176    else 
     177    { 
     178 
     179        ret = BMI_initialize(method, NULL, 0); 
    180180    } 
    181181    if (ret < 0) 
     
    351351        ret = BMI_post_sendunexpected(&bmi_id, server_array[i], &ret, 
    352352                                      sizeof(int), BMI_EXT_ALLOC, 0, NULL, 
    353                                       context, NULL); 
     353                                      context); 
    354354        if (ret == 0) 
    355355        { 
  • branches/cu-security-branch/test/io/bmi/bench-initialize.h

    r7956 r8330  
    1212#include <mpi.h> 
    1313#include "bench-args.h" 
    14 #include "pvfs2.h" 
    1514 
    1615#ifndef __BENCH_INITIALIZE_H 
  • branches/cu-security-branch/test/io/bmi/bench-mem.h

    r7956 r8330  
    1111#include <math.h> 
    1212#include <mpi.h> 
    13 #include "pvfs2.h" 
    1413#include "bmi.h" 
    1514 
  • branches/cu-security-branch/test/io/bmi/module.mk.in

    r7956 r8330  
    88        $(DIR)/test-bmi-server-eagerbug.c \ 
    99        $(DIR)/test-bmi-server-list.c \ 
    10         $(DIR)/test-bmi-s2s-a.c \ 
    11         $(DIR)/test-bmi-s2s-b.c \ 
    1210        $(DIR)/pingpong.c 
    1311 
  • branches/cu-security-branch/test/io/bmi/pingpong.c

    r7956 r8330  
    2323#include <math.h> 
    2424 
    25 #include "pvfs2.h" 
    2625#include "bmi.h" 
    2726#include "gossip.h" 
     
    103102            ret = BMI_initialize(opts->method, opts->hostid, BMI_INIT_SERVER); 
    104103        else 
    105             ret = BMI_initialize(NULL, NULL, 0); 
     104            ret = BMI_initialize(opts->method, NULL, 0); 
    106105 
    107106        if (ret < 0) { 
     
    258257        ret = BMI_post_send(&(op_id[SEND]), peer_addr, tx_msg, 
    259258                        msg_len, BMI_PRE_ALLOC, 0, NULL, 
    260                         *context, NULL); 
     259                        *context); 
    261260        if (ret < 0) { 
    262261                fprintf(stderr, "BMI_post_send failure.\n"); 
     
    288287                                ret = BMI_post_recv(&(op_id[RECV]), peer_addr, recv_buffer, 
    289288                                                bytes, &actual_size, BMI_PRE_ALLOC, i, NULL, 
    290                                                 *context, NULL); 
     289                                                *context); 
    291290                     
    292291                                if (ret < 0) { 
     
    333332                        /* send the pong */ 
    334333                        ret = BMI_post_send(&(op_id[SEND]), peer_addr, send_buffer, 
    335                                         bytes, BMI_PRE_ALLOC, i, NULL, *context, NULL); 
     334                                        bytes, BMI_PRE_ALLOC, i, NULL, *context); 
    336335                        if (ret < 0) { 
    337336                                fprintf(stderr, "BMI_post_send failure.\n"); 
     
    442441        /* post the test parameters */ 
    443442        ret = BMI_post_sendunexpected(&(op_id[SEND]), peer_addr, tx_msg, 
    444                         msg_len, BMI_PRE_ALLOC, 0, NULL, *context, NULL); 
     443                        msg_len, BMI_PRE_ALLOC, 0, NULL, *context); 
    445444        if (ret < 0) { 
    446445                fprintf(stderr, "BMI_post_sendunexpected failure.\n"); 
     
    464463        /* post a recv for the ack */ 
    465464        ret = BMI_post_recv(&(op_id[RECV]), peer_addr, recv_buffer, 
    466                         msg_len, &actual_size, BMI_PRE_ALLOC, 0, NULL, *context, NULL); 
     465                        msg_len, &actual_size, BMI_PRE_ALLOC, 0, NULL, *context); 
    467466        if (ret < 0) { 
    468467                fprintf(stderr, "BMI_post_recv_failure.\n"); 
     
    508507                        ret = BMI_post_recv(&(op_id[RECV]), peer_addr, recv_buffer, 
    509508                                        bytes, &actual_size, BMI_PRE_ALLOC, i, 
    510                                         NULL, *context, NULL); 
     509                                        NULL, *context); 
    511510             
    512511                        if (ret < 0) { 
     
    518517                        if (opts->test == EXPECTED) { 
    519518                                ret = BMI_post_send(&(op_id[SEND]), peer_addr, send_buffer, 
    520                                                 bytes, BMI_PRE_ALLOC, i, NULL, *context, NULL); 
     519                                                bytes, BMI_PRE_ALLOC, i, NULL, *context); 
    521520                        } else { 
    522521                                ret = BMI_post_sendunexpected(&(op_id[SEND]), peer_addr,  
    523522                                                send_buffer, bytes, BMI_PRE_ALLOC, i,  
    524                                                 NULL, *context, NULL); 
     523                                                NULL, *context); 
    525524                        } 
    526525                        if (ret < 0) { 
  • branches/cu-security-branch/test/io/bmi/test-bmi-client-eagerbug.c

    r7956 r8330  
    1919#include <string.h> 
    2020 
    21 #include "pvfs2.h" 
    2221#include "bmi.h" 
    2322#include "test-bmi.h" 
     
    136135    ret = BMI_post_sendunexpected(&(client_ops[1]), server_addr, my_req, 
    137136                                  sizeof(struct server_request), BMI_PRE_ALLOC, 
    138                                   0, in_test_user_ptr, context, NULL); 
     137                                  0, in_test_user_ptr, context); 
    139138    if (ret < 0) 
    140139    { 
     
    170169    ret = BMI_post_recv(&(client_ops[0]), server_addr, my_ack, 
    171170                        sizeof(struct server_ack), &actual_size, BMI_PRE_ALLOC, 
    172                         0, in_test_user_ptr, context, NULL); 
     171                        0, in_test_user_ptr, context); 
    173172    if (ret < 0) 
    174173    { 
     
    223222     */ 
    224223    ret = BMI_post_send(&(client_ops[0]), server_addr, send_buffer, 
    225                         15000, BMI_PRE_ALLOC, 0, in_test_user_ptr, context, NULL); 
     224                        15000, BMI_PRE_ALLOC, 0, in_test_user_ptr, context); 
    226225    if (ret < 0) 
    227226    { 
     
    258257    /* final send to test eager bug *****************************/ 
    259258    ret = BMI_post_send(&(client_ops[0]), server_addr, testeagerbuf1, 
    260                         6, BMI_EXT_ALLOC, 1, NULL, context, NULL); 
     259                        6, BMI_EXT_ALLOC, 1, NULL, context); 
    261260    if (ret < 0) 
    262261    { 
     
    286285 
    287286    ret = BMI_post_send(&(client_ops[0]), server_addr, testeagerbuf1, 
    288                         6, BMI_EXT_ALLOC, 1, NULL, context, NULL); 
     287                        6, BMI_EXT_ALLOC, 1, NULL, context); 
    289288    if (ret < 0) 
    290289    { 
  • branches/cu-security-branch/test/io/bmi/test-bmi-client-list.c

    r7956 r8330  
    1919#include <string.h> 
    2020 
    21 #include "pvfs2.h" 
    2221#include "bmi.h" 
    2322#include "test-bmi.h" 
     
    143142    ret = BMI_post_sendunexpected(&(client_ops[1]), server_addr, my_req, 
    144143                                  sizeof(struct server_request), BMI_PRE_ALLOC, 
    145                                   0, in_test_user_ptr, context, NULL); 
     144                                  0, in_test_user_ptr, context); 
    146145    if (ret < 0) 
    147146    { 
     
    185184    ret = BMI_post_recv(&(client_ops[0]), server_addr, my_ack, 
    186185                        sizeof(struct server_ack), &actual_size, BMI_PRE_ALLOC, 
    187                         0, in_test_user_ptr, context, NULL); 
     186                        0, in_test_user_ptr, context); 
    188187    if (ret < 0) 
    189188    { 
     
    268267                             (const void **) buffer_list, size_list, 3, 
    269268                             (MSG1_SIZE + MSG2_SIZE + MSG3_SIZE), 
    270                              BMI_PRE_ALLOC, 0, in_test_user_ptr, context, NULL); 
     269                             BMI_PRE_ALLOC, 0, in_test_user_ptr, context); 
    271270    if (ret < 0) 
    272271    { 
  • branches/cu-security-branch/test/io/bmi/test-bmi-client.c

    r7956 r8330  
    1919#include <string.h> 
    2020 
    21 #include "pvfs2.h" 
    2221#include "bmi.h" 
    2322#include "test-bmi.h" 
     
    135134    ret = BMI_post_sendunexpected(&(client_ops[1]), server_addr, my_req, 
    136135                                  sizeof(struct server_request), BMI_PRE_ALLOC, 
    137                                   0, in_test_user_ptr, context, NULL); 
     136                                  0, in_test_user_ptr, context); 
    138137    if (ret < 0) 
    139138    { 
     
    177176    ret = BMI_post_recv(&(client_ops[0]), server_addr, my_ack, 
    178177                        sizeof(struct server_ack), &actual_size, BMI_PRE_ALLOC, 
    179                         0, in_test_user_ptr, context, NULL); 
     178                        0, in_test_user_ptr, context); 
    180179    if (ret < 0) 
    181180    { 
     
    238237     */ 
    239238    ret = BMI_post_send(&(client_ops[0]), server_addr, send_buffer, 
    240                         15000, BMI_PRE_ALLOC, 0, in_test_user_ptr, context, NULL); 
     239                        15000, BMI_PRE_ALLOC, 0, in_test_user_ptr, context); 
    241240    if (ret < 0) 
    242241    { 
  • branches/cu-security-branch/test/io/bmi/test-bmi-server-eagerbug.c

    r7956 r8330  
    1919#include <string.h> 
    2020 
    21 #include "pvfs2.h" 
    2221#include "bmi.h" 
    2322#include "gossip.h" 
     
    158157    ret = BMI_post_send(&(server_ops[1]), client_addr, my_ack, 
    159158                        sizeof(struct server_ack), BMI_PRE_ALLOC, 0, NULL, 
    160                         context, NULL); 
     159                        context); 
    161160    if (ret < 0) 
    162161    { 
     
    184183    ret = BMI_post_recv(&(server_ops[0]), client_addr, recv_buffer, 
    185184                        my_req->size, &actual_size, BMI_PRE_ALLOC, 0, NULL, 
    186                         context, NULL); 
     185                        context); 
    187186    if (ret < 0) 
    188187    { 
     
    233232    ret = BMI_post_recv_list(&(server_ops_list[0]), client_addr, buffer_list1, 
    234233                        size_list1, 2, 6, &actual_size, BMI_EXT_ALLOC, 1, NULL, 
    235                         context, NULL); 
     234                        context); 
    236235    if (ret < 0) 
    237236    { 
     
    276275    ret = BMI_post_recv_list(&(server_ops_list[0]), client_addr, buffer_list1, 
    277276                        size_list1, 2, 6, &actual_size, BMI_EXT_ALLOC, 1, NULL, 
    278                         context, NULL); 
     277                        context); 
    279278    if (ret < 0) 
    280279    { 
  • branches/cu-security-branch/test/io/bmi/test-bmi-server-list.c

    r7956 r8330  
    1919#include <string.h> 
    2020 
    21 #include "pvfs2.h" 
    2221#include "bmi.h" 
    2322#include "gossip.h" 
     
    166165    ret = BMI_post_send(&(server_ops[1]), client_addr, my_ack, 
    167166                        sizeof(struct server_ack), BMI_PRE_ALLOC, 0, NULL, 
    168                         context, NULL); 
     167                        context); 
    169168    if (ret < 0) 
    170169    { 
     
    192191    ret = BMI_post_recv_list(&(server_ops[0]), client_addr, buffer_list, 
    193192                             size_list, 2, my_req->size, &actual_size, 
    194                              BMI_PRE_ALLOC, 0, NULL, context, NULL); 
     193                             BMI_PRE_ALLOC, 0, NULL, context); 
    195194    if (ret < 0) 
    196195    { 
  • branches/cu-security-branch/test/io/bmi/test-bmi-server.c

    r7956 r8330  
    1919#include <string.h> 
    2020 
    21 #include "pvfs2.h" 
    2221#include "bmi.h" 
    2322#include "gossip.h" 
     
    156155    ret = BMI_post_send(&(server_ops[1]), client_addr, my_ack, 
    157156                        sizeof(struct server_ack), BMI_PRE_ALLOC, 0, NULL, 
    158                         context, NULL); 
     157                        context); 
    159158    if (ret < 0) 
    160159    { 
     
    182181    ret = BMI_post_recv(&(server_ops[0]), client_addr, recv_buffer, 
    183182                        my_req->size, &actual_size, BMI_PRE_ALLOC, 0, NULL, 
    184                         context, NULL); 
     183                        context); 
    185184    if (ret < 0) 
    186185    { 
  • branches/cu-security-branch/test/io/buffer/trove-init.c

    r7956 r8330  
    125125                              NULL, 
    126126                              trove_context, 
    127                               &op_id, 
    128                               NULL); 
     127                              &op_id); 
    129128    while (ret == 0) ret = trove_dspace_test( 
    130129        coll_id, op_id, trove_context, &count, NULL, NULL, &state, 
     
    141140    val.buffer_sz = sizeof(file_handle); 
    142141    ret = trove_keyval_write(coll_id, parent_handle, &key, &val, 
    143                                  0, NULL, NULL, trove_context, &op_id, NULL); 
     142                                 0, NULL, NULL, trove_context, &op_id); 
    144143    while (ret == 0) ret = trove_dspace_test( 
    145144         coll_id, op_id, trove_context, &count, NULL, NULL, &state, 
     
    182181                                   user_ptr_array, 
    183182                                   trove_context, 
    184                                    &op_id, 
    185                                    NULL); 
     183                                   &op_id); 
    186184        while (ret == 0) ret = trove_dspace_test( 
    187185            coll_id, op_id, trove_context, &count, NULL, NULL, &state, 
     
    197195 
    198196    fprintf(stderr, "+++++++++++++++++++++++++++++++\n"); 
    199     fprintf(stderr, "Trove init: coll_id=%d, handle=%lld, context=%d\n", coll_id, lld(parent_handle), (int)trove_context); 
     197    fprintf(stderr, "Trove init: coll_id=%d, handle=%lld, context=%d\n", coll_id, lld(parent_handle), trove_context); 
    200198 
    201199        free(mybuffer); 
  • branches/cu-security-branch/test/io/description/test-zero-fill.c

    <
    r7956 r8330  
    66#include <time.h> 
    77#include <unistd.h> 
     8#include <assert.h> 
     9 
    810#include "pvfs2-request.h" 
    911#include "pvfs2-sysint.h" 
     
    2628 
    2729int do_smallmem_noncontig_read( 
    28     PVFS_object_ref ref, PVFS_credentials * creds, 
     30    PVFS_object_ref ref, PVFS_credential * cred, 
    2931    int memsize, 
    3032    int chunks, 
     
    3234 
    3335int do_noncontig_read( 
    34     PVFS_object_ref ref, PVFS_credentials * creds,  
     36    PVFS_object_ref ref, PVFS_credential * cred,  
    3537    int chunks,  
    3638    ...); 
     
    3840int do_contig_read( 
    3941    PVFS_object_ref ref,  
    40     PVFS_credentials * creds,  
     42    PVFS_credential * cred,  
    4143    PVFS_offset offset,  
    4244    int length, 
    4345    PVFS_Request freq); 
    4446 
    45 int do_write(PVFS_object_ref ref, PVFS_credentials * creds, 
     47int do_write(PVFS_object_ref ref, PVFS_credential * cred, 
    4648             PVFS_offset offset, PVFS_size size, char * buff); 
    4749 
     
    157159 
    158160int do_smallmem_noncontig_read( 
    159     PVFS_object_ref ref, PVFS_credentials * creds, 
     161    PVFS_object_ref ref, PVFS_credential * cred, 
    160162    int memsize, 
    161163    int chunks, 
     
    210212 
    211213    res = PVFS_sys_read( 
    212         ref, readreq, 0, buff, memreq, creds, &io_resp, NULL); 
     214        ref, readreq, 0, buff, memreq, cred, &io_resp); 
    213215    if(res < 0) 
    214216    { 
     
    232234 
    233235int do_noncontig_read( 
    234     PVFS_object_ref ref, PVFS_credentials * creds,  
     236    PVFS_object_ref ref, PVFS_credential * cred,  
    235237    int chunks,  
    236238    ...) 
     
    285287 
    286288    res = PVFS_sys_read( 
    287         ref, readreq, 0, buff, memreq, creds, &io_resp, NULL); 
     289        ref, readreq, 0, buff, memreq, cred, &io_resp); 
    288290    if(res < 0) 
    289291    { 
     
    307309int do_contig_read( 
    308310    PVFS_object_ref ref,  
    309     PVFS_credentials * creds,  
     311    PVFS_credential * cred,  
    310312    PVFS_offset offset,  
    311313    int length, 
     
    349351 
    350352    res = PVFS_sys_read( 
    351         ref, readreq, offset, buff, memreq, creds, &io_resp, NULL); 
     353        ref, readreq, offset, buff, memreq, cred, &io_resp); 
    352354    if(res < 0) 
    353355    { 
     
    367369} 
    368370 
    369 int do_write(PVFS_object_ref ref, PVFS_credentials * creds, 
     371int do_write(PVFS_object_ref ref, PVFS_credential * cred, 
    370372             PVFS_offset offset, PVFS_size size, char * buff) 
    371373{ 
     
    403405    res = PVFS_sys_write( 
    404406        ref, filereq,  
    405         offset, buff, memreq, creds, &io_resp, NULL); 
     407        offset, buff, memreq, cred, &io_resp); 
    406408    if(res < 0) 
    407409    { 
     
    433435    PVFS_fs_id curfs; 
    434436    PVFS_sys_attr attr; 
    435     PVFS_credentials creds; 
     437    PVFS_credential *cred; 
    436438    PVFS_sys_dist * dist; 
    437439    int strip_size = 9; 
     
    502504                before_len, dashes, after_len, dashes); 
    503505    } 
    504  
    505     res = PVFS_sys_lookup(curfs, "/", &creds, &lookup_resp, 0, NULL); 
     506     
     507    cred = PVFS_util_gen_fake_credential(); 
     508    assert(cred); 
     509 
     510    res = PVFS_sys_lookup(curfs, "/", cred, &lookup_resp, 0); 
    506511    if(res < 0) 
    507512    { 
     
    518523    } 
    519524 
    520     PVFS_util_gen_credentials(&creds); 
    521  
    522525    attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; 
    523     attr.owner = creds.uid; 
    524     attr.group = creds.gid; 
     526    attr.owner = cred->userid; 
     527    attr.group = cred->group_array[0]; 
    525528    attr.perms = 1877; 
    526529    attr.atime = attr.ctime = attr.mtime = time(NULL); 
     
    534537 
    535538    res = PVFS_sys_create( 
    536         zerofill_fname, lookup_resp.ref, attr, &creds, dist, &create_resp, NULL, NULL); 
     539        zerofill_fname, lookup_resp.ref, attr, cred, dist, NULL, &create_resp); 
    537540    if(res < 0) 
    538541    { 
     
    543546    half_strip = strip_size / 2; 
    544547 
    545     do_write(create_resp.ref, &creds, 0, half_strip, as); 
    546  
    547     do_write(create_resp.ref, &creds, strip_size * 2, half_strip, bs); 
    548  
    549     res = do_contig_read( 
    550         create_resp.ref, &creds, 0, strip_size + half_strip, NULL); 
     548    do_write(create_resp.ref, cred, 0, half_strip, as); 
     549 
     550    do_write(create_resp.ref, cred, strip_size * 2, half_strip, bs); 
     551 
     552    res = do_contig_read( 
     553        create_resp.ref, cred, 0, strip_size + half_strip, NULL); 
    551554    if(res < 0) 
    552555    { 
     
    555558         
    556559    res = do_contig_read( 
    557         create_resp.ref, &creds, 0, strip_size + half_strip, PVFS_BYTE); 
    558     if(res < 0) 
    559     { 
    560         goto exit; 
    561     } 
    562  
    563     res = do_contig_read( 
    564         create_resp.ref, &creds,  
     560        create_resp.ref, cred, 0, strip_size + half_strip, PVFS_BYTE); 
     561    if(res < 0) 
     562    { 
     563        goto exit; 
     564    } 
     565 
     566    res = do_contig_read( 
     567        create_resp.ref, cred,  
    565568        (strip_size + half_strip), (strip_size + half_strip), NULL); 
    566569    if(res < 0) 
     
    570573 
    571574    res = do_contig_read( 
    572         create_resp.ref, &creds,  
     575        create_resp.ref, cred,  
    573576        (strip_size + half_strip), (strip_size + half_strip), PVFS_BYTE); 
    574577    if(res < 0) 
     
    578581 
    579582    res = do_contig_read( 
    580         create_resp.ref, &creds, 0, (strip_size * 3), NULL); 
    581     if(res < 0) 
    582     { 
    583         goto exit; 
    584     } 
    585  
    586     res = do_contig_read( 
    587         create_resp.ref, &creds, 0, (strip_size * 3), PVFS_BYTE); 
    588     if(res < 0) 
    589     { 
    590         goto exit; 
    591     } 
    592  
    593     res = do_contig_read( 
    594         create_resp.ref, &creds, 0, half_strip + 2, NULL); 
    595     if(res < 0) 
    596     { 
    597         goto exit; 
    598     } 
    599  
    600     res = do_contig_read( 
    601         create_resp.ref, &creds, 0, half_strip + 2, PVFS_BYTE); 
    602     if(res < 0) 
    603     { 
    604         goto exit; 
    605     } 
    606  
    607     res = do_contig_read( 
    608         create_resp.ref, &creds, half_strip + 2, strip_size, NULL); 
    609     if(res < 0) 
    610     { 
    611         goto exit; 
    612     } 
    613  
    614     res = do_contig_read( 
    615         create_resp.ref, &creds, half_strip + 2, strip_size, PVFS_BYTE); 
    616     if(res < 0) 
    617     { 
    618         goto exit; 
    619     } 
    620  
    621     res = do_contig_read( 
    622         create_resp.ref, &creds, strip_size + 1, 3, NULL); 
    623     if(res < 0) 
    624     { 
    625         goto exit; 
    626     } 
    627  
    628     res = do_contig_read( 
    629         create_resp.ref, &creds, strip_size + 1, 3, PVFS_BYTE); 
    630     if(res < 0) 
    631     { 
    632         goto exit; 
    633     } 
    634  
    635     res = do_contig_read( 
    636         create_resp.ref, &creds, 0, 2, NULL); 
    637     if(res < 0) 
    638     { 
    639         goto exit; 
    640     } 
    641  
    642     res = do_contig_read( 
    643         create_resp.ref, &creds, 0, 2, PVFS_BYTE); 
    644     if(res < 0) 
    645     { 
    646         goto exit; 
    647     } 
    648  
    649     do_write(create_resp.ref, &creds, strip_size * 4, half_strip, cs); 
    650  
    651     res = do_contig_read( 
    652         create_resp.ref, &creds, 
     583        create_resp.ref, cred, 0, (strip_size * 3), NULL); 
     584    if(res < 0) 
     585    { 
     586        goto exit; 
     587    } 
     588 
     589    res = do_contig_read( 
     590        create_resp.ref, cred, 0, (strip_size * 3), PVFS_BYTE); 
     591    if(res < 0) 
     592    { 
     593        goto exit; 
     594    } 
     595 
     596    res = do_contig_read( 
     597        create_resp.ref, cred, 0, half_strip + 2, NULL); 
     598    if(res < 0) 
     599    { 
     600        goto exit; 
     601    } 
     602 
     603    res = do_contig_read( 
     604        create_resp.ref, cred, 0, half_strip + 2, PVFS_BYTE); 
     605    if(res < 0) 
     606    { 
     607        goto exit; 
     608    } 
     609 
     610    res = do_contig_read( 
     611        create_resp.ref, cred, half_strip + 2, strip_size, NULL); 
     612    if(res < 0) 
     613    { 
     614        goto exit; 
     615    } 
     616 
     617    res = do_contig_read( 
     618        create_resp.ref, cred, half_strip + 2, strip_size, PVFS_BYTE); 
     619    if(res < 0) 
     620    { 
     621        goto exit; 
     622    } 
     623 
     624    res = do_contig_read( 
     625        create_resp.ref, cred, strip_size + 1, 3, NULL); 
     626    if(res < 0) 
     627    { 
     628        goto exit; 
     629    } 
     630 
     631    res = do_contig_read( 
     632        create_resp.ref, cred, strip_size + 1, 3, PVFS_BYTE); 
     633    if(res < 0) 
     634    { 
     635        goto exit; 
     636    } 
     637 
     638    res = do_contig_read( 
     639        create_resp.ref, cred, 0, 2, NULL); 
     640    if(res < 0) 
     641    { 
     642        goto exit; 
     643    } 
     644 
     645    res = do_contig_read( 
     646        create_resp.ref, cred, 0, 2, PVFS_BYTE); 
     647    if(res < 0) 
     648    { 
     649        goto exit; 
     650    } 
     651 
     652    do_write(create_resp.ref, cred, strip_size * 4, half_strip, cs); 
     653 
     654    res = do_contig_read( 
     655        create_resp.ref, cred, 
    653656        (strip_size * 3 + half_strip), (strip_size + half_strip), NULL); 
    654657    if(res < 0) 
     
    658661 
    659662    res = do_contig_read( 
    660         create_resp.ref, &creds, 
     663        create_resp.ref, cred, 
    661664        (strip_size * 3 + half_strip), (strip_size + half_strip), PVFS_BYTE); 
    662665    if(res < 0) 
     
    666669 
    667670    res = do_contig_read( 
    668         create_resp.ref, &creds, 
     671        create_resp.ref, cred, 
    669672        0, (strip_size * 5), NULL); 
    670673    if(res < 0) 
     
    674677 
    675678    res = do_contig_read( 
    676         create_resp.ref, &creds, 
     679        create_resp.ref, cred, 
    677680        0, (strip_size * 5), PVFS_BYTE); 
    678681    if(res < 0) 
     
    682685 
    683686    res = do_contig_read( 
    684         create_resp.ref, &creds,  
     687        create_resp.ref, cred,  
    685688        (strip_size + half_strip), (strip_size + half_strip), NULL); 
    686689    if(res < 0) 
     
    690693 
    691694    res = do_contig_read( 
    692         create_resp.ref, &creds,  
     695        create_resp.ref, cred,  
    693696        (strip_size + half_strip), (strip_size + half_strip), PVFS_BYTE); 
    694697    if(res < 0) 
     
    698701 
    699702    res = do_contig_read( 
    700         create_resp.ref, &creds, 
     703        create_resp.ref, cred, 
    701704        0, (strip_size * 3), NULL); 
    702705    if(res < 0) 
     
    706709 
    707710    res = do_contig_read( 
    708         create_resp.ref, &creds, 
     711        create_resp.ref, cred, 
    709712        0, (strip_size * 3), PVFS_BYTE); 
    710713    if(res < 0) 
     
    714717 
    715718    res = do_noncontig_read( 
    716         create_resp.ref, &creds, 
     719        create_resp.ref, cred, 
    717720        2, 
    718721        0, strip_size + half_strip, 
     
    724727     
    725728    res = do_noncontig_read( 
    726         create_resp.ref, &creds, 
     729        create_resp.ref, cred, 
    727730        2, 
    728731        0, strip_size, 
     
    734737 
    735738    res = do_noncontig_read( 
    736         create_resp.ref, &creds, 
     739        create_resp.ref, cred, 
    737740        2, 
    738741        0, strip_size, 
     
    744747 
    745748    res = do_noncontig_read( 
    746         create_resp.ref, &creds, 
     749        create_resp.ref, cred, 
    747750        2, 
    748751        strip_size, strip_size, 
     
    754757 
    755758    res = do_noncontig_read( 
    756         create_resp.ref, &creds, 
     759        create_resp.ref, cred, 
    757760        9, 
    758761        2, 2, 
     
    771774 
    772775    res = do_smallmem_noncontig_read( 
    773         create_resp.ref, &creds, 
     776        create_resp.ref, cred, 
    774777        strip_size, 
    775778        4, 
     
    784787     
    785788    res = do_smallmem_noncontig_read( 
    786         create_resp.ref, &creds, 
     789        create_resp.ref, cred, 
    787790        strip_size, 
    788791        2, 
     
    797800        zerofill_fname, 
    798801        lookup_resp.ref, 
    799         &creds, 
    800         NULL); 
     802