Changeset 8330
- Timestamp:
- 05/21/10 13:34:36 (3 years ago)
- Location:
- branches/cu-security-branch
- Files:
-
- 6 added
- 5 removed
- 156 modified
-
. (modified) (1 prop)
-
.project (added)
-
Makefile.in (modified) (13 diffs)
-
PVFS2-GLOBAL-TODO.txt (added)
-
configure (modified) (1 diff)
-
configure.in (modified) (1 diff)
-
doc/coding (modified) (1 prop)
-
doc/coding/romio-MPICH2-0.96p2-PVFS2-0.51.diff (modified) (45 diffs)
-
doc/design (modified) (1 prop)
-
doc/design/concepts.tex (modified) (1 diff)
-
doc/design/figs/getconfiginit.eps (modified) (previous)
-
doc/design/figs/getconfigservop.eps (modified) (previous)
-
doc/design/handle-allocator.tex (modified) (1 diff)
-
doc/doxygen (modified) (1 prop)
-
doc/random (modified) (1 prop)
-
examples (modified) (1 prop)
-
include/pvfs2-debug.h (modified) (1 diff)
-
include/pvfs2-mirror.h (deleted)
-
include/pvfs2-sysint.h (modified) (1 diff)
-
include/pvfs2-types.h (modified) (3 diffs)
-
include/pvfs2.h (added)
-
module.mk.in (modified) (1 diff)
-
src/apps/admin (modified) (1 prop)
-
src/apps/admin/pvfs2-cp.c (modified) (1 diff)
-
src/apps/admin/pvfs2-genconfig (modified) (1 diff)
-
src/apps/admin/pvfs2-getmattr (deleted)
-
src/apps/admin/pvfs2-lsplus.c (added)
-
src/apps/admin/pvfs2-setmattr (deleted)
-
src/apps/admin/pvfs2-xattr.c (modified) (14 diffs)
-
src/apps/fuse/pvfs2fuse.c (modified) (2 diffs)
-
src/apps/karma (modified) (1 prop)
-
src/apps/kernel/linux (modified) (1 prop)
-
src/apps/vis (modified) (1 prop)
-
src/client/sysint (modified) (1 prop)
-
src/client/sysint/client-state-machine.h (modified) (1 diff)
-
src/client/sysint/mgmt-iterate-handles-list.sm (modified) (2 diffs)
-
src/client/sysint/sys-io.sm (modified) (2 diffs)
-
src/client/sysint/sys-set-eattr.sm (modified) (1 diff)
-
src/common/dotconf (modified) (1 prop)
-
src/common/events/debug.h (modified) (1 diff)
-
src/common/events/fmt_fsm.c (modified) (1 diff)
-
src/common/events/fmt_fsm.h (modified) (2 diffs)
-
src/common/events/pvfs_tau_api.c (modified) (1 diff)
-
src/common/events/pvfs_tau_api.h (modified) (1 diff)
-
src/common/gen-locks (modified) (1 prop)
-
src/common/gossip (modified) (1 prop)
-
src/common/id-generator (modified) (1 prop)
-
src/common/llist (modified) (1 prop)
-
src/common/misc (modified) (1 prop)
-
src/common/misc/msgpairarray.h (modified) (1 diff)
-
src/common/misc/msgpairarray.sm (modified) (4 diffs)
-
src/common/misc/pint-cached-config.c (modified) (1 diff)
-
src/common/misc/pint-cached-config.h (modified) (1 diff)
-
src/common/misc/pvfs2-debug.c (modified) (1 diff)
-
src/common/misc/pvfs2-internal.h (modified) (1 diff)
-
src/common/misc/pvfs2-util.c (modified) (1 diff)
-
src/common/misc/state-machine.h (modified) (2 diffs)
-
src/common/misc/str-utils.c (modified) (6 diffs)
-
src/common/quickhash (modified) (1 prop)
-
src/common/quicklist (modified) (1 prop)
-
src/common/quicklist/quicklist.h (modified) (1 diff)
-
src/common/security (modified) (1 prop)
-
src/common/statecomp (modified) (1 prop)
-
src/io/bmi (modified) (1 prop)
-
src/io/bmi/bmi-method-callback.h (modified) (1 diff)
-
src/io/bmi/bmi.c (modified) (5 diffs)
-
src/io/bmi/bmi_gm (modified) (1 prop)
-
src/io/bmi/bmi_ib (modified) (1 prop)
-
src/io/bmi/bmi_mx (modified) (1 prop)
-
src/io/bmi/bmi_portals (modified) (1 prop)
-
src/io/bmi/bmi_tcp (modified) (1 prop)
-
src/io/bmi/bmi_tcp/bmi-tcp.c (modified) (1 diff)
-
src/io/bmi/bmi_tcp/socket-collection-epoll.c (modified) (1 diff)
-
src/io/buffer (modified) (1 prop)
-
src/io/description (modified) (1 prop)
-
src/io/description/pint-request.c (modified) (4 diffs)
-
src/io/dev (modified) (1 prop)
-
src/io/flow (modified) (1 prop)
-
src/io/flow/flowproto-bmi-cache (modified) (1 prop)
-
src/io/flow/flowproto-bmi-trove (modified) (1 prop)
-
src/io/flow/flowproto-dump-offsets (modified) (1 prop)
-
src/io/flow/flowproto-template (modified) (1 prop)
-
src/io/job (modified) (1 prop)
-
src/io/job/job-desc-queue.h (modified) (1 diff)
-
src/io/job/job.c (modified) (7 diffs)
-
src/io/job/job.h (modified) (3 diffs)
-
src/io/trove (modified) (1 prop)
-
src/io/trove/trove-dbpf (modified) (1 prop)
-
src/io/trove/trove-dbpf/dbpf-bstream-direct.c (modified) (1 diff)
-
src/io/trove/trove-dbpf/dbpf-bstream.c (modified) (1 diff)
-
src/io/trove/trove-dbpf/dbpf-dspace.c (modified) (2 diffs)
-
src/io/trove/trove-handle-mgmt (modified) (1 prop)
-
src/kernel/linux-2.4 (modified) (1 prop)
-
src/kernel/linux-2.6 (modified) (1 prop)
-
src/kernel/linux-2.6/namei.c (modified) (1 diff)
-
src/kernel/linux-2.6/pvfs2-utils.c (modified) (7 diffs)
-
src/proto (modified) (1 prop)
-
src/proto/PINT-le-bytefield.c (modified) (17 diffs)
-
src/proto/pvfs2-req-proto.h (modified) (4 diffs)
-
src/server (modified) (1 prop)
-
src/server/create-immutable-copies.sm (deleted)
-
src/server/create.sm (modified) (7 diffs)
-
src/server/io.sm (modified) (7 diffs)
-
src/server/mirror.sm (deleted)
-
src/server/module.mk.in (modified) (1 diff)
-
src/server/prelude.sm (modified) (3 diffs)
-
src/server/pvfs2-server-req.c (modified) (2 diffs)
-
src/server/pvfs2-server.h (modified) (6 diffs)
-
src/server/request-scheduler (modified) (1 prop)
-
src/server/set-eattr.sm (modified) (6 diffs)
-
src/server/unstuff.sm (modified) (1 diff)
-
test/automated/README.tests (modified) (1 diff)
-
test/automated/testscrpt.sh (modified) (3 diffs)
-
test/client/mpi-io/module.mk.in (modified) (1 diff)
-
test/client/mpi-io/mpi-io-test.c (modified) (18 diffs)
-
test/common/gen-locks/module.mk.in (modified) (1 diff)
-
test/common/gen-locks/test-null-lock.c (added)
-
test/common/gen-locks/test-pthread-lock.c (added)
-
test/common/id-generator/test.c (modified) (1 diff)
-
test/configure (modified) (4 diffs)
-
test/configure.in (modified) (2 diffs)
-
test/io/bmi/bench-initialize.c (modified) (2 diffs)
-
test/io/bmi/bench-initialize.h (modified) (1 diff)
-
test/io/bmi/bench-mem.h (modified) (1 diff)
-
test/io/bmi/module.mk.in (modified) (1 diff)
-
test/io/bmi/pingpong.c (modified) (9 diffs)
-
test/io/bmi/test-bmi-client-eagerbug.c (modified) (6 diffs)
-
test/io/bmi/test-bmi-client-list.c (modified) (4 diffs)
-
test/io/bmi/test-bmi-client.c (modified) (4 diffs)
-
test/io/bmi/test-bmi-server-eagerbug.c (modified) (5 diffs)
-
test/io/bmi/test-bmi-server-list.c (modified) (3 diffs)
-
test/io/bmi/test-bmi-server.c (modified) (3 diffs)
-
test/io/buffer/trove-init.c (modified) (4 diffs)
-
test/io/description/test-zero-fill.c (modified) (35 diffs)
-
test/io/flow/test-bmi-cache-client.c (modified) (2 diffs)
-
test/io/flow/test-bmi-cache-server.c (modified) (2 diffs)
-
test/io/flow/test-harness-client.c (modified) (2 diffs)
-
test/io/flow/test-harness-server-trove.c (modified) (2 diffs)
-
test/io/flow/test1-client.c (modified) (2 diffs)
-
test/io/flow/test1-server.c (modified) (2 diffs)
-
test/io/job/job-client-example.c (modified) (2 diffs)
-
test/io/job/job-server-example.c (modified) (1 diff)
-
test/io/job/module.mk.in (modified) (1 diff)
-
test/io/job/trove-job-create-toy.c (modified) (1 diff)
-
test/io/job/trove-job-ls.c (modified) (1 diff)
-
test/io/job/trove-job-mkfs.c (modified) (2 diffs)
-
test/io/job/trove-job-touch.c (modified) (2 diffs)
-
test/io/trove/test-listio.c (modified) (3 diffs)
-
test/io/trove/test-listio2.c (modified) (4 diffs)
-
test/io/trove/test-listio3.c (modified) (4 diffs)
-
test/io/trove/test-listio4.c (modified) (4 diffs)
-
test/io/trove/test-listio5.c (modified) (4 diffs)
-
test/io/trove/test-trove-cancel.c (modified) (6 diffs)
-
test/io/trove/trove-bstream.c (modified) (5 diffs)
-
test/io/trove/trove-create-stress.c (modified) (3 diffs)
-
test/io/trove/trove-export.c (modified) (4 diffs)
-
test/io/trove/trove-import.c (modified) (4 diffs)
-
test/io/trove/trove-key-iterate.c (modified) (3 diffs)
-
test/io/trove/trove-ls.c (modified) (5 diffs)
-
test/io/trove/trove-mkdir.c (modified) (3 diffs)
-
test/io/trove/trove-mkfs.c (modified) (1 diff)
-
test/io/trove/trove-rm.c (modified) (4 diffs)
-
test/io/trove/trove-rmdir.c (modified) (4 diffs)
-
test/io/trove/trove-test.h (modified) (2 diffs)
-
test/io/trove/trove-touch.c (modified) (3 diffs)
-
test/perfbase/benchmarks/benchmark-utils.c (modified) (3 diffs)
-
test/posix/module.mk.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cu-security-branch
- Property svn:ignore
-
old new 3 3 aclocal.m4 4 4 autom4te.cache 5 config.status 6 Makefile 7 pvfs2-config.h 8 module.mk
-
- Property svn:ignore
-
branches/cu-security-branch/Makefile.in
r7956 r8330 11 11 # publish copy over documents to the PVFS.org web pags 12 12 # admintools builds admin tools 13 # usertools builds user tools14 13 # kernapps builds userland helper programs for kernel driver 15 14 # cscope generates information for cscope utility … … 121 120 # here keeps make from accidentally doing too much work (see GNU 122 121 # make manual). 123 .PHONY: all clean dist distclean docs docsclean publish cscope tags codecheck admintools kernapps usertools122 .PHONY: all clean dist distclean docs docsclean publish cscope tags codecheck admintools kernapps 124 123 125 124 ################################################################ … … 437 436 # library 438 437 ADMINSRC_SERVER := 439 # usRSRC is source code for userland programs440 USERSRC :=441 438 # LIBSRC is source code for libpvfs2 442 439 LIBSRC := … … 553 550 # ADMINDEPENDS is a list of dependency files for admin programs 554 551 ADMINDEPENDS := $(patsubst %.c,%.d, $(filter %.c,$(ADMINSRC))) 555 #556 # USEROBJS is a list of user program objects557 USEROBJS := $(patsubst %.c,%.o, $(filter %.c,$(USERSRC)))558 # USERTOOLS is a list of user program executables559 USERTOOLS := $(patsubst %.c,%, $(filter %.c, $(USERSRC)))560 # USERDEPENDS is a list of dependency files for user programs561 USERDEPENDS := $(patsubst %.c,%.d, $(filter %.c,$(USERSRC)))562 552 563 553 ifdef BUILD_SERVER … … 639 629 else 640 630 DEPENDS := $(sort $(LIBDEPENDS) $(SERVERDEPENDS) $(SERVERBINDEPENDS) \ 641 $(MISCDEPENDS) $(USERDEPENDS)\631 $(MISCDEPENDS) \ 642 632 $(ADMINDEPENDS) $(ADMINDEPENDS_SERVER) $(KERNAPPDEPENDS) $(VISDEPENDS) \ 643 633 $(VISMISCDEPENDS) $(KARMADEPENDS) $(STATECOMPDEPS) $(FUSEDEPENDS)) … … 651 641 all:: $(BMILIBRARIES) 652 642 else 653 all:: $(SERVER) $(KARMA) $(LIBRARIES) admintools usertools$(VISS) $(KARMA) $(FUSE)643 all:: $(SERVER) $(KARMA) $(LIBRARIES) admintools $(VISS) $(KARMA) $(FUSE) 654 644 endif 655 645 656 646 # target for building admin tools 657 647 admintools: $(ADMINTOOLS) $(ADMINTOOLS_SERVER) 658 #target for building user tools659 usertools: $(USERTOOLS)660 648 661 649 # target for building kernel driver userland programs … … 862 850 $(ADMINTOOLS): %: %.o $(LIBRARIES) 863 851 $(ADMINTOOLS_SERVER): %: %.o $(LIBRARIES) lib/libpvfs2-server.a 864 $(USERTOOLS): %: %.o $(LIBRARIES)865 852 866 853 $(KERNAPPS): %: %.o $(LIBRARIES) … … 927 914 $(ADMINOBJS) $(ADMINOBJS_SERVER) $(ADMINTOOLS)\ 928 915 $(ADMINTOOLS_SERVER) lib/libpvfs2-server.a\ 929 $(USERTOOLS) $(USEROBJS) \930 916 $(KERNAPPOBJS) $(KERNAPPS) $(KERNAPPSTHR) \ 931 917 $(VISS) $(VISMISCOBJS) $(VISOBJS) $(VISDEPENDS)\ … … 958 944 bmidist: cleaner 959 945 @sh $(srcdir)/maint/make-bmi-dist.sh $(srcdir) $(builddir) @PVFS2_VERSION@ 960 cp -u $(builddir)/config.save $(builddir)/config.status946 if test -f $(builddir)/config.save; then cp -u $(builddir)/config.save $(builddir)/config.status; fi 961 947 endif 962 948 … … 973 959 rm -f pvfs2-config.h.in~ 974 960 rm -f $(srcdir)/cscope.out $(srcdir)/cscope.files 975 cp -p config.status config.save961 if test -f config.status; then cp -p config.status config.save; fi 976 962 rm -f config.log config.status config.cache 977 963 rm -f pvfs-@PVFS2_VERSION@.tar.gz … … 1073 1059 install -m 644 $(srcdir)/include/pvfs2-hint.h $(includedir) 1074 1060 install -m 644 $(srcdir)/include/pvfs2-compat.h $(includedir) 1075 install -m 644 $(srcdir)/include/pvfs2-mirror.h $(includedir)1076 1061 1077 1062 install -d $(libdir) … … 1108 1093 install -d $(bindir) 1109 1094 install -m 755 $(ADMINTOOLS) $(bindir) 1110 install -m 755 $(USERTOOLS) $(bindir)1111 1095 # for compatibility in case anyone really wants "lsplus" 1112 1096 $(LN_S) pvfs2-ls $(bindir)/pvfs2-lsplus … … 1115 1099 install -m 755 $(srcdir)/src/apps/admin/pvfs2-genconfig $(bindir) 1116 1100 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)1119 1101 ifdef BUILD_KARMA 1120 1102 install -m 755 $(KARMA) $(bindir) -
branches/cu-security-branch/configure
r7956 r8330 1402 1402 PVFS2_VERSION_MINOR=8 1403 1403 PVFS2_VERSION_SUB=1 1404 #PVFS2_PRE=""1405 PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME"1404 PVFS2_PRE="" 1405 #PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME" 1406 1406 1407 1407 PVFS2_VERSION=$PVFS2_VERSION_MAJOR.$PVFS2_VERSION_MINOR.$PVFS2_VERSION_SUB$PVFS2_VERSION_PRE -
branches/cu-security-branch/configure.in
r7956 r8330 20 20 PVFS2_VERSION_MINOR=8 21 21 PVFS2_VERSION_SUB=1 22 #PVFS2_PRE=""23 PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME"22 PVFS2_PRE="" 23 #PVFS2_VERSION_PRE="pre1-$CONFIGURE_TIME" 24 24 25 25 PVFS2_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
-
Property
svn:ignore set
to
-
branches/cu-security-branch/doc/coding/romio-MPICH2-0.96p2-PVFS2-0.51.diff
r7956 r8330 2141 2141 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2142 2142 /* 2143 - * $Id: ad_pvfs.h,v 1.3 2002/10/24 17:00:57 groppExp $2144 + * $Id: ad_pvfs.h,v 1.5 2004/06/07 19:26:28 groppExp $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 $ 2145 2145 * 2146 2146 * Copyright (C) 1997 University of Chicago. … … 2177 2177 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2178 2178 /* 2179 - * $Id: ad_pvfs_flush.c,v 1.11 2003/04/18 20:15:01 DavidExp $2180 + * $Id: ad_pvfs_flush.c,v 1.12 2004/05/20 19:05:17 roblExp $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 $ 2181 2181 * 2182 2182 * Copyright (C) 1997 University of Chicago. … … 2225 2225 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2226 2226 /* 2227 - * $Id: ad_pvfs_resize.c,v 1.11 2003/04/18 20:15:01 DavidExp $2228 + * $Id: ad_pvfs_resize.c,v 1.13 2004/06/07 16:42:26 groppExp $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 $ 2229 2229 * 2230 2230 * Copyright (C) 1997 University of Chicago. … … 2282 2282 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2283 2283 /* 2284 - * $Id: ad_pvfs2_close.c,v 1.2 2003/06/27 23:23:16 roblExp $2285 + * $Id: ad_pvfs2_close.c,v 1.3 2004/05/20 19:13:57 roblExp $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 $ 2286 2286 * 2287 2287 * Copyright (C) 1997 University of Chicago. … … 2314 2314 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2315 2315 /* 2316 - * $Id: ad_pvfs2_common.c,v 1.7 2003/09/05 20:43:58 roblExp $2317 + * $Id: ad_pvfs2_common.c,v 1.9 2004/03/25 22:17:45 roblExp $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 $ 2318 2318 * 2319 2319 * Copyright (C) 2003 University of Chicago. … … 2423 2423 /* -*- Mode: C; c-basic-offset:4 ; -*- 2424 2424 * vim: ts=8 sts=4 sw=4 noexpandtab 2425 - * $Id: ad_pvfs2_common.h,v 1.8 2003/09/18 23:13:18 roblExp $2426 + * $Id: ad_pvfs2_common.h,v 1.10 2004/03/25 22:22:34 roblExp $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 $ 2427 2427 * 2428 2428 * Copyright (C) 1997 University of Chicago. … … 2469 2469 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2470 2470 /* 2471 - * $Id: ad_pvfs2_delete.c,v 1.5 2003/09/05 20:43:58 roblExp $2472 + * $Id: ad_pvfs2_delete.c,v 1.8 2004/05/20 20:31:05 roblExp $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 $ 2473 2473 * 2474 2474 * Copyright (C) 2003 University of Chicago. … … 2547 2547 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2548 2548 /* 2549 - * $Id: ad_pvfs2_fcntl.c,v 1.3 2003/08/05 22:59:20 roblExp $2550 + * $Id: ad_pvfs2_fcntl.c,v 1.5 2004/05/20 20:31:05 roblExp $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 $ 2551 2551 * 2552 2552 * Copyright (C) 1997 University of Chicago. … … 2588 2588 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2589 2589 /* 2590 - * $Id: ad_pvfs2_flush.c,v 1.3 2003/10/30 18:53:40 roblExp $2591 + * $Id: ad_pvfs2_flush.c,v 1.9 2004/05/20 20:31:05 roblExp $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 $ 2592 2592 * 2593 2593 * Copyright (C) 1997 University of Chicago. … … 2655 2655 /* -*- Mode: C; c-basic-offset:4 ; -*- 2656 2656 * 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 roblExp $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 $ 2659 2659 * 2660 2660 * Copyright (C) 1997 University of Chicago. … … 2865 2865 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 2866 2866 /* 2867 - * $Id: ad_pvfs2_read.c,v 1.7 2003/08/07 23:34:31 roblExp $2868 + * $Id: ad_pvfs2_read.c,v 1.10 2004/06/07 20:48:15 roblExp $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 $ 2869 2869 * 2870 2870 * Copyright (C) 1997 University of Chicago. … … 3640 3640 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 3641 3641 /* 3642 - * $Id: ad_pvfs2_resize.c,v 1.4 2003/09/04 23:20:09 roblExp $3643 + * $Id: ad_pvfs2_resize.c,v 1.10 2004/05/20 20:31:05 roblExp $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 $ 3644 3644 * 3645 3645 * Copyright (C) 1997 University of Chicago. … … 3700 3700 /* -*- Mode: C; c-basic-offset:4 ; -*- 3701 3701 * vim: ts=8 sts=4 sw=4 noexpandtab 3702 - * $Id: ad_pvfs2_write.c,v 1.11 2003/09/05 20:47:47 roblExp $3703 + * $Id: ad_pvfs2_write.c,v 1.13 2004/05/20 20:31:05 roblExp $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 $ 3704 3704 * 3705 3705 * Copyright (C) 1997 University of Chicago. … … 3943 3943 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 3944 3944 /* 3945 - * $Id: ad_open.c,v 1.23 2003/09/05 22:35:49 groppExp $3946 + * $Id: ad_open.c,v 1.27 2004/05/20 07:43:36 DavidExp $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 $ 3947 3947 * 3948 3948 * Copyright (C) 1997 University of Chicago. … … 4150 4150 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 4151 4151 /* 4152 - * $Id: ad_write_str.c,v 1.11 2003/07/26 23:16:57 DavidExp $4153 + * $Id: ad_write_str.c,v 1.12 2003/12/16 21:51:22 roblExp $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 $ 4154 4154 * 4155 4155 * Copyright (C) 1997 University of Chicago. … … 4200 4200 +/* -*- Mode: C; c-basic-offset:4 ; -*- */ 4201 4201 +/* 4202 + * $Id: ad_write_str_naive.c,v 1.1 2003/12/16 21:51:23 roblExp $4202 + * $Id: romio-MPICH2-0.96p2-PVFS2-0.51.diff,v 1.2 2009/06/11 15:49:22 nlmills Exp $ 4203 4203 + * 4204 4204 + * Copyright (C) 2001 University of Chicago. … … 4583 4583 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 4584 4584 /* 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 roblExp $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 $ 4587 4587 * 4588 4588 * Copyright (C) 1997 University of Chicago. … … 5228 5228 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5229 5229 /* 5230 - * $Id: lock.c,v 1.10 2003/12/10 22:44:12 groppExp $5231 + * $Id: lock.c,v 1.11 2004/05/26 17:56:55 thakurExp $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 $ 5232 5232 * 5233 5233 * Copyright (C) 1997 University of Chicago. … … 5267 5267 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5268 5268 /* 5269 - * $Id: adio.h,v 1.30 2003/09/08 13:35:43 groppExp $5270 + * $Id: adio.h,v 1.35 2004/06/07 17:59:57 groppExp $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 $ 5271 5271 * 5272 5272 * Copyright (C) 1997 University of Chicago. … … 5345 5345 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5346 5346 /* 5347 - * $Id: adioi.h,v 1.21 2003/12/04 22:20:06 roblExp $5348 + * $Id: adioi.h,v 1.22 2003/12/17 16:49:52 roblExp $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 $ 5349 5349 * 5350 5350 * Copyright (C) 1997 University of Chicago. … … 5385 5385 @@ -1,10 +1,10 @@ 5386 5386 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5387 -/* $Id: mpipr.h,v 1.8 2003/09/08 13:36:43 groppExp $5388 +/* $Id: mpipr.h,v 1.9 2004/01/08 22:41:54 groppExp $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 $ 5389 5389 * 5390 5390 * (C) 2001 by Argonne National Laboratory. … … 5524 5524 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5525 5525 /* 5526 - * $Id: mpio.h.in,v 1.20 2003/11/07 00:14:54 roblExp $5527 + * $Id: mpio.h.in,v 1.25 2004/06/01 19:21:16 thakurExp $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 $ 5528 5528 * 5529 5529 * Copyright (C) 1997 University of Chicago. … … 5775 5775 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5776 5776 /* 5777 - * $Id: close.c,v 1.11 2003/07/01 19:12:39 roblExp $5778 + * $Id: close.c,v 1.12 2004/04/06 18:46:31 thakurExp $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 $ 5779 5779 * 5780 5780 * Copyright (C) 1997 University of Chicago. … … 5816 5816 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5817 5817 /* 5818 - * $Id: delete.c,v 1.18 2003/09/15 13:33:30 groppExp $5819 + * $Id: delete.c,v 1.19 2004/02/12 06:08:22 DavidExp $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 $ 5820 5820 * 5821 5821 * Copyright (C) 1997 University of Chicago. … … 5902 5902 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5903 5903 /* 5904 - * $Id: get_posn_sh.c,v 1.17 2003/07/01 19:12:39 roblExp $5905 + * $Id: get_posn_sh.c,v 1.18 2004/02/12 06:08:24 DavidExp $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 $ 5906 5906 * 5907 5907 * Copyright (C) 1997 University of Chicago. … … 5971 5971 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 5972 5972 /* 5973 - * $Id: get_view.c,v 1.15 2003/04/18 20:15:08 DavidExp $5974 + * $Id: get_view.c,v 1.16 2004/02/12 06:08:26 DavidExp $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 $ 5975 5975 * 5976 5976 * Copyright (C) 1997 University of Chicago. … … 6026 6026 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 6027 6027 /* 6028 - * $Id: ioreq_f2c.c,v 1.10 2003/02/24 23:52:08 roblExp $6029 + * $Id: ioreq_f2c.c,v 1.11 2004/02/12 06:08:27 DavidExp $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 $ 6030 6030 * 6031 6031 * Copyright (C) 1997 University of Chicago. … … 6066 6066 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 6067 6067 /* 6068 - * $Id: iread_sh.c,v 1.20 2003/07/01 19:12:40 roblExp $6069 + * $Id: iread_sh.c,v 1.21 2004/02/12 06:08:29 DavidExp $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 $ 6070 6070 * 6071 6071 * Copyright (C) 1997 University of Chicago. … … 6324 6324 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 6325 6325 /* 6326 - * $Id: mpioprof.h,v 1.9 2003/09/08 13:32:48 groppExp $6327 + * $Id: mpioprof.h,v 1.10 2004/05/28 23:05:41 DavidExp $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 $ 6328 6328 * 6329 6329 * Copyright (C) 1997 University of Chicago. … … 6412 6412 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 6413 6413 /* 6414 - * $Id: open.c,v 1.32 2003/09/22 21:23:23 groppExp $6415 + * $Id: open.c,v 1.34 2004/05/19 23:55:09 thakurExp $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 $ 6416 6416 * 6417 6417 * Copyright (C) 1997 University of Chicago. … … 6630 6630 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 6631 6631 /* 6632 - * $Id: r ead_alle.c,v 1.15 2003/09/08 13:35:04 groppExp $6633 + * $Id: r ead_alle.c,v 1.16 2004/02/12 06:08:42 DavidExp $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 $ 6634 6634 * 6635 6635 * Copyright (C) 1997 University of Chicago. … … 6696 6696 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 6697 6697 /* 6698 - * $Id: r ead_at.c,v 1.20 2003/09/08 13:33:43 groppExp $6699 + * $Id: r ead_at.c,v 1.21 2004/02/12 06:08:44 DavidExp $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 $ 6700 6700 * 6701 6701 * Copyright (C) 1997 University of Chicago. … … 6897 6897 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 6898 6898 /* 6899 - * $Id: r ead_ordb.c,v 1.20 2003/09/25 13:25:11 groppExp $6900 + * $Id: r ead_ordb.c,v 1.21 2004/02/12 06:08:49 DavidExp $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 $ 6901 6901 * 6902 6902 * Copyright (C) 1997 University of Chicago. … … 7063 7063 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7064 7064 /* 7065 - * $Id: r ead_orde.c,v 1.15 2003/09/08 13:35:04 groppExp $7066 + * $Id: r ead_orde.c,v 1.16 2004/02/12 06:08:51 DavidExp $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 $ 7067 7067 * 7068 7068 * Copyright (C) 1997 University of Chicago. … … 7118 7118 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7119 7119 /* 7120 - * $Id: r ead_sh.c,v 1.19 2003/09/15 13:33:31 groppExp $7121 + * $Id: r ead_sh.c,v 1.20 2004/02/12 06:08:53 DavidExp $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 $ 7122 7122 * 7123 7123 * Copyright (C) 1997 University of Chicago. … … 7292 7292 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7293 7293 /* 7294 - * $Id: seek_sh.c,v 1.18 2003/09/15 13:33:31 groppExp $7295 + * $Id: seek_sh.c,v 1.19 2004/02/12 06:09:02 DavidExp $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 $ 7296 7296 * 7297 7297 * Copyright (C) 1997 University of Chicago. … … 7522 7522 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7523 7523 /* 7524 - * $Id: set_errh.c,v 1.11 2003/04/18 20:15:12 DavidExp $7525 + * $Id: set_errh.c,v 1.12 2003/12/16 17:32:34 thakurExp $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 $ 7526 7526 * 7527 7527 * Copyright (C) 1997 University of Chicago. … … 7561 7561 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7562 7562 /* 7563 - * $Id: wr_atallb.c,v 1.16 2003/09/05 22:33:57 groppExp $7564 + * $Id: wr_atallb.c,v 1.17 2004/02/12 06:09:09 DavidExp $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 $ 7565 7565 * 7566 7566 * Copyright (C) 1997 University of Chicago. … … 7713 7713 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7714 7714 /* 7715 - * $Id: wr_atalle.c,v 1.16 2003/09/08 13:35:05 groppExp $7716 + * $Id: wr_atalle.c,v 1.17 2004/02/12 06:09:10 DavidExp $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 $ 7717 7717 * 7718 7718 * Copyright (C) 1997 University of Chicago. … … 7779 7779 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7780 7780 /* 7781 - * $Id: write_allb.c,v 1.15 2003/09/05 22:34:31 groppExp $7782 + * $Id: write_allb.c,v 1.16 2004/02/12 06:09:12 DavidExp $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 $ 7783 7783 * 7784 7784 * Copyright (C) 1997 University of Chicago. … … 7916 7916 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7917 7917 /* 7918 - * $Id: write_alle.c,v 1.15 2003/09/05 22:34:32 groppExp $7919 + * $Id: write_alle.c,v 1.18 2004/03/17 20:31:27 groppExp $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 $ 7920 7920 * 7921 7921 * Copyright (C) 1997 University of Chicago. … … 7984 7984 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 7985 7985 /* 7986 - * $Id: write_at.c,v 1.20 2003/09/08 21:29:22 groppExp $7987 + * $Id: write_at.c,v 1.21 2004/02/12 06:09:15 DavidExp $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 $ 7988 7988 * 7989 7989 * Copyright (C) 1997 University of Chicago. … … 8183 8183 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 8184 8184 /* 8185 - * $Id: write_ordb.c,v 1.20 2003/09/25 13:25:11 groppExp $8186 + * $Id: write_ordb.c,v 1.21 2004/02/12 06:09:17 DavidExp $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 $ 8187 8187 * 8188 8188 * Copyright (C) 1997 University of Chicago. … … 8351 8351 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 8352 8352 /* 8353 - * $Id: write_orde.c,v 1.15 2003/09/08 13:35:05 groppExp $8354 + * $Id: write_orde.c,v 1.16 2004/02/12 06:09:19 DavidExp $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 $ 8355 8355 * 8356 8356 * Copyright (C) 1997 University of Chicago. … … 8417 8417 /* -*- Mode: C; c-basic-offset:4 ; -*- */ 8418 8418 /* 8419 - * $Id: write_sh.c,v 1.19 2003/09/15 13:33:36 groppExp $8420 + * $Id: write_sh.c,v 1.21 2004/02/20 19:47:59 groppExp $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 $ 8421 8421 * 8422 8422 * Copyright (C) 1997 University of Chicago. -
branches/cu-security-branch/doc/design
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/doc/design/concepts.tex
r7956 r8330 24 24 \maketitle 25 25 26 \begin{verbatim}$Id: concepts.tex,v 1.3.20. 2 2009-09-02 20:15:50nlmills Exp $\end{verbatim}26 \begin{verbatim}$Id: concepts.tex,v 1.3.20.3 2010-05-21 17:33:53 nlmills Exp $\end{verbatim} 27 27 \section{Introduction} 28 28 -
branches/cu-security-branch/doc/design/handle-allocator.tex
r7956 r8330 22 22 \begin{document} 23 23 \maketitle 24 \begin{verbatim}$Id: handle-allocator.tex,v 1.1.72. 2 2009-09-02 20:15:50nlmills 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} 25 25 26 26 \section{Introduction} -
branches/cu-security-branch/doc/doxygen
-
Property
svn:ignore set
to
pvfs2-doxygen.conf
-
Property
svn:ignore set
to
-
branches/cu-security-branch/doc/random
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/examples
-
Property
svn:ignore set
to
fs.conf
pvfs2-server.rc
-
Property
svn:ignore set
to
-
branches/cu-security-branch/include/pvfs2-debug.h
r7956 r8330 76 76 #define GOSSIP_DIRECTIO_DEBUG ((uint64_t)1 << 54) 77 77 #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) 81 80 82 81 /* NOTE: if you want your gossip flag to be controllable from -
branches/cu-security-branch/include/pvfs2-sysint.h
r7956 r8330 462 462 void *user_ptr); 463 463 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) \ 465 PVFS_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) \ 468 PVFS_isys_io(x1,x2,x3,x4,x5,x6,y,PVFS_IO_WRITE,x7,x8) 469 469 470 470 PVFS_error PVFS_sys_io( -
branches/cu-security-branch/include/pvfs2-types.h
r7956 r8330 7 7 * please update the PVFS2_PROTO_VERSION in pvfs2-req-proto.h accordingly 8 8 */ 9 9 10 /** \file 10 11 * … … 369 370 #define PVFS_ATTR_SYS_ALL_TIMES \ 370 371 ((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 371 377 372 378 /* Extended attribute flags */ … … 441 447 #define PVFS_MAX_XATTR_VALUELEN 8192 /* Not the same as XATTR_SIZE_MAX defined 442 448 by <linux/xattr.h> */ 443 #define PVFS_MAX_XATTR_LISTLEN 8 /* Not the same as XATTR_LIST_MAX449 #define PVFS_MAX_XATTR_LISTLEN 8 /* Not the same as XATTR_LIST_MAX 444 450 defined by <linux/xattr.h> */ 445 451 -
branches/cu-security-branch/module.mk.in
r7956 r8330 1 1 # This file is used by "make dist" to pass along parameters 2 2 # to the Makefile in release snapshots 3 DIST_RELEASE = 1 -
branches/cu-security-branch/src/apps/admin
-
Property
svn:ignore set
to
pvfs2-config
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/apps/admin/pvfs2-cp.c
r7956 r8330 328 328 "\n-s <strip_size>\t\t\tsize of access to PVFS2 volume" 329 329 "\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" 331 331 "\n-t\t\t\t\tprint some timing information" 332 332 "\n-v\t\t\t\tprint version number and exit\n"); -
branches/cu-security-branch/src/apps/admin/pvfs2-genconfig
r7956 r8330 158 158 # 159 159 @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 { 169 162 # if we've got a component that has {..}, then expand. 170 163 # match the prefix (hostname) and curly brackets -
branches/cu-security-branch/src/apps/admin/pvfs2-xattr.c
r7956 r8330 3 3 * 4 4 * 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.status8 5 */ 9 6 … … 30 27 #include "xattr-utils.h" 31 28 32 #include "pvfs2-mirror.h"33 34 29 #define VALBUFSZ 1024 35 30 … … 47 42 struct options 48 43 { 49 PVFS_ds_keyval *key;50 PVFS_ds_keyval *val;44 PVFS_ds_keyval key; 45 PVFS_ds_keyval val; 51 46 char* srcfile; 52 int get, text , key_count;47 int get, text; 53 48 }; 54 49 … … 85 80 static struct options* parse_args(int argc, char* argv[]); 86 81 static 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 82 static int pvfs2_eattr(int get, file_object *, PVFS_ds_keyval *key_p, 83 PVFS_ds_keyval *val_p); 94 84 static void usage(int argc, char** argv); 95 85 static int resolve_filename(file_object *obj, char *filename); … … 147 137 return -1; 148 138 } 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); 154 142 return -1; 155 143 } 156 144 if (!user_opts->get) 157 145 { 158 if (!permit_set(&user_opts->key [0]))146 if (!permit_set(&user_opts->key)) 159 147 { 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); 162 149 return -1; 163 150 } 164 if (modify_val(&user_opts->key [0], &user_opts->val[0]) < 0)151 if (modify_val(&user_opts->key, &user_opts->val) < 0) 165 152 { 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); 169 154 return -1; 170 155 } 171 156 } 172 157 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); 259 190 PVFS_sys_finalize(); 260 191 return(ret); … … 263 194 static int modify_val(PVFS_ds_keyval *key_p, PVFS_ds_keyval *val_p) 264 195 { 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) 267 197 { 268 198 PVFS_metafile_hint hint; … … 284 214 memcpy(val_p->buffer, &hint, sizeof(hint)); 285 215 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 } 300 217 return 0; 301 218 } … … 316 233 * returns zero on success and negative one on failure 317 234 */ 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) 235 static int pvfs2_eattr(int get, file_object *obj, PVFS_ds_keyval *key_p, 236 PVFS_ds_keyval *val_p) 323 237 { 324 238 int ret = -1; … … 329 243 { 330 244 #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) 335 246 #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) 342 248 #endif 343 249 { … … 366 272 else 367 273 { 368 if (get == 1 && key_count == 1)274 if (get == 1) 369 275 { 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); 397 282 } 398 283 … … 427 312 memset(tmp_opts, 0, sizeof(struct options)); 428 313 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 450 314 /* fill in defaults */ 315 memset(&tmp_opts->key, 0, sizeof(PVFS_ds_keyval)); 316 memset(&tmp_opts->val, 0, sizeof(PVFS_ds_keyval)); 451 317 tmp_opts->srcfile = strdup(argv[argc-1]); 452 318 tmp_opts->get = 1; … … 463 329 break; 464 330 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; 467 333 break; 468 334 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; 491 338 case('?'): 492 339 printf("?\n"); … … 495 342 } 496 343 } 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].buffer510 ,NO_MIRRORING,MIRROR_ON_IMMUTABLE);511 512 exit(EXIT_FAILURE);513 }514 }515 516 344 if (tmp_opts->get == 1) 517 345 { 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"); 579 358 usage(argc, argv); 580 359 exit(EXIT_FAILURE); 581 360 } 582 361 } 583 if (tmp_opts->key [0].buffer == NULL)362 if (tmp_opts->key.buffer == NULL) 584 363 { 585 364 fprintf(stderr, "Please specify key if getting extended attributes\n"); … … 593 372 static void usage(int argc, char** argv) 594 373 { 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]); 597 375 return; 598 376 } -
branches/cu-security-branch/src/apps/fuse/pvfs2fuse.c
r7956 r8330 10 10 * Sumit Narayan 11 11 * 12 * $Date: 20 09-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 $ 14 14 * 15 15 * Documentation: http://www.engr.uconn.edu/~sun03001/docs/pvfs2fuse-rpt.pdf 16 16 */ 17 17 18 /* char *pvfs2fuse_version = "$Id: pvfs2fuse.c,v 1.3.28. 2 2009-09-02 20:15:54nlmills Exp $"; */18 /* char *pvfs2fuse_version = "$Id: pvfs2fuse.c,v 1.3.28.3 2010-05-21 17:33:57 nlmills Exp $"; */ 19 19 char *pvfs2fuse_version = "0.01"; 20 20 … … 1048 1048 { 1049 1049 fprintf(stderr, "PVFS2FUSE requires mountpoint as argument\n"); 1050 abort() ;1050 abort() 1051 1051 } 1052 1052 -
branches/cu-security-branch/src/apps/karma
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/apps/kernel/linux
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/apps/vis
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
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
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/client/sysint/client-state-machine.h
r7956 r8330 40 40 * send or receive request messages. 41 41 */ 42 #ifndef PVFS2_CLIENT_JOB_BMI_TIMEOUT_DEFAULT43 42 #define PVFS2_CLIENT_JOB_BMI_TIMEOUT_DEFAULT 30 44 #endif45 43 46 44 /* Default number of times to retry restartable client operations. */ -
branches/cu-security-branch/src/client/sysint/mgmt-iterate-handles-list.sm
r7956 r8330 182 182 foreach_msgpair(&sm_p->msgarray_op, msg_p, i) 183 183 { 184 skipped: 184 185 185 /* skip servers that have already reached end */ 186 186 /* 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] 188 188 == PVFS_ITERATE_END) 189 189 { 190 190 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; 194 192 } 195 193 else … … 199 197 capability, 200 198 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], 203 201 sm_p->u.iterate_handles_list.flags, 204 202 sm_p->hints); 203 j++; 205 204 msg_p->fs_id = sm_p->u.iterate_handles_list.fs_id; 206 205 msg_p->handle = PVFS_HANDLE_NULL; 207 206 msg_p->retry_flag = PVFS_MSGPAIR_RETRY; 208 207 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]; 211 209 } 212 210 } -
branches/cu-security-branch/src/client/sysint/sys-io.sm
r7956 r8330 444 444 struct PINT_smcb *smcb, job_status_s *js_p) 445 445 { 446 447 446 struct PINT_client_sm *sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 448 447 if (PINT_smcb_cancelled(smcb)) … … 795 794 796 795 cur_ctx->session_tag = PINT_util_get_next_tag(); 796 797 797 cur_ctx->msg_recv_has_been_posted = 0; 798 798 cur_ctx->msg_recv_in_progress = 0; -
branches/cu-security-branch/src/client/sysint/sys-set-eattr.sm
r7956 r8330 80 80 { 81 81 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"); 84 84 for(; i < nkey; ++i) 85 85 { 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 } 95 92 96 93 if ((ref.handle == PVFS_HANDLE_NULL) || -
branches/cu-security-branch/src/common/dotconf
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/events/debug.h
r7956 r8330 1 1 /************************************* 2 2 * File : debug.h 3 * Version : $Id: debug.h,v 1.2.30. 2 2009-09-02 20:15:57nlmills Exp $3 * Version : $Id: debug.h,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 4 4 ************************************/ 5 5 -
branches/cu-security-branch/src/common/events/fmt_fsm.c
r7956 r8330 1 1 /***************************************************** 2 2 * File : fmt_fsm.cpp 3 * Version : $Id: fmt_fsm.c,v 1.2.30. 2 2009-09-02 20:15:57nlmills Exp $3 * Version : $Id: fmt_fsm.c,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 4 4 ****************************************************/ 5 5 -
branches/cu-security-branch/src/common/events/fmt_fsm.h
r7956 r8330 1 1 /***************************************************** 2 2 * File : fmt_fsm.h 3 * Version : $Id: fmt_fsm.h,v 1.2.30. 2 2009-09-02 20:15:57nlmills Exp $3 * Version : $Id: fmt_fsm.h,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 4 4 ****************************************************/ 5 5 … … 222 222 /*************************************************************************** 223 223 * $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 $ 225 225 ***************************************************************************/ -
branches/cu-security-branch/src/common/events/pvfs_tau_api.c
r7956 r8330 1 1 /***************************************************** 2 2 * File : pvfs_tau_api.cpp 3 * Version : $Id: pvfs_tau_api.c,v 1.2.30. 2 2009-09-02 20:15:57nlmills Exp $3 * Version : $Id: pvfs_tau_api.c,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 4 4 ****************************************************/ 5 5 -
branches/cu-security-branch/src/common/events/pvfs_tau_api.h
r7956 r8330 1 1 /***************************************************** 2 2 * File : pvfs_tau_api.h 3 * Version : $Id: pvfs_tau_api.h,v 1.2.30. 2 2009-09-02 20:15:57nlmills Exp $3 * Version : $Id: pvfs_tau_api.h,v 1.2.30.3 2010-05-21 17:34:01 nlmills Exp $ 4 4 ****************************************************/ 5 5 -
branches/cu-security-branch/src/common/gen-locks
-
Property
svn:ignore set
to
*.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/gossip
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/id-generator
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/llist
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/misc
-
Property
svn:ignore set
to
msgpairarray.c
void.c
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/misc/msgpairarray.h
r7956 r8330 49 49 /* server address */ 50 50 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;56 51 57 52 /* req and encoded_req are used to send a request */ -
branches/cu-security-branch/src/common/misc/msgpairarray.sm
r7956 r8330 94 94 int i = 0; 95 95 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);100 96 101 97 gossip_debug(GOSSIP_MSGPAIR_DEBUG, "(%p) msgpairarray state: init " … … 250 246 session_tag = PINT_util_get_next_tag(); 251 247 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 256 248 gossip_debug(GOSSIP_MSGPAIR_DEBUG, "%s: sm %p msgpair %d: " 257 249 "posting recv\n", __func__, smcb, i); … … 497 489 gossip_debug(GOSSIP_MSGPAIR_DEBUG, "(%p) msgpairarray state: " 498 490 "completion_fn\n", smcb); 499 gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing msgpairarray_completion_fn..\n");500 491 501 492 for (i = 0; i < mop->count; i++) … … 555 546 if (msg_p->comp_fn != NULL) 556 547 { 557 gossip_debug(GOSSIP_MIRROR_DEBUG,"\texecuting msg_p->comp_fn..\n");558 548 /* If we call the completion function, store the result on 559 549 * a per message pair basis. Also store some non-zero -
branches/cu-security-branch/src/common/misc/pint-cached-config.c
r7956 r8330 1788 1788 } 1789 1789 1790 /* PINT_cached_config_server_names()1791 *1792 * Returns a list of pointers to the IO server names currently running in this1793 * file system.1794 *1795 * returns 0 on success, -PVFS_error on failure1796 */1797 int PINT_cached_config_io_server_names( char ***list1798 , int *size1799 , 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 1836 1790 /* 1837 1791 * Local variables: -
branches/cu-security-branch/src/common/misc/pint-cached-config.h
r7956 r8330 136 136 struct server_configuration_s *config); 137 137 138 int PINT_cached_config_io_server_names(139 char ***list,140 int *size,141 PVFS_fs_id fsid);142 143 138 #endif /* __PINT_CACHED_CONFIG_H */ 144 139 -
branches/cu-security-branch/src/common/misc/pvfs2-debug.c
r7956 r8330 117 117 /* Debug the bstream code */ 118 118 { "bstream", GOSSIP_BSTREAM_DEBUG }, 119 /* Debug mirroring operations */120 { "mirror",GOSSIP_MIRROR_DEBUG },121 119 /* Debug trove in direct io mode */ 122 120 {"directio", GOSSIP_DIRECTIO_DEBUG}, -
branches/cu-security-branch/src/common/misc/pvfs2-internal.h
r7956 r8330 94 94 #define SPECIAL_METAFILE_HINT_KEYSTR "meta_hint\0" 95 95 #define SPECIAL_METAFILE_HINT_KEYLEN 21 96 #define SPECIAL_MIRROR_PARAMS_KEYSTR "mirror\0"97 #define SPECIAL_MIRROR_PARAMS_KEYLEN 1898 96 99 97 #define IO_MAX_REGIONS 64 -
branches/cu-security-branch/src/common/misc/pvfs2-util.c
r7956 r8330 559 559 *tmp = 0; 560 560 mntent->mnt_opts = strdup("rw"); 561 mntent->fs_id = PVFS_FS_ID_NULL;562 561 return &s_stat_tab_array[0]; 563 562 } -
branches/cu-security-branch/src/common/misc/state-machine.h
r7956 r8330 50 50 SM_RUN = 9 51 51 }; 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)73 52 74 53 /* these define things like stack size and so forth for the common … … 225 204 int *remaining); 226 205 227 /* This macro is used in calls to PINT_sm_fram e() */206 /* This macro is used in calls to PINT_sm_fram() */ 228 207 #define PINT_FRAME_CURRENT 0 229 #define PINT_FRAME_TOP 1230 208 231 209 struct PINT_state_machine_s pvfs2_void_sm; -
branches/cu-security-branch/src/common/misc/str-utils.c
r7956 r8330 144 144 145 145 /* 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 */ 159 156 160 157 /* at this point, the string is back in its original state */ 161 158 162 159 /* 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 */ 167 162 168 163 *inout_segp = ptr; 169 164 170 165 /* 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; 180 172 } 181 173 return 0; … … 320 312 for(i =0; i < pathlen; i++) 321 313 { 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 } 330 322 } 331 323 … … 364 356 if (!comma_list || !tokens) 365 357 { 366 return (0);358 return (0); 367 359 } 368 360 … … 371 363 while ((holder = index(holder, ','))) 372 364 { 373 tokencount++;374 holder++;365 tokencount++; 366 holder++; 375 367 } 376 368 … … 388 380 if (!(*tokens)) 389 381 { 390 return 0;382 return 0; 391 383 } 392 384 393 385 if(1 == tokencount) 394 386 { 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; 402 394 } 403 395 … … 407 399 for (i = 0; i < tokencount && holder; i++) 408 400 { 409 holder2 = index(holder, ',');410 if (!holder2)411 {412 holder2 = end;413 }401 holder2 = index(holder, ','); 402 if (!holder2) 403 { 404 holder2 = end; 405 } 414 406 if (holder2 - holder == 0) { 415 407 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'; 425 417 assert(strlen((*tokens)[i]) != 0); 426 holder = holder2 + 1; 427 } 428 418 holder = holder2 + 1; 419 } 420 421 out: 429 422 return (retval); 430 423 431 failure:424 failure: 432 425 433 426 /* free up any memory we allocated if we failed */ 434 427 if (*tokens) 435 428 { 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); 444 437 } 445 438 return (0); -
branches/cu-security-branch/src/common/quickhash
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/quicklist
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/quicklist/quicklist.h
r7956 r8330 118 118 { 119 119 return head->next == head; 120 }121 122 /**123 * qlist_pop - pop the first item off the list and return it124 * @head: qlist to modify125 */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;137 120 } 138 121 -
branches/cu-security-branch/src/common/security
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/common/statecomp
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/bmi
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/bmi/bmi-method-callback.h
r7956 r8330 12 12 BMI_addr_t bmi_method_addr_reg_callback(bmi_method_addr_p map); 13 13 int bmi_method_addr_forget_callback(BMI_addr_t addr); 14 void bmi_method_addr_drop_callback(char *method_name);15 14 16 15 #endif /* __BMI_METHOD_CALLBACK_H */ -
branches/cu-security-branch/src/io/bmi/bmi.c
r7956 r8330 50 50 struct qlist_head link; 51 51 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_item60 {61 struct qlist_head link;62 char *method_name;63 52 }; 64 53 … … 133 122 int flags); 134 123 static 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);136 124 static void bmi_check_forget_list(void); 137 static void bmi_check_addr_force_drop (void);138 125 139 126 /** Initializes the BMI layer. Must be called before any other BMI … … 980 967 /* figure out if we need to drop any stale addresses */ 981 968 bmi_check_forget_list(); 982 bmi_check_addr_force_drop();983 969 984 970 gen_mutex_lock(&active_method_count_mutex); … … 1992 1978 1993 1979 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;2017 1980 } 2018 1981 … … 2257 2220 } 2258 2221 2259 2260 /* bmi_addr_force_drop2261 *2262 * Destroys a complete BMI address, including forcing the method to clean up2263 * its portion.2264 *2265 * NOTE: must be called with ref list mutex held2266 */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_drop2281 *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 2313 2222 /* 2314 2223 * Local variables: -
branches/cu-security-branch/src/io/bmi/bmi_gm
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/bmi/bmi_ib
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/bmi/bmi_mx
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/bmi/bmi_portals
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/bmi/bmi_tcp
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/bmi/bmi_tcp/bmi-tcp.c
r7956 r8330 3649 3649 (errno == ENONET) || 3650 3650 (errno == EHOSTUNREACH) || 3651 (errno == EOPNOTSUPP) || 3652 (errno == ENETUNREACH) || 3653 (errno == ENFILE) || 3654 (errno == EMFILE)) 3651 (errno == EOPNOTSUPP) || (errno == ENETUNREACH)) 3655 3652 { 3656 3653 /* 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 }3662 3654 return (0); 3663 3655 } -
branches/cu-security-branch/src/io/bmi/bmi_tcp/socket-collection-epoll.c
r7956 r8330 129 129 memset(status, 0, (sizeof(int) * incount)); 130 130 131 if(incount == 0)132 {133 return(0);134 }135 136 131 /* actually do the epoll_wait() here */ 137 132 do -
branches/cu-security-branch/src/io/buffer
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/description
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/description/pint-request.c
r7956 r8330 111 111 temp_space = (void *)malloc(sizeof(PINT_Request_state)+ 112 112 (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 } 117 117 118 118 memcpy(temp_space,req,sizeof(PINT_Request_state)); … … 165 165 /* do we allow external setting of LOGICAL_SKIP */ 166 166 /* what about backwards skipping, as in seeking? */ 167 }167 } 168 168 169 169 /* we should be ready to begin */ … … 174 174 { 175 175 if (req->cur[req->lvl].rq) 176 {176 { 177 177 /* print the current state of the decoding process */ 178 178 gossip_debug(GOSSIP_REQUEST_DEBUG,"\tDo seq of %lld ne %d st %lld nb %d " … … 189 189 lld(req->type_offset), lld(req->target_offset), 190 190 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 { 193 193 gossip_debug(GOSSIP_REQUEST_DEBUG,"\t\tmto %lld mta %lld mfi %lld\n", 194 194 lld(mem->type_offset), lld(mem->target_offset), 195 195 lld(mem->final_offset)); 196 }197 }196 } 197 } 198 198 /* NULL type indicates packed data - handle directly */ 199 199 if (req->cur[req->lvl].rq == NULL) -
branches/cu-security-branch/src/io/dev
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/flow
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/flow/flowproto-bmi-cache
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/flow/flowproto-bmi-trove
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/flow/flowproto-dump-offsets
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/flow/flowproto-template
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/job
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/job/job-desc-queue.h
r7956 r8330 31 31 { 32 32 TROVE_op_id id; 33 PVFS_size *out_size_p;33 PVFS_size actual_size; 34 34 PVFS_vtag *vtag; 35 35 PVFS_fs_id fsid; -
branches/cu-security-branch/src/io/job/job.c
r7956 r8330 1400 1400 } 1401 1401 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 */ 1409 int 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 1402 1492 int job_trove_bstream_write_list(TROVE_coll_id coll_id, 1403 1493 TROVE_handle handle, … … 1438 1528 jd->hints = hints; 1439 1529 jd->u.trove.vtag = vtag; 1440 jd->u.trove.out_size_p = out_size_p;1441 1530 jd->context_id = context_id; 1442 1531 jd->status_user_tag = status_user_tag; … … 1477 1566 out_status_p->error_code = 0; 1478 1567 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; 1480 1569 out_status_p->vtag = jd->u.trove.vtag; 1481 1570 dealloc_job_desc(jd); … … 1492 1581 return (0); 1493 1582 } 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 */ 1592 int 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 } 1494 1674 1495 1675 int job_trove_bstream_read_list(PVFS_fs_id coll_id, … … 1531 1711 jd->job_user_ptr = user_ptr; 1532 1712 jd->u.trove.vtag = vtag; 1533 jd->u.trove.out_size_p = out_size_p;1534 1713 jd->context_id = context_id; 1535 1714 jd->status_user_tag = status_user_tag; … … 1568 1747 out_status_p->error_code = 0; 1569 1748 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; 1571 1750 out_status_p->vtag = jd->u.trove.vtag; 1572 1751 dealloc_job_desc(jd); … … 4976 5155 case JOB_TROVE: 4977 5156 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; 4980 5158 status->vtag = jd->u.trove.vtag; 4981 5159 status->coll_id = jd->u.trove.fsid; -
branches/cu-security-branch/src/io/job/job.h
r7956 r8330 33 33 job_aint status_user_tag; /* tag supplied by caller */ 34 34 int error_code; /* returned by all operations */ 35 PVFS_size actual_size; /* re size, bmi_recv */35 PVFS_size actual_size; /* read_at, write_at, resize, bmi_recv */ 36 36 PVFS_vtag *vtag; /* most trove operations */ 37 37 PVFS_ds_position position; /* iterate, iterate_keys, iterate_handles */ … … 227 227 228 228 /* storage byte stream write */ 229 int 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 229 243 int job_trove_bstream_write_list(PVFS_fs_id coll_id, 230 244 PVFS_handle handle, … … 247 261 248 262 /* storage byte stream read */ 263 int 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); 249 276 250 277 int job_trove_bstream_read_list(PVFS_fs_id coll_id, -
branches/cu-security-branch/src/io/trove
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/trove/trove-dbpf
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/io/trove/trove-dbpf/dbpf-bstream-direct.c
r7956 r8330 858 858 goto cache_put; 859 859 } 860 if(qop_p->op.flags & TROVE_SYNC) 861 { 862 sync_required = 1; 863 } 860 sync_required = 1; 864 861 } 865 862 gen_mutex_unlock(&dbpf_update_size_lock); -
branches/cu-security-branch/src/io/trove/trove-dbpf/dbpf-bstream.c
r7956 r8330 187 187 goto error_in_cleanup; 188 188 } 189 if(op_p->flags & TROVE_SYNC) 190 { 191 sync_required = 1; 192 } 189 sync_required = 1; 193 190 } 194 191 gen_mutex_unlock(&dbpf_update_size_lock); -
branches/cu-security-branch/src/io/trove/trove-dbpf/dbpf-dspace.c
r7956 r8330 887 887 sizeof_attr != sizeof(attr)) 888 888 { 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; 893 892 } 894 893 … … 906 905 * return 907 906 */ 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 } 928 923 929 924 *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
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/kernel/linux-2.4
-
Property
svn:ignore set
to
Makefile
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/kernel/linux-2.6
-
Property
svn:ignore set
to
Module.markers
Module.symvers
Makefile
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/kernel/linux-2.6/namei.c
r7956 r8330 201 201 if (inode && !is_bad_inode(inode)) 202 202 { 203 struct dentry *res; 203 204 gossip_debug(GOSSIP_NAME_DEBUG, "%s:%s:%d Found good inode [%lu] with count [%d]\n", 204 205 __FILE__, __func__, __LINE__, inode->i_ino, (int)atomic_read(&inode->i_count)); 205 struct dentry *res;206 206 207 207 /* update dentry/inode pair into dcache */ -
branches/cu-security-branch/src/kernel/linux-2.6/pvfs2-utils.c
r7956 r8330 668 668 #define DIRENT_KEY "system.pvfs2." DIRECTORY_ENTRY_KEYSTR 669 669 670 /* Extended attributes helper functions */ 671 static 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 */ 684 static 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 670 696 static char *xattr_resvd_keys[] = { 671 697 DFILE_KEY, … … 765 791 if (ret == 0) 766 792 { 793 ssize_t new_length; 767 794 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 */ 768 812 if (size == 0) 769 813 { 770 ret = length;814 ret = new_length; 771 815 } 772 816 else 773 817 { 774 /* check to see if vallength is > provided buffer size */775 if ( length > size)818 /* check to see if key length is > provided buffer size */ 819 if (new_length > size) 776 820 { 777 821 ret = -ERANGE; … … 782 826 memset(buffer, 0, size); 783 827 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 %skey_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", 788 832 llu(get_handle_from_ino(inode)), 789 833 (char*)new_op->upcall.req.getxattr.key, … … 795 839 { 796 840 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); 801 843 } 802 844 … … 819 861 pvfs2_kernel_op_t *new_op = NULL; 820 862 pvfs2_inode_t *pvfs2_inode = NULL; 821 int i;822 char *valBuf;823 863 824 864 if (size < 0 || size >= PVFS_MAX_XATTR_VALUELEN || flags < 0) … … 896 936 ret + 1; 897 937 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", 910 944 (char*)new_op->upcall.req.setxattr.keyval.key, 911 945 (int) new_op->upcall.req.setxattr.keyval.key_sz, 912 size );946 size + 1); 913 947 914 948 ret = service_operation( … … 916 950 get_interruptible_flag(inode)); 917 951 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); 920 953 921 954 /* when request is serviced properly, free req op struct */ -
branches/cu-security-branch/src/proto
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/proto/PINT-le-bytefield.c
r7956 r8330 95 95 96 96 for (op_type=0; op_type<PVFS_SERV_NUM_OPS; op_type++) { 97 memset(&req.u, 0, sizeof(req.u));98 97 req.op = resp.op = op_type; 99 98 reqsize = 0; … … 124 123 respsize = extra_size_PVFS_servresp_batch_create; 125 124 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); 129 128 /* can request a range of handles */ 130 129 reqsize = extra_size_PVFS_servreq_create; 131 130 respsize = extra_size_PVFS_servresp_create; 132 131 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;141 132 case PVFS_SERV_REMOVE: 142 133 /* nothing special, let normal encoding work */ … … 362 353 /* this encoder always uses just one buffer */ 363 354 BF_ENCODE_TARGET_MSG_INIT(target_msg); 364 365 gossip_debug(GOSSIP_ENDECODE_DEBUG,"\tmaxsize:%d\tinitializing_sizes:%d\n"366 ,maxsize,initializing_sizes);367 355 368 356 /* allocate the max size buffer to avoid the work of calculating it */ … … 403 391 char **p; 404 392 405 gossip_debug(GOSSIP_ENDECODE_DEBUG,"Executing lebf_encode_req...\n");406 gossip_debug(GOSSIP_ENDECODE_DEBUG,"\treq->op:%d\n",req->op);407 408 393 ret = encode_common(target_msg, max_size_array[req->op].req); 409 394 … … 424 409 CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 425 410 CASE(PVFS_SERV_CREATE, create); 426 CASE(PVFS_SERV_MIRROR, mirror);427 411 CASE(PVFS_SERV_UNSTUFF, unstuff); 428 412 CASE(PVFS_SERV_BATCH_CREATE, batch_create); … … 459 443 case PVFS_SERV_MGMT_NOOP: 460 444 case PVFS_SERV_PROTO_ERROR: 461 case PVFS_SERV_IMM_COPIES:462 445 /* nothing else */ 463 446 break; … … 532 515 CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 533 516 CASE(PVFS_SERV_CREATE, create); 534 CASE(PVFS_SERV_MIRROR, mirror);535 517 CASE(PVFS_SERV_UNSTUFF, unstuff); 536 518 CASE(PVFS_SERV_BATCH_CREATE, batch_create); … … 566 548 case PVFS_SERV_BATCH_REMOVE: 567 549 case PVFS_SERV_PROTO_ERROR: 568 case PVFS_SERV_IMM_COPIES:569 550 case PVFS_SERV_MGMT_SETPARAM: 570 551 /* nothing else */ … … 634 615 CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 635 616 CASE(PVFS_SERV_CREATE, create); 636 CASE(PVFS_SERV_MIRROR, mirror);637 617 CASE(PVFS_SERV_UNSTUFF, unstuff); 638 618 CASE(PVFS_SERV_BATCH_CREATE, batch_create); … … 668 648 case PVFS_SERV_GETCONFIG: 669 649 case PVFS_SERV_MGMT_NOOP: 670 case PVFS_SERV_IMM_COPIES:671 650 /* nothing else */ 672 651 break; … … 732 711 CASE(PVFS_SERV_LOOKUP_PATH, lookup_path); 733 712 CASE(PVFS_SERV_CREATE, create); 734 CASE(PVFS_SERV_MIRROR, mirror);735 713 CASE(PVFS_SERV_UNSTUFF, unstuff); 736 714 CASE(PVFS_SERV_BATCH_CREATE, batch_create); … … 766 744 case PVFS_SERV_MGMT_NOOP: 767 745 case PVFS_SERV_PROTO_ERROR: 768 case PVFS_SERV_IMM_COPIES:769 746 case PVFS_SERV_MGMT_SETPARAM: 770 747 /* nothing else */ … … 854 831 decode_free(req->u.small_io.file_req); 855 832 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;862 833 863 834 case PVFS_SERV_MKDIR: … … 887 858 decode_free(req->u.setattr.attr.u.meta.dfile_array); 888 859 break; 889 890 860 case PVFS_SERV_LISTATTR: 891 861 if (req->u.listattr.handles) 892 862 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);903 863 break; 904 864 … … 936 896 case PVFS_SERV_MGMT_PERF_MON: 937 897 case PVFS_SERV_MGMT_EVENT_MON: 938 898 case PVFS_SERV_GETEATTR: 899 case PVFS_SERV_SETEATTR: 939 900 case PVFS_SERV_DELEATTR: 940 901 case PVFS_SERV_LISTEATTR: 941 902 case PVFS_SERV_BATCH_REMOVE: 942 case PVFS_SERV_IMM_COPIES: 943 /*nothing to free*/ 944 break; 903 /* nothing to free */ 904 break; 945 905 case PVFS_SERV_INVALID: 946 906 case PVFS_SERV_WRITE_COMPLETION: … … 1038 998 break; 1039 999 } 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 1048 1000 case PVFS_SERV_GETCRED: 1049 1001 decode_free(resp->u.getcred.credential.group_array); … … 1073 1025 case PVFS_SERV_BATCH_REMOVE: 1074 1026 case PVFS_SERV_LOOKUP_PATH: 1075 case PVFS_SERV_IMM_COPIES:1076 /*nothing to free */1077 break; 1027 /* nothing to free */ 1028 break; 1029 1078 1030 case PVFS_SERV_INVALID: 1079 1031 case PVFS_SERV_PERF_UPDATE: -
branches/cu-security-branch/src/proto/pvfs2-req-proto.h
r7956 r8330 81 81 PVFS_SERV_PRECREATE_POOL_REFILLER = 37, /* not a real protocol request */ 82 82 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, 86 84 /* leave this entry last */ 87 85 PVFS_SERV_NUM_OPS … … 939 937 (PVFS_REQ_LIMIT_CONFIG_FILE_BYTES) 940 938 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_mirror947 {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_C961 #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 #endif999 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_mirror1008 {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_C1017 #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 #endif1045 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 1051 939 /* truncate ****************************************************/ 1052 940 /* - resizes an existing datafile */ … … 1913 1801 union 1914 1802 { 1915 struct PVFS_servreq_mirror mirror;1916 1803 struct PVFS_servreq_create create; 1917 1804 struct PVFS_servreq_unstuff unstuff; … … 1978 1865 union 1979 1866 { 1980 struct PVFS_servresp_mirror mirror;1981 1867 struct PVFS_servresp_create create; 1982 1868 struct PVFS_servresp_unstuff unstuff; -
branches/cu-security-branch/src/server
-
Property
svn:ignore set
to
*.c
simple.conf
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/server/create.sm
r7956 r8330 150 150 struct PINT_smcb *smcb, job_status_s *js_p) 151 151 { 152 153 gossip_err("Executing create_metafile.....\n");154 155 152 struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 156 153 int ret = -1; … … 183 180 struct PINT_smcb *smcb, job_status_s *js_p) 184 181 { 185 gossip_err("Executing check_stuffed...\n");186 187 182 struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 188 183 int server_type; … … 203 198 204 199 layout = &s_op->req->u.create.layout; 205 206 gossip_err("layout algorithm is %d.\n",layout->algorithm);207 200 208 201 if(layout->algorithm == PVFS_SYS_LAYOUT_LIST) … … 255 248 256 249 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");259 250 js_p->error_code = 0; 260 251 return SM_ACTION_COMPLETE; … … 394 385 s_op->req->hints); 395 386 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 400 387 return(ret); 401 388 } … … 442 429 } 443 430 431 free(s_op->resp.u.create.datafile_handles); 432 444 433 ret = job_trove_dspace_remove( 445 434 s_op->req->u.create.fs_id, … … 653 642 s_op->val_a[0].buffer = s_op->resp.u.create.datafile_handles; 654 643 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); 656 645 657 646 s_op->key_a[1].buffer = Trove_Common_Keys[METAFILE_DIST_KEY].key; -
branches/cu-security-branch/src/server/io.sm
r7956 r8330 94 94 struct PINT_smcb *smcb, job_status_s *js_p) 95 95 { 96 gossip_debug(GOSSIP_MIRROR_DEBUG,"Executing io_send_ack (io.sm)....\n");97 96 struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); 98 97 int err = -PVFS_EIO; … … 107 106 s_op->resp.u.io.bstream_size = s_op->ds_attr.u.datafile.b_size; 108 107 109 gossip_debug(GOSSIP_MIRROR_DEBUG,"/tbstream_size:%d\n"110 ,(int)s_op->resp.u.io.bstream_size);111 112 108 err = PINT_encode(&s_op->resp, PINT_ENCODE_RESP, &(s_op->encoded), 113 109 s_op->addr, s_op->decoded.enc_type); … … 205 201 } 206 202 207 gossip_err("SERVER: IO SM: s_op->tag:%d\n",s_op->tag);208 209 203 gossip_debug(GOSSIP_IO_DEBUG, "flow: fsize: %lld, " 210 204 "server_nr: %d, server_ct: %d\n", … … 243 237 } 244 238 245 gossip_debug(GOSSIP_IO_DEBUG,"\tabout to issue job_flow...\n");246 239 err = job_flow(s_op->u.io.flow_d, smcb, 0, js_p, &tmp_id, 247 240 server_job_context, user_opts->server_job_flow_timeout 248 241 , s_op->req->hints); 249 250 gossip_debug(GOSSIP_IO_DEBUG,"\treturn code from job_flow "251 "submission:%d\n"252 ,err);253 242 254 243 return err; … … 351 340 job_id_t tmp_id; 352 341 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 356 343 /* we only send this trailing ack if we are working on a write 357 344 * operation; otherwise just cut out early … … 389 376 } 390 377 391 gossip_debug(GOSSIP_IO_DEBUG,"\ts_op->tag:%d\n",s_op->tag);392 393 378 err = job_bmi_send_list( 394 379 s_op->addr, s_op->encoded.buffer_list, s_op->encoded.size_list, … … 397 382 server_job_context, user_opts->server_job_bmi_timeout, 398 383 s_op->req->hints); 399 400 gossip_debug(GOSSIP_IO_DEBUG,"return code from sending ack:%d\n"401 ,err);402 384 403 385 return err; -
branches/cu-security-branch/src/server/module.mk.in
r7956 r8330 10 10 $(DIR)/lookup.c \ 11 11 $(DIR)/create.c \ 12 $(DIR)/mirror.c \13 $(DIR)/create-immutable-copies.c \14 12 $(DIR)/batch-create.c \ 15 13 $(DIR)/batch-remove.c \ -
branches/cu-security-branch/src/server/prelude.sm
r7956 r8330 70 70 struct PINT_smcb *smcb, job_status_s *js_p) 71 71 { 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);75 72 int ret; 76 73 struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT); … … 94 91 int ret = -PVFS_EINVAL; 95 92 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);99 93 gossip_debug(GOSSIP_SERVER_DEBUG, 100 94 "(%p) %s (prelude sm) state: req_sched\n", s_op, … … 136 130 if (s_op->target_handle == PVFS_HANDLE_NULL) 137 131 { 138 139 132 js_p->error_code = 0; 140 133 return SM_ACTION_COMPLETE; -
branches/cu-security-branch/src/server/pvfs2-server-req.c
r7956 r8330 48 48 extern struct PINT_server_req_params pvfs2_stuffed_create_params; 49 49 extern 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;52 50 extern struct PINT_server_req_params pvfs2_get_cred_params; 53 51 … … 94 92 /* 37 */ {PVFS_SERV_PRECREATE_POOL_REFILLER, &pvfs2_precreate_pool_refiller_params}, 95 93 /* 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} 99 96 }; 100 97 -
branches/cu-security-branch/src/server/pvfs2-server.h
r7956 r8330 148 148 }; 149 149 150 /*MIRROR structures*/151 typedef struct152 {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_op178 {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_op193 {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 304 150 /* struct PINT_server_lookup_op 305 151 * … … 499 345 500 346 /* generic structures used in most server operations */ 501 PVFS_ds_keyval key, val; 347 PVFS_ds_keyval key, val; 502 348 PVFS_ds_keyval *key_a; 503 349 PVFS_ds_keyval *val_a; … … 565 411 struct PINT_server_batch_remove_op batch_remove; 566 412 struct PINT_server_unstuff_op unstuff; 567 struct PINT_server_create_copies_op create_copies;568 struct PINT_server_mirror_op mirror;569 413 struct PINT_server_getcred_op getcred; 570 414 } u; … … 662 506 * no return value 663 507 */ 664 #ifdef GOSSIP_DISABLE_DEBUG 508 /*#ifdef GOSSIP_DISABLE_DEBUG*/ 665 509 #define PINT_ACCESS_DEBUG(__s_op, __mask, format, f...) do {} while (0) 510 /* 666 511 #else 667 512 #define PINT_ACCESS_DEBUG(__s_op, __mask, format, f...) \ … … 673 518 const char * format, 674 519 ...) __attribute__((format(printf, 3, 4))); 675 /* server side state machines */ 676 extern struct PINT_state_machine_s pvfs2_mirror_sm; 677 520 */ 678 521 679 522 /* nested state machines */ … … 686 529 extern struct PINT_state_machine_s pvfs2_mkdir_work_sm; 687 530 extern 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;691 531 692 532 /* Exported Prototypes */ -
branches/cu-security-branch/src/server/request-scheduler
-
Property
svn:ignore set
to
module.mk
-
Property
svn:ignore set
to
-
branches/cu-security-branch/src/server/set-eattr.sm
r7956 r8330 16 16 #include "pint-eattr.h" 17 17 #include "pint-security.h" 18 #include "pvfs2-mirror.h"19 20 21 enum {22 PVFS2_MAKE_IMMUTABLE_COPIES = 200,23 CREATE_IMM_COPIES = 30024 };25 18 26 19 %% … … 45 38 { 46 39 run seteattr_setobj_eattribs; 47 success => check_immutable;48 40 default => final_response; 49 41 } 50 51 state check_immutable52 {53 run check_immutable;54 PVFS2_MAKE_IMMUTABLE_COPIES => generate_copies;55 default => final_response;56 }57 58 state generate_copies59 {60 pjmp setup_create_immutable_copies61 {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_copies69 {70 run inspect_imm_copies;71 default => final_response;72 }73 74 42 75 43 state final_response … … 89 57 90 58 /* 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. 93 60 * It also prints debugging information. 94 61 */ … … 97 64 { 98 65 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; 104 67 PVFS_object_attr *a_p = NULL; 105 68 a_p = &s_op->attr; … … 115 78 116 79 /* iterate through the keys that are being written */ 117 int j = 0;118 char *valBuf = NULL;119 80 for (i = 0; i < s_op->req->u.seteattr.nkey; i++) 120 81 { 121 gossip_debug(GOSSIP_MIRROR_DEBUG122 ,"\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 ,j128 ,(unsigned int)valBuf[j]);129 82 js_p->error_code = PINT_eattr_namespace_verify( 130 83 &s_op->req->u.seteattr.key[i], 131 84 &s_op->req->u.seteattr.val[i]); 132 133 if(js_p->error_code) 85 if(!js_p->error_code) 134 86 { 135 87 return SM_ACTION_COMPLETE; 136 88 } 137 138 } /*end for*/ 139 89 } 140 90 141 91 return SM_ACTION_COMPLETE; … … 199 149 } 200 150 201 static PINT_sm_action setup_create_immutable_copies(struct PINT_smcb *smcb202 ,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 *smcb237 ,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 else277 {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_immutable292 *293 * Params: server_op *b,294 * job_status_s *js_p295 *296 * Returns: SM_action297 *298 * Synopsis: If the immutable flag is set, then make a mirror.299 *300 */301 static PINT_sm_action check_immutable(struct PINT_smcb *smcb302 ,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_DEBUG335 ,"My key is %s. My key value is %llu"336 "\n"337 "PVFS_IMMUTABLE_FL is %llu.\n"338 ,(char *)k->buffer339 ,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 358 151 /* 359 152 * Function: setattr_cleanup -
branches/cu-security-branch/src/server/unstuff.sm
r7956 r8330 671 671 } 672 672 673 gossip_err("Attributes show file as stuffed.\n");674 673 gossip_debug(GOSSIP_SERVER_DEBUG, 675 674 "unstuff found stuffed file.\n"); -
branches/cu-security-branch/test/automated/README.tests
r7956 r8330 1 1 # 2 # $Date: 20 09-09-02 20:16:21$2 # $Date: 2010-05-21 17:34:25 $ 3 3 # 4 4 # A brief description of the contents of the test/automated directory -
branches/cu-security-branch/test/automated/testscrpt.sh
r7956 r8330 38 38 TESTNAME="`hostname -s`-nightly" 39 39 40 # before starting any client apps, we need to deal with the possiblity that we41 # might have built with shared libraries42 export LD_LIBRARY_PATH=${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/lib:${LD_LIBRARY_PATH}43 40 44 41 # we only have a few hosts that meet all the earlier stated prereqs 45 42 VFS_HOSTS="gil lain stan" 46 43 47 #48 # Detect basic heap corruption49 #50 export MALLOC_CHECK_=251 44 52 45 # takes one argument: a tag or branch in CVS … … 103 96 sudo dmesg -c >/dev/null 104 97 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 \ 106 99 -p ${PVFS2_DEST}/INSTALL-pvfs2-${CVS_TAG}/sbin/pvfs2-client-core \ 107 100 -L ${PVFS2_DEST}/pvfs2-client-${CVS_TAG}.log … … 201 194 echo -n "====== running $f ..." 202 195 ./$f > ${PVFS2_DEST}/${f}-${CVS_TAG}.log 203 if [ $? -eq0 ] ; then196 if [ $? == 0 ] ; then 204 197 nr_passed=$((nr_passed + 1)) 205 198 echo "OK" -
branches/cu-security-branch/test/client/mpi-io/module.mk.in
r7956 r8330 4 4 $(DIR)/mpi-io-test.c \ 5 5 $(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 37 37 static int64_t opt_block = 16*1024*1024; 38 38 static int opt_iter = 1; 39 static int opt_individual_file = 0;40 39 static int opt_coll = 0; 41 40 static int opt_correct = 0; … … 53 52 static void usage(void); 54 53 static void handle_error(int errcode, char *str); 55 static int check_count(int count, MPI_Datatype type, MPI_Status *status);56 54 57 55 /* global vars */ … … 82 80 int namelen; 83 81 char processor_name[MPI_MAX_PROCESSOR_NAME]; 84 char file_name[1024];85 82 86 83 /* startup MPI and determine the rank of this process */ … … 95 92 if (opt_verbose) fprintf(stdout,"Process %d of %d is on %s\n", 96 93 mynod, nprocs, processor_name); 97 98 if (opt_individual_file)99 {100 sprintf(file_name, "%s_%d", opt_file, mynod);101 }102 else103 {104 strncpy(file_name, opt_file, 1023);105 }106 94 107 95 if (mynod == 0) printf("# Using mpi-io calls.\n"); … … 138 126 comm = MPI_COMM_SELF; 139 127 } 140 err = MPI_File_open(comm, file_name,128 err = MPI_File_open(comm, opt_file, 141 129 MPI_MODE_CREATE | MPI_MODE_RDWR, MPI_INFO_NULL, &fh); 142 130 if (err != MPI_SUCCESS) { … … 155 143 * we want to measure cached performance of file servers */ 156 144 if (opt_single == 1) 157 {158 145 seek_position = 0; 159 }160 146 else 161 {162 if (opt_individual_file)163 {164 seek_position = (j*opt_block);165 }166 else167 {168 147 /* seek to an appropriate position depending on the iteration 169 148 * 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); 173 150 174 151 MPI_File_seek(fh, seek_position, MPI_SEEK_SET); … … 191 168 } 192 169 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 } 199 173 if (opt_sync) sync_err = MPI_File_sync(fh); 200 174 if (sync_err) { 201 handle_error(err, "MPI_File_sync"); 175 fprintf(stderr, "node %d, sync error: %s\n", mynod, 176 strerror(errno)); 202 177 } 203 178 … … 213 188 err = MPI_File_close(&fh); 214 189 if(err){ 215 handle_error(err, "MPI_File_close");190 fprintf(stderr, "node %d, close error after write\n", mynod); 216 191 } 217 192 … … 223 198 MPI_MODE_CREATE | MPI_MODE_RDWR, MPI_INFO_NULL, &fh); 224 199 if (err < 0) { 225 handle_error(err, "MPI_File_open");200 fprintf(stderr, "node %d, open error: %s\n", mynod, strerror(errno)); 226 201 goto die_jar_jar_die; 227 202 } … … 233 208 /* reading and writing to the same block is cheating, but sometimes 234 209 * 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 } 252 218 253 219 MPI_File_seek(fh, seek_position, MPI_SEEK_SET); … … 271 237 272 238 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)); 278 241 } 279 242 … … 308 271 err = MPI_File_close(&fh); 309 272 if (err) { 310 handle_error(err, "MPI_File_close");273 fprintf(stderr, "node %d, close error after write\n", mynod); 311 274 } 312 275 … … 388 351 int c; 389 352 390 while ((c = getopt(argc, argv, "b:i:f:p:CcyShvrw I")) != EOF) {353 while ((c = getopt(argc, argv, "b:i:f:p:CcyShvrw")) != EOF) { 391 354 switch (c) { 392 355 case 'b': /* block size */ … … 395 358 case 'i': /* iterations */ 396 359 opt_iter = atoi(optarg); 397 break;398 case 'I': /* individual file per process */399 opt_individual_file = 1;400 360 break; 401 361 case 'f': /* filename */ … … 439 399 } 440 400 } 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 }448 401 return(0); 449 402 } … … 457 410 printf(" -C perform operations Collectively [default: off]\n"); 458 411 printf(" -i iterations [default: 1]\n"); 459 printf(" -I individual file per process [default: off]\n");460 412 printf(" -f filename [default: /foo/test.out]\n"); 461 413 printf(" -p path to pvfs2tab file to use [default: notset]\n"); … … 475 427 MPI_Error_string(errcode, msg, &resultlen); 476 428 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); 484 430 } 485 431 … … 490 436 * tab-width: 3 491 437 * 438 * vim: ts=3 492 439 * End: 493 * vim: ts=3494 440 */ 441 442 -
branches/cu-security-branch/test/common/gen-locks/module.mk.in
r7956 r8330 1 1 DIR := common/gen-locks 2 2 3 TESTSRC += \ 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 24 24 #include <stdio.h> 25 25 #include <stdlib.h> 26 #include "pvfs2.h" 27 #include "id-generator.h" 26 #include <id-generator.h> 28 27 29 28 /* This code is a pretty pointless example. It just generates a handle -
branches/cu-security-branch/test/configure
r7956 r8330 842 842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 843 843 --enable-verbose-build Enables full output during build process 844 --disable-thread-safety Disables thread safety in the client library845 844 --enable-strict Turn on strict debugging with gcc 846 845 … … 2923 2922 fi; 2924 2923 2925 # Check whether --enable-thread-safety or --disable-thread-safety was given.2926 if test "${enable_thread_safety+set}" = set; then2927 enableval="$enable_thread_safety"2928 if test "x$enableval" = "xno" ; then2929 CFLAGS="$CFLAGS -D__GEN_NULL_LOCKING__"2930 echo "$as_me:$LINENO: result: no" >&52931 echo "${ECHO_T}no" >&62932 fi2933 else2934 CFLAGS="$CFLAGS -D__GEN_POSIX_LOCKING__"2935 echo "$as_me:$LINENO: result: yes" >&52936 echo "${ECHO_T}yes" >&62937 2938 fi;2939 2940 2924 PVFS2_SRC_RELATIVE_TOP="${srcdir}/.." 2941 2925 PVFS2_BUILD_RELATIVE_TOP=".." … … 3638 3622 else 3639 3623 ac_check_lib_save_LIBS=$LIBS 3640 LIBS="-lpvfs2 $LIBS"3624 LIBS="-lpvfs2 -lssl -lcrypto $LIBS" 3641 3625 cat >conftest.$ac_ext <<_ACEOF 3642 3626 /* confdefs.h. */ … … 3707 3691 echo "$as_me: error: \"could not find libpvfs2... must specify path to PVFS2 installation or build tree with --with-pvfs2-build\"" >&2;} 3708 3692 { (exit 1); exit 1; }; } 3709 3710 3693 fi 3711 3694 -
branches/cu-security-branch/test/configure.in
r7956 r8330 95 95 ) 96 96 97 dnl a mechanism to turn off threads in the client library98 AC_ARG_ENABLE(thread-safety,99 [ --disable-thread-safety Disables thread safety in the client library],100 [if test "x$enableval" = "xno" ; then101 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 108 97 dnl default paths: 109 98 PVFS2_SRC_RELATIVE_TOP="${srcdir}/.." … … 165 154 dnl make sure the libs exist and work 166 155 AC_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) 169 157 170 158 MPI_INTELC= -
branches/cu-security-branch/test/io/bmi/bench-initialize.c
r7956 r8330 172 172 if (flags & BMI_INIT_SERVER) 173 173 { 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); 180 180 } 181 181 if (ret < 0) … … 351 351 ret = BMI_post_sendunexpected(&bmi_id, server_array[i], &ret, 352 352 sizeof(int), BMI_EXT_ALLOC, 0, NULL, 353 context , NULL);353 context); 354 354 if (ret == 0) 355 355 { -
branches/cu-security-branch/test/io/bmi/bench-initialize.h
r7956 r8330 12 12 #include <mpi.h> 13 13 #include "bench-args.h" 14 #include "pvfs2.h"15 14 16 15 #ifndef __BENCH_INITIALIZE_H -
branches/cu-security-branch/test/io/bmi/bench-mem.h
r7956 r8330 11 11 #include <math.h> 12 12 #include <mpi.h> 13 #include "pvfs2.h"14 13 #include "bmi.h" 15 14 -
branches/cu-security-branch/test/io/bmi/module.mk.in
r7956 r8330 8 8 $(DIR)/test-bmi-server-eagerbug.c \ 9 9 $(DIR)/test-bmi-server-list.c \ 10 $(DIR)/test-bmi-s2s-a.c \11 $(DIR)/test-bmi-s2s-b.c \12 10 $(DIR)/pingpong.c 13 11 -
branches/cu-security-branch/test/io/bmi/pingpong.c
r7956 r8330 23 23 #include <math.h> 24 24 25 #include "pvfs2.h"26 25 #include "bmi.h" 27 26 #include "gossip.h" … … 103 102 ret = BMI_initialize(opts->method, opts->hostid, BMI_INIT_SERVER); 104 103 else 105 ret = BMI_initialize( NULL, NULL, 0);104 ret = BMI_initialize(opts->method, NULL, 0); 106 105 107 106 if (ret < 0) { … … 258 257 ret = BMI_post_send(&(op_id[SEND]), peer_addr, tx_msg, 259 258 msg_len, BMI_PRE_ALLOC, 0, NULL, 260 *context , NULL);259 *context); 261 260 if (ret < 0) { 262 261 fprintf(stderr, "BMI_post_send failure.\n"); … … 288 287 ret = BMI_post_recv(&(op_id[RECV]), peer_addr, recv_buffer, 289 288 bytes, &actual_size, BMI_PRE_ALLOC, i, NULL, 290 *context , NULL);289 *context); 291 290 292 291 if (ret < 0) { … … 333 332 /* send the pong */ 334 333 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); 336 335 if (ret < 0) { 337 336 fprintf(stderr, "BMI_post_send failure.\n"); … … 442 441 /* post the test parameters */ 443 442 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); 445 444 if (ret < 0) { 446 445 fprintf(stderr, "BMI_post_sendunexpected failure.\n"); … … 464 463 /* post a recv for the ack */ 465 464 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); 467 466 if (ret < 0) { 468 467 fprintf(stderr, "BMI_post_recv_failure.\n"); … … 508 507 ret = BMI_post_recv(&(op_id[RECV]), peer_addr, recv_buffer, 509 508 bytes, &actual_size, BMI_PRE_ALLOC, i, 510 NULL, *context , NULL);509 NULL, *context); 511 510 512 511 if (ret < 0) { … … 518 517 if (opts->test == EXPECTED) { 519 518 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); 521 520 } else { 522 521 ret = BMI_post_sendunexpected(&(op_id[SEND]), peer_addr, 523 522 send_buffer, bytes, BMI_PRE_ALLOC, i, 524 NULL, *context , NULL);523 NULL, *context); 525 524 } 526 525 if (ret < 0) { -
branches/cu-security-branch/test/io/bmi/test-bmi-client-eagerbug.c
r7956 r8330 19 19 #include <string.h> 20 20 21 #include "pvfs2.h"22 21 #include "bmi.h" 23 22 #include "test-bmi.h" … … 136 135 ret = BMI_post_sendunexpected(&(client_ops[1]), server_addr, my_req, 137 136 sizeof(struct server_request), BMI_PRE_ALLOC, 138 0, in_test_user_ptr, context , NULL);137 0, in_test_user_ptr, context); 139 138 if (ret < 0) 140 139 { … … 170 169 ret = BMI_post_recv(&(client_ops[0]), server_addr, my_ack, 171 170 sizeof(struct server_ack), &actual_size, BMI_PRE_ALLOC, 172 0, in_test_user_ptr, context , NULL);171 0, in_test_user_ptr, context); 173 172 if (ret < 0) 174 173 { … … 223 222 */ 224 223 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); 226 225 if (ret < 0) 227 226 { … … 258 257 /* final send to test eager bug *****************************/ 259 258 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); 261 260 if (ret < 0) 262 261 { … … 286 285 287 286 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); 289 288 if (ret < 0) 290 289 { -
branches/cu-security-branch/test/io/bmi/test-bmi-client-list.c
r7956 r8330 19 19 #include <string.h> 20 20 21 #include "pvfs2.h"22 21 #include "bmi.h" 23 22 #include "test-bmi.h" … … 143 142 ret = BMI_post_sendunexpected(&(client_ops[1]), server_addr, my_req, 144 143 sizeof(struct server_request), BMI_PRE_ALLOC, 145 0, in_test_user_ptr, context , NULL);144 0, in_test_user_ptr, context); 146 145 if (ret < 0) 147 146 { … … 185 184 ret = BMI_post_recv(&(client_ops[0]), server_addr, my_ack, 186 185 sizeof(struct server_ack), &actual_size, BMI_PRE_ALLOC, 187 0, in_test_user_ptr, context , NULL);186 0, in_test_user_ptr, context); 188 187 if (ret < 0) 189 188 { … … 268 267 (const void **) buffer_list, size_list, 3, 269 268 (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); 271 270 if (ret < 0) 272 271 { -
branches/cu-security-branch/test/io/bmi/test-bmi-client.c
r7956 r8330 19 19 #include <string.h> 20 20 21 #include "pvfs2.h"22 21 #include "bmi.h" 23 22 #include "test-bmi.h" … … 135 134 ret = BMI_post_sendunexpected(&(client_ops[1]), server_addr, my_req, 136 135 sizeof(struct server_request), BMI_PRE_ALLOC, 137 0, in_test_user_ptr, context , NULL);136 0, in_test_user_ptr, context); 138 137 if (ret < 0) 139 138 { … … 177 176 ret = BMI_post_recv(&(client_ops[0]), server_addr, my_ack, 178 177 sizeof(struct server_ack), &actual_size, BMI_PRE_ALLOC, 179 0, in_test_user_ptr, context , NULL);178 0, in_test_user_ptr, context); 180 179 if (ret < 0) 181 180 { … … 238 237 */ 239 238 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); 241 240 if (ret < 0) 242 241 { -
branches/cu-security-branch/test/io/bmi/test-bmi-server-eagerbug.c
r7956 r8330 19 19 #include <string.h> 20 20 21 #include "pvfs2.h"22 21 #include "bmi.h" 23 22 #include "gossip.h" … … 158 157 ret = BMI_post_send(&(server_ops[1]), client_addr, my_ack, 159 158 sizeof(struct server_ack), BMI_PRE_ALLOC, 0, NULL, 160 context , NULL);159 context); 161 160 if (ret < 0) 162 161 { … … 184 183 ret = BMI_post_recv(&(server_ops[0]), client_addr, recv_buffer, 185 184 my_req->size, &actual_size, BMI_PRE_ALLOC, 0, NULL, 186 context , NULL);185 context); 187 186 if (ret < 0) 188 187 { … … 233 232 ret = BMI_post_recv_list(&(server_ops_list[0]), client_addr, buffer_list1, 234 233 size_list1, 2, 6, &actual_size, BMI_EXT_ALLOC, 1, NULL, 235 context , NULL);234 context); 236 235 if (ret < 0) 237 236 { … … 276 275 ret = BMI_post_recv_list(&(server_ops_list[0]), client_addr, buffer_list1, 277 276 size_list1, 2, 6, &actual_size, BMI_EXT_ALLOC, 1, NULL, 278 context , NULL);277 context); 279 278 if (ret < 0) 280 279 { -
branches/cu-security-branch/test/io/bmi/test-bmi-server-list.c
r7956 r8330 19 19 #include <string.h> 20 20 21 #include "pvfs2.h"22 21 #include "bmi.h" 23 22 #include "gossip.h" … … 166 165 ret = BMI_post_send(&(server_ops[1]), client_addr, my_ack, 167 166 sizeof(struct server_ack), BMI_PRE_ALLOC, 0, NULL, 168 context , NULL);167 context); 169 168 if (ret < 0) 170 169 { … … 192 191 ret = BMI_post_recv_list(&(server_ops[0]), client_addr, buffer_list, 193 192 size_list, 2, my_req->size, &actual_size, 194 BMI_PRE_ALLOC, 0, NULL, context , NULL);193 BMI_PRE_ALLOC, 0, NULL, context); 195 194 if (ret < 0) 196 195 { -
branches/cu-security-branch/test/io/bmi/test-bmi-server.c
r7956 r8330 19 19 #include <string.h> 20 20 21 #include "pvfs2.h"22 21 #include "bmi.h" 23 22 #include "gossip.h" … … 156 155 ret = BMI_post_send(&(server_ops[1]), client_addr, my_ack, 157 156 sizeof(struct server_ack), BMI_PRE_ALLOC, 0, NULL, 158 context , NULL);157 context); 159 158 if (ret < 0) 160 159 { … … 182 181 ret = BMI_post_recv(&(server_ops[0]), client_addr, recv_buffer, 183 182 my_req->size, &actual_size, BMI_PRE_ALLOC, 0, NULL, 184 context , NULL);183 context); 185 184 if (ret < 0) 186 185 { -
branches/cu-security-branch/test/io/buffer/trove-init.c
r7956 r8330 125 125 NULL, 126 126 trove_context, 127 &op_id, 128 NULL); 127 &op_id); 129 128 while (ret == 0) ret = trove_dspace_test( 130 129 coll_id, op_id, trove_context, &count, NULL, NULL, &state, … … 141 140 val.buffer_sz = sizeof(file_handle); 142 141 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); 144 143 while (ret == 0) ret = trove_dspace_test( 145 144 coll_id, op_id, trove_context, &count, NULL, NULL, &state, … … 182 181 user_ptr_array, 183 182 trove_context, 184 &op_id, 185 NULL); 183 &op_id); 186 184 while (ret == 0) ret = trove_dspace_test( 187 185 coll_id, op_id, trove_context, &count, NULL, NULL, &state, … … 197 195 198 196 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); 200 198 201 199 free(mybuffer); -
branches/cu-security-branch/test/io/description/test-zero-fill.c
r7956 r8330 6 6 #include <time.h> 7 7 #include <unistd.h> 8 #include <assert.h> 9 8 10 #include "pvfs2-request.h" 9 11 #include "pvfs2-sysint.h" … … 26 28 27 29 int do_smallmem_noncontig_read( 28 PVFS_object_ref ref, PVFS_credential s * creds,30 PVFS_object_ref ref, PVFS_credential * cred, 29 31 int memsize, 30 32 int chunks, … … 32 34 33 35 int do_noncontig_read( 34 PVFS_object_ref ref, PVFS_credential s * creds,36 PVFS_object_ref ref, PVFS_credential * cred, 35 37 int chunks, 36 38 ...); … … 38 40 int do_contig_read( 39 41 PVFS_object_ref ref, 40 PVFS_credential s * creds,42 PVFS_credential * cred, 41 43 PVFS_offset offset, 42 44 int length, 43 45 PVFS_Request freq); 44 46 45 int do_write(PVFS_object_ref ref, PVFS_credential s * creds,47 int do_write(PVFS_object_ref ref, PVFS_credential * cred, 46 48 PVFS_offset offset, PVFS_size size, char * buff); 47 49 … … 157 159 158 160 int do_smallmem_noncontig_read( 159 PVFS_object_ref ref, PVFS_credential s * creds,161 PVFS_object_ref ref, PVFS_credential * cred, 160 162 int memsize, 161 163 int chunks, … … 210 212 211 213 res = PVFS_sys_read( 212 ref, readreq, 0, buff, memreq, cred s, &io_resp, NULL);214 ref, readreq, 0, buff, memreq, cred, &io_resp); 213 215 if(res < 0) 214 216 { … … 232 234 233 235 int do_noncontig_read( 234 PVFS_object_ref ref, PVFS_credential s * creds,236 PVFS_object_ref ref, PVFS_credential * cred, 235 237 int chunks, 236 238 ...) … … 285 287 286 288 res = PVFS_sys_read( 287 ref, readreq, 0, buff, memreq, cred s, &io_resp, NULL);289 ref, readreq, 0, buff, memreq, cred, &io_resp); 288 290 if(res < 0) 289 291 { … … 307 309 int do_contig_read( 308 310 PVFS_object_ref ref, 309 PVFS_credential s * creds,311 PVFS_credential * cred, 310 312 PVFS_offset offset, 311 313 int length, … … 349 351 350 352 res = PVFS_sys_read( 351 ref, readreq, offset, buff, memreq, cred s, &io_resp, NULL);353 ref, readreq, offset, buff, memreq, cred, &io_resp); 352 354 if(res < 0) 353 355 { … … 367 369 } 368 370 369 int do_write(PVFS_object_ref ref, PVFS_credential s * creds,371 int do_write(PVFS_object_ref ref, PVFS_credential * cred, 370 372 PVFS_offset offset, PVFS_size size, char * buff) 371 373 { … … 403 405 res = PVFS_sys_write( 404 406 ref, filereq, 405 offset, buff, memreq, cred s, &io_resp, NULL);407 offset, buff, memreq, cred, &io_resp); 406 408 if(res < 0) 407 409 { … … 433 435 PVFS_fs_id curfs; 434 436 PVFS_sys_attr attr; 435 PVFS_credential s creds;437 PVFS_credential *cred; 436 438 PVFS_sys_dist * dist; 437 439 int strip_size = 9; … … 502 504 before_len, dashes, after_len, dashes); 503 505 } 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); 506 511 if(res < 0) 507 512 { … … 518 523 } 519 524 520 PVFS_util_gen_credentials(&creds);521 522 525 attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; 523 attr.owner = cred s.uid;524 attr.group = cred s.gid;526 attr.owner = cred->userid; 527 attr.group = cred->group_array[0]; 525 528 attr.perms = 1877; 526 529 attr.atime = attr.ctime = attr.mtime = time(NULL); … … 534 537 535 538 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); 537 540 if(res < 0) 538 541 { … … 543 546 half_strip = strip_size / 2; 544 547 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); 551 554 if(res < 0) 552 555 { … … 555 558 556 559 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, 565 568 (strip_size + half_strip), (strip_size + half_strip), NULL); 566 569 if(res < 0) … … 570 573 571 574 res = do_contig_read( 572 create_resp.ref, &creds,575 create_resp.ref, cred, 573 576 (strip_size + half_strip), (strip_size + half_strip), PVFS_BYTE); 574 577 if(res < 0) … … 578 581 579 582 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, 653 656 (strip_size * 3 + half_strip), (strip_size + half_strip), NULL); 654 657 if(res < 0) … … 658 661 659 662 res = do_contig_read( 660 create_resp.ref, &creds,663 create_resp.ref, cred, 661 664 (strip_size * 3 + half_strip), (strip_size + half_strip), PVFS_BYTE); 662 665 if(res < 0) … … 666 669 667 670 res = do_contig_read( 668 create_resp.ref, &creds,671 create_resp.ref, cred, 669 672 0, (strip_size * 5), NULL); 670 673 if(res < 0) … … 674 677 675 678 res = do_contig_read( 676 create_resp.ref, &creds,679 create_resp.ref, cred, 677 680 0, (strip_size * 5), PVFS_BYTE); 678 681 if(res < 0) … … 682 685 683 686 res = do_contig_read( 684 create_resp.ref, &creds,687 create_resp.ref, cred, 685 688 (strip_size + half_strip), (strip_size + half_strip), NULL); 686 689 if(res < 0) … … 690 693 691 694 res = do_contig_read( 692 create_resp.ref, &creds,695 create_resp.ref, cred, 693 696 (strip_size + half_strip), (strip_size + half_strip), PVFS_BYTE); 694 697 if(res < 0) … … 698 701 699 702 res = do_contig_read( 700 create_resp.ref, &creds,703 create_resp.ref, cred, 701 704 0, (strip_size * 3), NULL); 702 705 if(res < 0) … … 706 709 707 710 res = do_contig_read( 708 create_resp.ref, &creds,711 create_resp.ref, cred, 709 712 0, (strip_size * 3), PVFS_BYTE); 710 713 if(res < 0) … … 714 717 715 718 res = do_noncontig_read( 716 create_resp.ref, &creds,719 create_resp.ref, cred, 717 720 2, 718 721 0, strip_size + half_strip, … … 724 727 725 728 res = do_noncontig_read( 726 create_resp.ref, &creds,729 create_resp.ref, cred, 727 730 2, 728 731 0, strip_size, … … 734 737 735 738 res = do_noncontig_read( 736 create_resp.ref, &creds,739 create_resp.ref, cred, 737 740 2, 738 741 0, strip_size, … … 744 747 745 748 res = do_noncontig_read( 746 create_resp.ref, &creds,749 create_resp.ref, cred, 747 750 2, 748 751 strip_size, strip_size, … … 754 757 755 758 res = do_noncontig_read( 756 create_resp.ref, &creds,759 create_resp.ref, cred, 757 760 9, 758 761 2, 2, … … 771 774 772 775 res = do_smallmem_noncontig_read( 773 create_resp.ref, &creds,776 create_resp.ref, cred, 774 777 strip_size, 775 778 4, … … 784 787 785 788 res = do_smallmem_noncontig_read( 786 create_resp.ref, &creds,789 create_resp.ref, cred, 787 790 strip_size, 788 791 2, … … 797 800 zerofill_fname, 798 801 lookup_resp.ref, 799 &creds, 800 NULL); 802 <
