diff options
Diffstat (limited to 'sys-cluster/pvfs2/files')
18 files changed, 0 insertions, 1424 deletions
diff --git a/sys-cluster/pvfs2/files/2.7.0-configure-static-server.patch b/sys-cluster/pvfs2/files/2.7.0-configure-static-server.patch deleted file mode 100644 index dbb2b3e2bf6c..000000000000 --- a/sys-cluster/pvfs2/files/2.7.0-configure-static-server.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- pvfs-2.7.0/configure.in 2007-11-13 17:41:52.000000000 -0500 -+++ pvfs-2.7.0_patched/configure.in 2008-03-09 20:56:55.000000000 -0400 -@@ -933,12 +933,14 @@ - - AC_ARG_ENABLE(static-server, - [ --enable-static-server Builds the server static], --[ -+[ staticserver=$enableval ], -+[ staticserver="no" ] ) -+ -+if test "$staticserver" = "yes"; then - SERVER_LDFLAGS="$LDFLAGS -static" --], --[ -+else - SERVER_LDFLAGS="$LDFLAGS -rdynamic" --]) -+fi - - AC_SUBST(SERVER_LDFLAGS) - diff --git a/sys-cluster/pvfs2/files/2.7.0-ctl_unnumbered.patch b/sys-cluster/pvfs2/files/2.7.0-ctl_unnumbered.patch deleted file mode 100644 index ed648842b7dd..000000000000 --- a/sys-cluster/pvfs2/files/2.7.0-ctl_unnumbered.patch +++ /dev/null @@ -1,239 +0,0 @@ -Index: src/kernel/linux-2.6/pvfs2-proc.c -=================================================================== -RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/pvfs2-proc.c,v -diff -u -r1.8 -r1.9 ---- src/kernel/linux-2.6/pvfs2-proc.c 19 Aug 2007 18:20:28 -0000 1.8 -+++ src/kernel/linux-2.6/pvfs2-proc.c 11 Jan 2008 15:20:16 -0000 1.9 -@@ -261,10 +261,19 @@ - static int min_debug[] = {0}, max_debug[] = {GOSSIP_MAX_DEBUG}; - static int min_op_timeout_secs[] = {0}, max_op_timeout_secs[] = {INT_MAX}; - -+/* -+ * Modern kernels prefer to number the controls themselves. -+ */ -+#ifdef CTL_UNNUMBERED -+#define UNNUMBERED_OR_VAL(x) CTL_UNNUMBERED -+#else -+#define UNNUMBERED_OR_VAL(x) x -+#endif -+ - static ctl_table pvfs2_acache_table[] = { - /* controls acache timeout */ - { -- .ctl_name = 1, -+ .ctl_name = UNNUMBERED_OR_VAL(1), - .procname = "timeout-msecs", - .maxlen = sizeof(int), - .mode = 0644, -@@ -273,7 +282,7 @@ - }, - /* controls acache hard limit */ - { -- .ctl_name = 2, -+ .ctl_name = UNNUMBERED_OR_VAL(2), - .procname = "hard-limit", - .maxlen = sizeof(int), - .mode = 0644, -@@ -282,7 +291,7 @@ - }, - /* controls acache soft limit */ - { -- .ctl_name = 3, -+ .ctl_name = UNNUMBERED_OR_VAL(3), - .procname = "soft-limit", - .maxlen = sizeof(int), - .mode = 0644, -@@ -291,7 +300,7 @@ - }, - /* controls acache reclaim percentage */ - { -- .ctl_name = 4, -+ .ctl_name = UNNUMBERED_OR_VAL(4), - .procname = "reclaim-percentage", - .maxlen = sizeof(int), - .mode = 0644, -@@ -303,7 +312,7 @@ - static ctl_table pvfs2_ncache_table[] = { - /* controls ncache timeout */ - { -- .ctl_name = 1, -+ .ctl_name = UNNUMBERED_OR_VAL(1), - .procname = "timeout-msecs", - .maxlen = sizeof(int), - .mode = 0644, -@@ -312,7 +321,7 @@ - }, - /* controls ncache hard limit */ - { -- .ctl_name = 2, -+ .ctl_name = UNNUMBERED_OR_VAL(2), - .procname = "hard-limit", - .maxlen = sizeof(int), - .mode = 0644, -@@ -321,7 +330,7 @@ - }, - /* controls ncache soft limit */ - { -- .ctl_name = 3, -+ .ctl_name = UNNUMBERED_OR_VAL(3), - .procname = "soft-limit", - .maxlen = sizeof(int), - .mode = 0644, -@@ -330,7 +339,7 @@ - }, - /* controls ncache reclaim percentage */ - { -- .ctl_name = 4, -+ .ctl_name = UNNUMBERED_OR_VAL(4), - .procname = "reclaim-percentage", - .maxlen = sizeof(int), - .mode = 0644, -@@ -343,15 +352,15 @@ - static int ncache_perf_count = PVFS2_PERF_COUNT_REQUEST_NCACHE; - static ctl_table pvfs2_pc_table[] = { - { -- .ctl_name = 1, -+ .ctl_name = UNNUMBERED_OR_VAL(1), - .procname = "acache", - .maxlen = 4096, - .mode = 0444, - .proc_handler = pvfs2_pc_proc_handler, - .extra1 = &acache_perf_count, - }, - { -- .ctl_name = 2, -+ .ctl_name = UNNUMBERED_OR_VAL(2), - .procname = "ncache", - .maxlen = 4096, - .mode = 0444, -@@ -366,44 +375,44 @@ - static ctl_table pvfs2_stats_table[] = { - /* shows number of hits in cache */ - { -- .ctl_name = 1, -+ .ctl_name = UNNUMBERED_OR_VAL(1), - .procname = "hits", - .data = &g_pvfs2_stats.cache_hits, - .maxlen = sizeof(unsigned long), - .mode = 0444, - .proc_handler = &proc_dointvec, - }, - { -- .ctl_name = 2, -+ .ctl_name = UNNUMBERED_OR_VAL(2), - .procname = "misses", - .data = &g_pvfs2_stats.cache_misses, - .maxlen = sizeof(unsigned long), - .mode = 0444, - .proc_handler = &proc_dointvec, - }, - { -- .ctl_name = 3, -+ .ctl_name = UNNUMBERED_OR_VAL(3), - .procname = "reads", - .data = &g_pvfs2_stats.reads, - .maxlen = sizeof(unsigned long), - .mode = 0444, - .proc_handler = &proc_dointvec, - }, - { -- .ctl_name = 4, -+ .ctl_name = UNNUMBERED_OR_VAL(4), - .procname = "writes", - .data = &g_pvfs2_stats.writes, - .maxlen = sizeof(unsigned long), - .mode = 0444, - .proc_handler = &proc_dointvec, - }, -- {.ctl_name = 0}, -+ {0} - }; - - static ctl_table pvfs2_table[] = { - /* controls debugging level */ - { -- .ctl_name = 1, -+ .ctl_name = UNNUMBERED_OR_VAL(1), - .procname = "debug", - .data = &gossip_debug_mask, - .maxlen = sizeof(int), -@@ -415,7 +424,7 @@ - }, - /* operation timeout */ - { -- .ctl_name = 2, -+ .ctl_name = UNNUMBERED_OR_VAL(2), - .procname = "op-timeout-secs", - .data = &op_timeout_secs, - .maxlen = sizeof(int), -@@ -427,7 +436,7 @@ - }, - /* time interval for client side performance counters */ - { -- .ctl_name = 3, -+ .ctl_name = UNNUMBERED_OR_VAL(3), - .procname = "perf-time-interval-secs", - .maxlen = sizeof(int), - .mode = 0644, -@@ -436,7 +445,7 @@ - }, - /* time interval for client side performance counters */ - { -- .ctl_name = 4, -+ .ctl_name = UNNUMBERED_OR_VAL(4), - .procname = "perf-history-size", - .maxlen = sizeof(int), - .mode = 0644, -@@ -445,7 +454,7 @@ - }, - /* reset performance counters */ - { -- .ctl_name = 5, -+ .ctl_name = UNNUMBERED_OR_VAL(5), - .procname = "perf-counter-reset", - .maxlen = sizeof(int), - .mode = 0644, -@@ -454,30 +463,30 @@ - }, - /* subdir for acache control */ - { -- .ctl_name = 6, -+ .ctl_name = UNNUMBERED_OR_VAL(6), - .procname = "acache", - .maxlen = 0, - .mode = 0555, - .child = pvfs2_acache_table - }, - { -- .ctl_name = 7, -+ .ctl_name = UNNUMBERED_OR_VAL(7), - .procname = "perf-counters", - .maxlen = 0, - .mode = 0555, - .child = pvfs2_pc_table - }, - /* subdir for ncache control */ - { -- .ctl_name = 8, -+ .ctl_name = UNNUMBERED_OR_VAL(8), - .procname = "ncache", - .maxlen = 0, - .mode = 0555, - .child = pvfs2_ncache_table - }, - /* statistics maintained by the kernel module (output only below this) */ - { -- .ctl_name = 9, -+ .ctl_name = UNNUMBERED_OR_VAL(9), - .procname = "stats", - .maxlen = 0, - .mode = 0555, -@@ -487,7 +496,7 @@ - }; - static ctl_table fs_table[] = { - { -- .ctl_name = 1, -+ .ctl_name = UNNUMBERED_OR_VAL(1), - .procname = "pvfs2", - .mode = 0555, - .child = pvfs2_table diff --git a/sys-cluster/pvfs2/files/2.7.0-gentoo-makefile.patch b/sys-cluster/pvfs2/files/2.7.0-gentoo-makefile.patch deleted file mode 100644 index 0e277e14cbba..000000000000 --- a/sys-cluster/pvfs2/files/2.7.0-gentoo-makefile.patch +++ /dev/null @@ -1,198 +0,0 @@ -diff -urN pvfs-2.7.0/Makefile.in pvfs-2.7.0_patched/Makefile.in ---- pvfs-2.7.0/Makefile.in 2008-02-28 10:27:37.000000000 -0500 -+++ pvfs-2.7.0_patched/Makefile.in 2008-02-28 10:27:35.000000000 -0500 -@@ -52,10 +52,14 @@ - # define a few generic variables that we need to use - DESTDIR = - srcdir = @srcdir@ --prefix = $(DESTDIR)@prefix@ -+prefix = @prefix@ - datarootdir = $(DESTDIR)@datarootdir@ - mandir = $(DESTDIR)@mandir@ --exec_prefix = $(DESTDIR)@exec_prefix@ -+exec_prefix = @exec_prefix@ -+sbindir = $(DESTDIR)@sbindir@ -+bindir = $(DESTDIR)@bindir@ -+libdir = $(DESTDIR)@libdir@ -+includedir = $(DESTDIR)@includedir@ - - VPATH = $(srcdir) - SHELL = @SHELL@ -@@ -63,6 +67,7 @@ - # TODO: should probably check for bison and flex in configure - BISON = bison - FLEX = flex -+LN_S = ln -s - BUILD_BMI_TCP = @BUILD_BMI_TCP@ - BUILD_GM = @BUILD_GM@ - BUILD_MX = @BUILD_MX@ -@@ -162,6 +167,9 @@ - REDHAT_RELEASE = @REDHAT_RELEASE@ - NPTL_WORKAROUND = @NPTL_WORKAROUND@ - STRICT_CFLAGS = @STRICT_CFLAGS@ -+SO_FULL = 2.0.0 -+SO_MAJOR = 2 -+ - # for Solaris: - # LIBS += -lsocket -lnsl - -@@ -435,8 +443,10 @@ - LIBRARIES := - LIBRARIES_THREADED := - ifeq ($(build_shared),yes) --LIBRARIES_SHARED = lib/libpvfs2.so -+LIBRARIES_SHARED = lib/libpvfs2.so.$(SO_FULL) - LIBRARIES += $(LIBRARIES_SHARED) -+LIBRARIES_THREADED_SHARED = lib/libpvfs2-threaded.so.$(SO_FULL) -+LIBRARIES_THREADED += $(LIBRARIES_THREADED_SHARED) - endif - ifeq ($(build_static),yes) - LIBRARIES_STATIC = lib/libpvfs2.a -@@ -627,16 +637,16 @@ - $(E)ar rcs $@ $(LIBTHREADEDOBJS) - - # rule for building the pvfs2 library --lib/libpvfs2.so: $(LIBPICOBJS) -+lib/libpvfs2.so.$(SO_FULL): $(LIBPICOBJS) - $(Q) " LDSO $@" - $(E)$(INSTALL) -d lib -- $(E)$(LDSHARED) -o $@ $(LIBPICOBJS) -+ $(E)$(LDSHARED) -Wl,-soname,libpvfs2.so -o $@ $(LIBPICOBJS) - - # rule for building the pvfs2 _multithreaded_ library --lib/libpvfs2-threaded.so: $(LIBTHREADEDPICOBJS) -+lib/libpvfs2-threaded.so.$(SO_FULL): $(LIBTHREADEDPICOBJS) - $(Q) " LDSO $@" - $(E)$(INSTALL) -d lib -- $(E)$(LDSHARED) -o $@ $(LIBTHREADEDPICOBJS) -+ $(E)$(LDSHARED) -Wl,-soname,libpvfs2-threaded.so -o $@ $(LIBTHREADEDPICOBJS) - - # rule for building the pvfs2 server library - lib/libpvfs2-server.a: $(SERVEROBJS) -@@ -713,7 +723,7 @@ - - # all applications depend on the pvfs2 library - $(ADMINTOOLS): %: %.o $(LIBRARIES) --$(ADMINTOOLS_SERVER): %: %.o $(LIBRARIES) lib/libpvfs2-server.a -+$(ADMINTOOLS_SERVER): %: %.o $(LIBRARIES) - $(KERNAPPS): %: %.o $(LIBRARIES) - $(KERNAPPSTHR): %: %.o $(LIBRARIES_THREADED) - -@@ -769,7 +779,7 @@ - $(E)rm -f $(LIBOBJS) $(LIBTHREADEDOBJS) $(SERVEROBJS) $(MISCOBJS) \ - $(LIBRARIES) $(LIBRARIES_THREADED) $(DEPENDS) $(SERVER) \ - $(ADMINOBJS) $(ADMINOBJS_SERVER) $(ADMINTOOLS)\ -- $(ADMINTOOLS_SERVER) lib/libpvfs2-server.a\ -+ $(ADMINTOOLS_SERVER) \ - $(KERNAPPOBJS) $(KERNAPPS) $(KERNAPPSTHR) \ - $(VISS) $(VISMISCOBJS) $(VISOBJS) $(VISDEPENDS)\ - $(VISMISCDEPENDS) $(KARMAOBJS) $(LIBPICOBJS) \ -@@ -883,43 +893,48 @@ - install -m 644 $(srcdir)/doc/man/*.5 $(mandir)/man5 - - install:: all install_doc -- install -d $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2.h $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2-request.h $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2-debug.h $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2-sysint.h $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2-mgmt.h $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2-types.h $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2-util.h $(prefix)/include -- install -m 644 $(srcdir)/include/pvfs2-encode-stubs.h $(prefix)/include -- -- install -d $(prefix)/lib -- install -m 755 $(LIBRARIES) $(prefix)/lib -+ install -d $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2.h $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2-request.h $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2-debug.h $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2-sysint.h $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2-mgmt.h $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2-types.h $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2-util.h $(includedir) -+ install -m 644 $(srcdir)/include/pvfs2-encode-stubs.h $(includedir) -+ -+ install -d $(libdir) -+ install -m 755 $(LIBRARIES) $(libdir) -+ install -m 755 $(LIBRARIES_THREADED) $(libdir) -+ $(LN_S) libpvfs2-threaded.so.$(SO_FULL) $(libdir)/libpvfs2-threaded.so.$(SO_MAJOR) -+ $(LN_S) libpvfs2-threaded.so.$(SO_FULL) $(libdir)/libpvfs2-threaded.so -+ $(LN_S) libpvfs2.so.$(SO_FULL) $(libdir)/libpvfs2.so.$(SO_MAJOR) -+ $(LN_S) libpvfs2.so.$(SO_FULL) $(libdir)/libpvfs2.so - - ifdef TARGET_OS_DARWIN - # TOC needs to be regenerated in libs after they get moved - ranlib $(patsubst %,$(prefix)/%,$(LIBRARIES)) - endif - -- install -d $(prefix)/bin -- install -m 755 $(ADMINTOOLS) $(prefix)/bin -- install -m 755 src/apps/admin/pvfs2-config $(prefix)/bin -+ install -d $(bindir) -+ install -m 755 $(ADMINTOOLS) $(bindir) -+ install -m 755 src/apps/admin/pvfs2-config $(bindir) - @# if we ever auto-generate genconfig, remove the $(srcdir) -- install -m 755 $(srcdir)/src/apps/admin/pvfs2-genconfig $(prefix)/bin -- install -m 755 $(srcdir)/src/apps/admin/pvfs2-config-convert $(prefix)/bin -+ install -m 755 $(srcdir)/src/apps/admin/pvfs2-genconfig $(bindir) -+ install -m 755 $(srcdir)/src/apps/admin/pvfs2-config-convert $(bindir) - ifdef BUILD_KARMA -- install -m 755 $(KARMA) $(prefix)/bin -+ install -m 755 $(KARMA) $(bindir) - endif - -- install -d $(prefix)/sbin -+ install -d $(sbindir) - - ifdef BUILD_SERVER -- install -m 755 $(ADMINTOOLS_SERVER) $(prefix)/bin -+ install -m 755 $(ADMINTOOLS_SERVER) $(bindir) - ifeq ($(NPTL_WORKAROUND),) -- install -m 755 $(SERVER) $(prefix)/sbin -+ install -m 755 $(SERVER) $(sbindir) - else -- install -m 755 $(srcdir)/$(SERVER_STUB) $(prefix)/sbin/pvfs2-server -- install -m 755 $(SERVER) $(prefix)/sbin/pvfs2-server.bin -+ install -m 755 $(srcdir)/$(SERVER_STUB) $(sbindir)/pvfs2-server -+ install -m 755 $(SERVER) $(sbindir)/pvfs2-server.bin - endif - endif - -@@ -939,9 +954,12 @@ - install -m 755 src/kernel/linux-2.6/pvfs2.ko $(KMOD_DIR) - - .PHONY: kmod_install --kmod_install: kmod kernapps just_kmod_install -- install -d $(prefix)/sbin -- install -m 755 $(KERNAPPS) $(prefix)/sbin -+kmod_install: kmod kernapps_install just_kmod_install -+ -+.PHONY: kernapps_install -+kernapps_install: kernapps -+ install -d $(sbindir) -+ install -m 755 $(KERNAPPS) $(sbindir) - endif - - ifneq (,$(LINUX24_KERNEL_SRC)) -@@ -960,12 +978,15 @@ - install -m 755 src/kernel/linux-2.4/pvfs2.o $(KMOD_DIR) - - .PHONY: kmod24_install --kmod24_install: kmod24 kernapps just_kmod24_install -- install -d $(prefix)/sbin -- install -m 755 $(KERNAPPS) $(prefix)/sbin -- install -m 755 src/apps/kernel/linux/mount.pvfs2 $(prefix)/sbin -+kmod24_install: kmod24 kernapps_install just_kmod24_install -+ -+.PHONY: kernapps_install -+kernapps_install: kernapps -+ install -d $(sbindir) -+ install -m 755 $(KERNAPPS) $(sbindir) -+ install -m 755 src/apps/kernel/linux/mount.pvfs2 $(sbindir) - @echo "" - @echo "For improved linux-2.4 support," -- @echo "install $(prefix)/sbin/mount.pvfs2 to /sbin/mount.pvfs2" -+ @echo "install $(sbindir)/mount.pvfs2 to /sbin/mount.pvfs2" - @echo "" - endif diff --git a/sys-cluster/pvfs2/files/2.7.0-kernel-rt.patch b/sys-cluster/pvfs2/files/2.7.0-kernel-rt.patch deleted file mode 100644 index 2b67ff9fd987..000000000000 --- a/sys-cluster/pvfs2/files/2.7.0-kernel-rt.patch +++ /dev/null @@ -1,88 +0,0 @@ -Index: pvfs2-config.h.in -=================================================================== -RCS file: /projects/cvsroot/pvfs2/pvfs2-config.h.in,v -diff -u -N -r1.111 -r1.112 ---- pvfs2-config.h.in 5 Nov 2007 21:07:54 -0000 1.111 -+++ pvfs2-config.h.in 7 Dec 2007 23:05:56 -0000 1.112 -@@ -198,6 +198,9 @@ - /* Define to 1 if you have the <malloc.h> header file. */ - #undef HAVE_MALLOC_H - -+/* Define if kernel defines mapping_nrpages macro -- defined by RT linux */ -+#undef HAVE_MAPPING_NRPAGES_MACRO -+ - /* Define to 1 if you have the <memory.h> header file. */ - #undef HAVE_MEMORY_H - -@@ -258,6 +261,10 @@ - /* Define if kernel has register_ioctl32_conversion */ - #undef HAVE_REGISTER_IOCTL32_CONVERSION - -+/* Define if kernel address_space struct has a spin_lock for private data -+ instead of rw_lock -- used by RT linux */ -+#undef HAVE_RT_PRIV_LOCK_ADDR_SPACE_STRUCT -+ - /* Define to 1 if you have the <SDL/SDL_ttf.h> header file. */ - #undef HAVE_SDL_SDL_TTF_H - -@@ -273,6 +280,9 @@ - /* Define if SLAB_KERNEL is defined in kernel */ - #undef HAVE_SLAB_KERNEL - -+/* Define if kernel address_space struct has a spin_lock instead of rw_lock */ -+#undef HAVE_SPIN_LOCK_ADDR_SPACE_STRUCT -+ - /* Define if struct super_operations in kernel has statfs_lite callback */ - #undef HAVE_STATFS_LITE_SUPER_OPERATIONS - -Index: maint/config/kernel.m4 -=================================================================== -RCS file: /projects/cvsroot/pvfs2/maint/config/kernel.m4,v -diff -u -N -r1.46 -r1.47 ---- maint/config/kernel.m4 6 Nov 2007 16:29:52 -0000 1.46 -+++ maint/config/kernel.m4 7 Dec 2007 23:05:56 -0000 1.47 -@@ -849,5 +849,44 @@ - AC_MSG_RESULT(no) - ) - -+ AC_MSG_CHECKING(if kernel address_space struct has a spin_lock field) -+ AC_TRY_COMPILE([ -+ #define __KERNEL__ -+ #include <linux/fs.h> -+ ], [ -+ struct address_space as; -+ spin_lock(&as.page_lock); -+ ], -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(HAVE_SPIN_LOCK_ADDR_SPACE_STRUCT, 1, [Define if kernel address_space struct has a spin_lock instead of rw_lock]), -+ AC_MSG_RESULT(no) -+ ) -+ -+ AC_MSG_CHECKING(if kernel address_space struct has a priv_lock field - from RT linux) -+ AC_TRY_COMPILE([ -+ #define __KERNEL__ -+ #include <linux/fs.h> -+ ], [ -+ struct address_space as; -+ spin_lock(&as.priv_lock); -+ ], -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(HAVE_RT_PRIV_LOCK_ADDR_SPACE_STRUCT, 1, [Define if kernel address_space struct has a spin_lock for private data instead of rw_lock -- used by RT linux]), -+ AC_MSG_RESULT(no) -+ ) -+ -+ AC_MSG_CHECKING(if kernel defines mapping_nrpages macro - from RT linux) -+ AC_TRY_COMPILE([ -+ #define __KERNEL__ -+ #include <linux/fs.h> -+ ], [ -+ struct address_space idata; -+ int i = mapping_nrpages(&idata); -+ ], -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(HAVE_MAPPING_NRPAGES_MACRO, 1, [Define if kernel defines mapping_nrpages macro -- defined by RT linux]), -+ AC_MSG_RESULT(no) -+ ) -+ - CFLAGS=$oldcflags - ]) diff --git a/sys-cluster/pvfs2/files/2.7.0-kmem_cache.patch b/sys-cluster/pvfs2/files/2.7.0-kmem_cache.patch deleted file mode 100644 index e91a5d51f128..000000000000 --- a/sys-cluster/pvfs2/files/2.7.0-kmem_cache.patch +++ /dev/null @@ -1,127 +0,0 @@ -Index: pvfs2-config.h.in -=================================================================== -RCS file: /projects/cvsroot/pvfs2/pvfs2-config.h.in,v -diff -u -r1.113 -r1.114 ---- pvfs2-config.h.in 11 Jan 2008 15:00:08 -0000 1.113 -+++ pvfs2-config.h.in 11 Jan 2008 20:30:17 -0000 1.114 -@@ -159,6 +159,10 @@ - /* Define if kernel lacks device classes */ - #undef HAVE_KERNEL_DEVICE_CLASSES - -+/* Define if kernel kmem_cache_create constructor has new-style two-parameter -+ form */ -+#undef HAVE_KMEM_CACHE_CREATE_CTOR_TWO_PARAM -+ - /* Define if kernel kmem_cache_create has destructor param */ - #undef HAVE_KMEM_CACHE_CREATE_DESTRUCTOR_PARAM - -Index: maint/config/kernel.m4 -=================================================================== -RCS file: /projects/cvsroot/pvfs2/maint/config/kernel.m4,v -diff -u -r1.50 -r1.51 ---- maint/config/kernel.m4 11 Jan 2008 20:07:20 -0000 1.50 -+++ maint/config/kernel.m4 11 Jan 2008 20:30:16 -0000 1.51 -@@ -126,6 +126,7 @@ - AC_MSG_CHECKING(for struct kmem_cache in kernel) - AC_TRY_COMPILE([ - #define __KERNEL__ -+ #include <linux/kernel.h> - #include <linux/slab.h> - - int foo(struct kmem_cache *s) -@@ -866,6 +865,32 @@ - AC_MSG_RESULT(no) - ) - -+ dnl 2.6.24 changed the constructor parameter signature of -+ dnl kmem_cache_create. Check for this newer two-param style and -+ dnl if not, assume it is old. Note we can get away with just -+ dnl struct kmem_cache (and not kmem_cache_t) as that change happened -+ dnl in older kernels. If they don't match, gcc complains about -+ dnl passing argument ... from incompatible pointer type, hence the -+ dnl need for the -Werror. -+ tmp_cflags=$CFLAGS -+ CFLAGS="$CFLAGS -Werror" -+ AC_MSG_CHECKING(for two-param kmem_cache_create constructor) -+ AC_TRY_COMPILE([ -+ #define __KERNEL__ -+ #include <linux/kernel.h> -+ #include <linux/slab.h> -+ void ctor(struct kmem_cache *cachep, void *req) -+ { -+ } -+ ], [ -+ kmem_cache_create("config-test", 0, 0, 0, ctor); -+ ], -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(HAVE_KMEM_CACHE_CREATE_CTOR_TWO_PARAM, 1, [Define if kernel kmem_cache_create constructor has new-style two-parameter form]), -+ AC_MSG_RESULT(no) -+ ) -+ CFLAGS=$tmp_cflags -+ - AC_MSG_CHECKING(if kernel address_space struct has a spin_lock field named page_lock) - AC_TRY_COMPILE([ - #define __KERNEL__ -Index: src/kernel/linux-2.6/pvfs2-cache.c -=================================================================== -RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/pvfs2-cache.c,v -diff -u -r1.44 -r1.45 ---- src/kernel/linux-2.6/pvfs2-cache.c 4 Nov 2007 01:38:57 -0000 1.44 -+++ src/kernel/linux-2.6/pvfs2-cache.c 11 Jan 2008 20:30:17 -0000 1.45 -@@ -202,10 +202,17 @@ - } - } - -+ - static void dev_req_cache_ctor( -+#ifdef HAVE_KMEM_CACHE_CREATE_CTOR_TWO_PARAM -+ struct kmem_cache *cachep, -+ void *req -+#else - void *req, - pvfs2_kmem_cache_t * cachep, -- unsigned long flags) -+ unsigned long flags -+#endif -+) - { - memset(req, 0, sizeof(MAX_ALIGNED_DEV_REQ_DOWNSIZE)); - } -@@ -264,11 +271,17 @@ - } - - static void pvfs2_inode_cache_ctor( -- void *new_pvfs2_inode, -+#ifdef HAVE_KMEM_CACHE_CREATE_CTOR_TWO_PARAM -+ struct kmem_cache *cachep, -+ void *req -+#else -+ void *req, - pvfs2_kmem_cache_t * cachep, -- unsigned long flags) -+ unsigned long flags -+#endif -+) - { -- pvfs2_inode_t *pvfs2_inode = (pvfs2_inode_t *)new_pvfs2_inode; -+ pvfs2_inode_t *pvfs2_inode = req; - - memset(pvfs2_inode, 0, sizeof(pvfs2_inode_t)); - ClearInitFlag(pvfs2_inode); -@@ -382,9 +395,15 @@ - #ifdef HAVE_AIO_VFS_SUPPORT - - static void kiocb_ctor( -+#ifdef HAVE_KMEM_CACHE_CREATE_CTOR_TWO_PARAM -+ struct kmem_cache *cachep, -+ void *req -+#else - void *req, - pvfs2_kmem_cache_t * cachep, -- unsigned long flags) -+ unsigned long flags -+#endif -+) - { - memset(req, 0, sizeof(pvfs2_kiocb)); - } diff --git a/sys-cluster/pvfs2/files/2.7.0-verbose-checking.patch b/sys-cluster/pvfs2/files/2.7.0-verbose-checking.patch deleted file mode 100644 index d02eb7554b60..000000000000 --- a/sys-cluster/pvfs2/files/2.7.0-verbose-checking.patch +++ /dev/null @@ -1,15 +0,0 @@ -Index: maint/config/kernel.m4 -=================================================================== -RCS file: /projects/cvsroot/pvfs2/maint/config/kernel.m4,v -diff -u -N -r1.48 -r1.49 ---- maint/config/kernel.m4 11 Jan 2008 15:00:08 -0000 1.48 -+++ maint/config/kernel.m4 11 Jan 2008 15:02:14 -0000 1.49 -@@ -849,7 +849,7 @@ - AC_MSG_RESULT(no) - ) - -- AC_MSG_CHECKING(if kernel address_space struct has a spin_lock field) -+ AC_MSG_CHECKING(if kernel address_space struct has a spin_lock field named page_lock) - AC_TRY_COMPILE([ - #define __KERNEL__ - #include <linux/fs.h> diff --git a/sys-cluster/pvfs2/files/pvfs2-2.7.1-2.6.29-fixes.patch b/sys-cluster/pvfs2/files/pvfs2-2.7.1-2.6.29-fixes.patch deleted file mode 100644 index 7c6c7dc24fc5..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-2.7.1-2.6.29-fixes.patch +++ /dev/null @@ -1,235 +0,0 @@ -From a23f33d2a86735194b42e3f84f2fbfb7e7d9e9df Mon Sep 17 00:00:00 2001 -From: Justin Bronder <jsbronder@gmail.com> -Date: Sun, 27 Sep 2009 09:49:42 -0400 -Subject: [PATCH] 2.6.29 fixes. - -Backport of: -http://www.pvfs.org/fisheye/changelog/PVFS/?cs=MAIN:pcarns:20090401212735 -http://www.pvfs.org/fisheye/changelog/PVFS/?cs=MAIN:pcarns:20090401202748 ---- - maint/config/kernel.m4 | 21 ++++++++++++++++++++- - pvfs2-config.h.in | 3 +++ - src/kernel/linux-2.6/acl.c | 21 ++++++++++++++++----- - src/kernel/linux-2.6/inode.c | 5 +++++ - src/kernel/linux-2.6/pvfs2-kernel.h | 13 +++++++++++++ - src/kernel/linux-2.6/pvfs2-utils.c | 16 +++++++++++++++- - 6 files changed, 72 insertions(+), 7 deletions(-) - -diff --git a/maint/config/kernel.m4 b/maint/config/kernel.m4 -index 15123de..4e2abc4 100644 ---- a/maint/config/kernel.m4 -+++ b/maint/config/kernel.m4 -@@ -20,7 +20,7 @@ AC_DEFUN([AX_KERNEL_FEATURES], - dnl we probably need additional includes if this build is intended - dnl for a different architecture - if test -n "${ARCH}" ; then -- CFLAGS="$CFLAGS -I$lk_src/arch/${ARCH}/include" -+ CFLAGS="$CFLAGS -I$lk_src/arch/${ARCH}/include -I$lk_src/arch/${ARCH}/include/asm/mach-default" - fi - - AC_MSG_CHECKING(for i_size_write in kernel) -@@ -985,5 +985,24 @@ AC_DEFUN([AX_KERNEL_FEATURES], - AC_MSG_RESULT(no) - ) - -+ dnl newer 2.6 kernels (2.6.29-ish) use current_fsuid() macro instead -+ dnl of accessing task struct fields directly -+ tmp_cflags=$CFLAGS -+ CFLAGS="$CFLAGS -Werror" -+ AC_MSG_CHECKING(for current_fsuid) -+ AC_TRY_COMPILE([ -+ #define __KERNEL__ -+ #include <linux/sched.h> -+ #include <linux/cred.h> -+ ], [ -+ int uid = current_fsuid(); -+ ], -+ AC_MSG_RESULT(yes) -+ AC_DEFINE(HAVE_CURRENT_FSUID, 1, [Define if cred.h contains current_fsuid]), -+ AC_MSG_RESULT(no) -+ ) -+ CFLAGS=$tmp_cflags -+ -+ - CFLAGS=$oldcflags - ]) -diff --git a/pvfs2-config.h.in b/pvfs2-config.h.in -index e08a89d..de97472 100644 ---- a/pvfs2-config.h.in -+++ b/pvfs2-config.h.in -@@ -43,6 +43,9 @@ - /* Define if third param (message) to DB error callback function is const */ - #undef HAVE_CONST_THIRD_PARAMETER_TO_DB_ERROR_CALLBACK - -+/* Define if cred.h contains current_fsuid */ -+#undef HAVE_CURRENT_FSUID -+ - /* Define if DB error callback function takes dbenv parameter */ - #undef HAVE_DBENV_PARAMETER_TO_DB_ERROR_CALLBACK - -diff --git a/src/kernel/linux-2.6/acl.c b/src/kernel/linux-2.6/acl.c -index 252a445..290851b 100644 ---- a/src/kernel/linux-2.6/acl.c -+++ b/src/kernel/linux-2.6/acl.c -@@ -409,6 +409,11 @@ pvfs2_xattr_set_acl(struct inode *inode, int type, const void *value, - { - struct posix_acl *acl; - int error; -+#ifdef HAVE_CURRENT_FSUID -+ int fsuid = current_fsuid(); -+#else -+ int fsuid = current->fsuid; -+#endif - - gossip_debug(GOSSIP_ACL_DEBUG, "pvfs2_xattr_set_acl called with size %ld\n", - (long)size); -@@ -420,11 +425,11 @@ pvfs2_xattr_set_acl(struct inode *inode, int type, const void *value, - return -EOPNOTSUPP; - } - /* Are we capable of setting acls on a file for which we should not be? */ -- if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER)) -+ if ((fsuid != inode->i_uid) && !capable(CAP_FOWNER)) - { - gossip_err("pvfs2_xattr_set_acl: operation not permitted " - "(current->fsuid %d), (inode->owner %d)\n", -- current->fsuid, inode->i_uid); -+ fsuid, inode->i_uid); - return -EPERM; - } - if (value) -@@ -673,6 +678,12 @@ static int pvfs2_check_acl(struct inode *inode, int mask) - - int pvfs2_permission(struct inode *inode, int mask, struct nameidata *nd) - { -+#ifdef HAVE_CURRENT_FSUID -+ int fsuid = current_fsuid(); -+#else -+ int fsuid = current->fsuid; -+#endif -+ - #ifdef HAVE_GENERIC_PERMISSION - int ret; - -@@ -684,7 +695,7 @@ int pvfs2_permission(struct inode *inode, int mask, struct nameidata *nd) - "inode->i_uid = %d, inode->i_gid = %d " - "in_group_p = %d " - "(ret = %d)\n", -- llu(get_handle_from_ino(inode)), mask, inode->i_mode, current->fsuid, -+ llu(get_handle_from_ino(inode)), mask, inode->i_mode, fsuid, - inode->i_uid, inode->i_gid, - in_group_p(inode->i_gid), - ret); -@@ -709,7 +720,7 @@ int pvfs2_permission(struct inode *inode, int mask, struct nameidata *nd) - "mode = %o current->fsuid = %d " - "inode->i_uid = %d, inode->i_gid = %d" - "in_group_p = %d\n", -- llu(get_handle_from_ino(inode)), mask, mode, current->fsuid, -+ llu(get_handle_from_ino(inode)), mask, mode, fsuid, - inode->i_uid, inode->i_gid, - in_group_p(inode->i_gid)); - -@@ -727,7 +738,7 @@ int pvfs2_permission(struct inode *inode, int mask, struct nameidata *nd) - gossip_err("pvfs2_permission: cannot write to an immutable file!\n"); - return -EACCES; - } -- if (current->fsuid == inode->i_uid) -+ if (fsuid == inode->i_uid) - { - mode >>= 6; - } -diff --git a/src/kernel/linux-2.6/inode.c b/src/kernel/linux-2.6/inode.c -index 9a38f59..8651f29 100644 ---- a/src/kernel/linux-2.6/inode.c -+++ b/src/kernel/linux-2.6/inode.c -@@ -532,8 +532,13 @@ struct inode *pvfs2_get_custom_inode_common( - "pvfs2_get_custom_inode_common: inode: %p, inode->i_mode %o\n", - inode, inode->i_mode); - inode->i_mapping->host = inode; -+#ifdef HAVE_CURRENT_FSUID -+ inode->i_uid = current_fsuid(); -+ inode->i_gid = current_fsgid(); -+#else - inode->i_uid = current->fsuid; - inode->i_gid = current->fsgid; -+#endif - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; - inode->i_size = PAGE_CACHE_SIZE; - #ifdef HAVE_I_BLKSIZE_IN_STRUCT_INODE -diff --git a/src/kernel/linux-2.6/pvfs2-kernel.h b/src/kernel/linux-2.6/pvfs2-kernel.h -index ca3b10b..0beb386 100644 ---- a/src/kernel/linux-2.6/pvfs2-kernel.h -+++ b/src/kernel/linux-2.6/pvfs2-kernel.h -@@ -1162,6 +1162,18 @@ static inline struct dentry* pvfs2_d_splice_alias(struct dentry *dentry, struct - return d_splice_alias(inode, dentry); - } - -+#ifdef HAVE_CURRENT_FSUID -+#define fill_default_sys_attrs(sys_attr,type,mode)\ -+do \ -+{ \ -+ sys_attr.owner = current_fsuid(); \ -+ sys_attr.group = current_fsgid(); \ -+ sys_attr.size = 0; \ -+ sys_attr.perms = PVFS_util_translate_mode(mode,0); \ -+ sys_attr.objtype = type; \ -+ sys_attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; \ -+} while(0) -+#else - #define fill_default_sys_attrs(sys_attr,type,mode)\ - do \ - { \ -@@ -1172,6 +1184,7 @@ do \ - sys_attr.objtype = type; \ - sys_attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; \ - } while(0) -+#endif /* HAVE_CURRENT_FSUID */ - - #endif /* PVFS2_LINUX_KERNEL_2_4 */ - -diff --git a/src/kernel/linux-2.6/pvfs2-utils.c b/src/kernel/linux-2.6/pvfs2-utils.c -index 380df79..ec35ceb 100644 ---- a/src/kernel/linux-2.6/pvfs2-utils.c -+++ b/src/kernel/linux-2.6/pvfs2-utils.c -@@ -19,8 +19,13 @@ int pvfs2_gen_credentials( - if (credentials) - { - memset(credentials, 0, sizeof(PVFS_credentials)); -+#ifdef HAVE_CURRENT_FSUID -+ credentials->uid = current_fsuid(); -+ credentials->gid = current_fsgid(); -+#else - credentials->uid = current->fsuid; - credentials->gid = current->fsgid; -+#endif - - ret = 0; - } -@@ -716,6 +721,7 @@ ssize_t pvfs2_inode_getxattr(struct inode *inode, const char* prefix, - pvfs2_kernel_op_t *new_op = NULL; - pvfs2_inode_t *pvfs2_inode = NULL; - ssize_t length = 0; -+ int fsuid, fsgid; - - if (name == NULL || (size > 0 && buffer == NULL)) - { -@@ -730,8 +736,16 @@ ssize_t pvfs2_inode_getxattr(struct inode *inode, const char* prefix, - } - if (inode) - { -+#ifdef HAVE_CURRENT_FSUID -+ fsuid = current_fsuid(); -+ fsgid = current_fsgid(); -+#else -+ fsuid = current->fsuid; -+ fsgid = current->fsgid; -+#endif -+ - gossip_debug(GOSSIP_XATTR_DEBUG, "getxattr on inode %llu, name %s (uid %o, gid %o)\n", -- llu(get_handle_from_ino(inode)), name, current->fsuid, current->fsgid); -+ llu(get_handle_from_ino(inode)), name, fsuid, fsgid); - pvfs2_inode = PVFS2_I(inode); - /* obtain the xattr semaphore */ - down_read(&pvfs2_inode->xattr_sem); --- -1.6.3.3 - diff --git a/sys-cluster/pvfs2/files/pvfs2-2.7.1-2.6.30-fixes.patch b/sys-cluster/pvfs2/files/pvfs2-2.7.1-2.6.30-fixes.patch deleted file mode 100644 index 7615815be02c..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-2.7.1-2.6.30-fixes.patch +++ /dev/null @@ -1,26 +0,0 @@ -From dda026a81c36cdf6fe384f83601f3aa69044d3e3 Mon Sep 17 00:00:00 2001 -From: Justin Bronder <jsbronder@gmail.com> -Date: Sun, 27 Sep 2009 09:58:17 -0400 -Subject: [PATCH] 2.6.30 fixes. - -Backport: -http://www.pvfs.org/fisheye/changelog/PVFS/src/kernel?cs=MAIN:pcarns:20090630184815 ---- - src/kernel/linux-2.6/acl.c | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/src/kernel/linux-2.6/acl.c b/src/kernel/linux-2.6/acl.c -index 290851b..0b1f529 100644 ---- a/src/kernel/linux-2.6/acl.c -+++ b/src/kernel/linux-2.6/acl.c -@@ -31,6 +31,7 @@ - #include <linux/xattr_acl.h> - #endif - #include "bmi-byteswap.h" -+#include <linux/fs_struct.h> - - /* - * Encoding and Decoding the extended attributes so that we can --- -1.6.3.3 - diff --git a/sys-cluster/pvfs2/files/pvfs2-client-conf.d-2.7.0 b/sys-cluster/pvfs2/files/pvfs2-client-conf.d-2.7.0 deleted file mode 100644 index 0aa784595582..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-client-conf.d-2.7.0 +++ /dev/null @@ -1,18 +0,0 @@ -# Extra arguments to supply to the pvfs2-client daemon -#PVFS2_CLIENT_ARGS="-L /var/log/pvfs2-client.log" - -# Location of the pvfs2-client binaries. Defaults are shown -PVFS2_CLIENT="/usr/sbin/pvfs2-client" -PVFS2_CLIENT_CORE="/usr/sbin/pvfs2-client-core" - -# Location to store pid -PVFS2_CLIENT_PIDFILE="/var/run/pvfs2-client.pid" - -# List of server:mountpoint to automatically mount when the -# init script is run. If some other mechanism is used to do -# the mounting, then this can be left commented out. -# 3334 is the default port for pvfs2. -# <host>:<port>,<mount_point> -#PVFS2_MOUNTS="servera.tld:3334,/pvfs serverb.tld:3334,/other/pvfs" - - diff --git a/sys-cluster/pvfs2/files/pvfs2-client-init.d b/sys-cluster/pvfs2/files/pvfs2-client-init.d deleted file mode 100644 index 8ed8eea751ec..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-client-init.d +++ /dev/null @@ -1,76 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/files/pvfs2-client-init.d,v 1.1 2007/10/05 14:03:13 mabi Exp $ - - -depend() { - need net - need localmount - before pbs_mom - after pvfs2-server -} - -checkconfig() { - if [ ! -x "${PVFS2_CLIENT}" ] || [ ! -x "${PVFS2_CLIENT_CORE}" ]; then - eend 1 "pvfs-2 was not correctly installed." - return 1 - fi - - if [ ! -d "${PVFS2_MOUNTPOINT}" ]; then - ewarn "Creating ${PVFS2_MOUNTPOINT}" - mkdir -p ${PVFS2_MOUNTPOINT} || return 1 - fi - - local piddir=$(dirname ${PVFS2_CLIENT_PIDFILE}) - if [ ! -d "${piddir}" ]; then - ewarn "Creating ${piddir}" - mkdir -p ${piddir} || return 1 - fi - - return 0 -} - -start() { - ebegin "Starting pvfs2-client" - local rc=0 - - $(lsmod | egrep "^pvfs2 " &> /dev/null) || modprobe pvfs2 - if [[ $? -ne 0 ]]; then - eend 1 "Failed to load the pvfs2 module" - return 1 - fi - - # -f so start-stop-daemon can snag the pid. - start-stop-daemon --start -q -b -m -p ${PVFS2_CLIENT_PIDFILE} \ - --exec ${PVFS2_CLIENT} -- -f -p ${PVFS2_CLIENT_CORE} ${PVFS2_CLIENT_ARGS} - rc=$? - - if [[ $rc -ne 0 ]]; then - eend ${rc} "Failed to run pvfs2-client" - return ${rc} - fi - - mount -t pvfs2 tcp://${PVFS2_SERVER_HOST}:3334/pvfs2-fs "${PVFS2_MOUNTPOINT}" - rc=$? - if [[ $rc -ne 0 ]]; then - eend 1 "Failed to mount the pvfs2 filesystem on ${PVFS2_MOUNTPOINT}" - return 1 - fi - - eend ${rc} -} - -stop() { - ebegin "Stopping pvfs2-client" - if [ -n "$(mount | awk '{print $3}' | grep ${PVFS2_MOUNTPOINT})" ]; then - umount -f ${PVFS2_MOUNTPOINT} - fi - - start-stop-daemon --stop -p ${PVFS2_CLIENT_PIDFILE} - - modprobe -r pvfs2 - - eend $? -} - diff --git a/sys-cluster/pvfs2/files/pvfs2-client-init.d-2.7.0 b/sys-cluster/pvfs2/files/pvfs2-client-init.d-2.7.0 deleted file mode 100644 index fb86356ec0a6..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-client-init.d-2.7.0 +++ /dev/null @@ -1,79 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/files/pvfs2-client-init.d-2.7.0,v 1.1 2008/03/06 23:05:44 jsbronder Exp $ - - -depend() { - need net - need localmount - before pbs_mom - after pvfs2-server -} - -checkconfig() { - if [ ! -x "${PVFS2_CLIENT}" -o ! -x "${PVFS2_CLIENT_CORE}" ]; then - eend 1 "pvfs-2 was not correctly installed." - return 1 - fi - - local piddir=$(dirname ${PVFS2_CLIENT_PIDFILE}) - if [ ! -d "${piddir}" ]; then - ewarn "Creating ${piddir}" - mkdir -p ${piddir} || return 1 - fi -} - -start() { - local rc=0 - local server_mp server mp - checkconfig || return 1 - ebegin "Starting pvfs2-client" - - if ! grep -qs pvfs2 /proc/filesystems; then - eerror "Kernel does not support pvfs2 filesystems" - return 1 - fi - - # Don't fork the client so we can get the pid with s-s-d. - if ! start-stop-daemon --start -m -b --quiet \ - --pidfile ${PVFS2_CLIENT_PIDFILE} \ - --exec "${PVFS2_CLIENT}" \ - -- -f -p ${PVFS2_CLIENT_CORE} ${PVFS2_CLIENT_ARGS}; then - rc=1 - elif [ -n "${PVFS2_MOUNTS}" ]; then - for server_mp in ${PVFS2_MOUNTS}; do - mount -t pvfs2 \ - tcp://$(echo ${server_mp} | cut -d',' -f1)/pvfs2-fs \ - $(echo ${server_mp} | cut -d',' -f2) - rc=$? - [[ ${rc} -ne 0 ]] && break - done - [[ ${rc} -ne 0 ]] && start-stop-daemon --stop -p ${PVFS2_CLIENT_PIDFILE} - fi - - eend ${rc} -} - -stop() { - local rc=0 - local server_mp - checkconfig || return 1 - ebegin "Stopping pvfs2-client" - - if [ -n "${PVFS2_MOUNTS}" ]; then - for server_mp in ${PVFS2_MOUNTS}; do - umount -f $(echo ${server_mp} | cut -d',' -f2) - rc=$? - [[ ${rc} -ne 0 ]] && break - done - fi - - if [[ ${rc} -eq 0 ]]; then - start-stop-daemon --stop -p ${PVFS2_CLIENT_PIDFILE} - rc=$? - fi - - eend ${rc} -} - diff --git a/sys-cluster/pvfs2/files/pvfs2-client.conf b/sys-cluster/pvfs2/files/pvfs2-client.conf deleted file mode 100644 index 72b8cc29a78b..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-client.conf +++ /dev/null @@ -1,15 +0,0 @@ -# Extra arguments to supply to the pvfs2-client daemon -#PVFS2_CLIENT_ARGS="-L /var/log/pvfs2-client.log" - -# Location of the pvfs2-client binaries. Defaults are shown -PVFS2_CLIENT="/usr/sbin/pvfs2-client" -PVFS2_CLIENT_CORE="/usr/sbin/pvfs2-client-core" - -# Location to mount the pvfs2 filesystem -PVFS2_MOUNTPOINT="/pfs" - -# A pvfs2 metadata server. -PVFS2_SERVER_HOST="localhost" - -# Location to store pid -PVFS2_CLIENT_PIDFILE="/var/run/pvfs2-client.pid" diff --git a/sys-cluster/pvfs2/files/pvfs2-server-conf.d-2.7.0 b/sys-cluster/pvfs2/files/pvfs2-server-conf.d-2.7.0 deleted file mode 100644 index 7c8ed4ec05bf..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-server-conf.d-2.7.0 +++ /dev/null @@ -1,17 +0,0 @@ -# pvfs2 only uses one config file as of 2.7.0. This is the path -# to that config file. -PVFS2_FS_CONF="/etc/pvfs/pvfs2-fs.conf" - -# your server binary, default is shown. -PVFS2_SERVER=/usr/sbin/pvfs2-server - -# the server will record its PID in this file using the -p argument -PVFS2_PIDFILE=/var/run/pvfs2.pid - -#Additional options -PVFS2_OPTIONS="" - -# Automatically call pvfs2-server with --mkfs if the first call to start -# the daemon fails. Off by default as this does mess with the local -# filesystem to prepare the directory for pvfs2-server -PVFS2_AUTO_MKFS=0 diff --git a/sys-cluster/pvfs2/files/pvfs2-server-init.d-2.7.0 b/sys-cluster/pvfs2/files/pvfs2-server-init.d-2.7.0 deleted file mode 100644 index 8ac5fe93d283..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-server-init.d-2.7.0 +++ /dev/null @@ -1,65 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/files/pvfs2-server-init.d-2.7.0,v 1.1 2008/03/06 23:05:44 jsbronder Exp $ - -depend() { - after localmount netmount nfsmount dns - use net -} - - -checkconfig() { - local piddir=$(dirname "${PVFS2_PIDFILE}") - if [ ! -d "${piddir}" ]; then - mkdir -p "${piddir}" || return 1 - fi - - # verify presence of server binary - if ! [ -x "${PVFS2_SERVER}" ]; then - eerror "Could not find executable ${PVFS2_SERVER}" - return 1 - fi - - if ! [ -r "${PVFS2_FS_CONF}" ]; then - eerror "Could not read ${PVFS2_FS_CONF}" - return 1 - fi -} - -start() { - local rc - checkconfig || return 1 - - ebegin "Starting PVFS2 server" - - # Optionally force pvfs2-server to generate the pvfs2 filesystem. - if [[ ${PVFS2_AUTO_MKFS} -ne 0 && \ - ! -f $(grep StorageSpace ${PVFS2_FS_CONF} | cut -d' ' -f 2)/collections.db ]]; then - ewarn "Initializing the file system storage with --mkfs" - "${PVFS2_SERVER}" --mkfs "${PVFS2_FS_CONF}" - rc=$? - fi - - if [[ ${rc} -eq 0 ]]; then - start-stop-daemon -b --start --quiet \ - --pidfile "${PVFS2_PIDFILE}" \ - --exec "${PVFS2_SERVER}" \ - -- -p "${PVFS2_PIDFILE}" ${PVFS2_OPTIONS} "${PVFS2_FS_CONF}" - rc=$? - fi - eend ${rc} -} - -stop() { - checkconfig || return 1 - ebegin "Stopping PVFS2 server" - start-stop-daemon --stop --quiet --pidfile "${PVFS2_PIDFILE}" - eend -} - -restart() { - svc_stop - sleep 2 - svc_start -} diff --git a/sys-cluster/pvfs2/files/pvfs2-server.conf b/sys-cluster/pvfs2/files/pvfs2-server.conf deleted file mode 100644 index 1779a870bf97..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-server.conf +++ /dev/null @@ -1,29 +0,0 @@ -# The three following variables set where pvfs2 will find the fs and server -# configuration files. If you don't set anything, these default to -# ${PVFS2_CONF_PATH}/pvfs2-<server/fs>.conf -PVFS2_FS_CONF="" - -# You can set either of the following. If PVFS2_SERVER_CONF is set, we -# look for that exact config file. If PVFS2_SERVER_CONF_BASE is set, -# we look for ${PVFS2_SERVER_CONF_BASE}-$(hostname -s). The latter -# is useful when distributing an image across multiple machines. When -# both are defined, preference is given to the the latter. -PVFS2_SERVER_CONF="" -PVFS2_SERVER_CONF_BASE="" - - -# your server binary, default is shown. -PVFS2SERVER=/usr/sbin/pvfs2-server - -# location of your config files -PVFS2_CONF_PATH=/etc - -# the server will record its PID in this file using the -p argument -PVFS2_PIDFILE=/var/run/pvfs2.pid - -#Additional options -PVFS2_OPTIONS="" - -# Automatically call pvfs2-server with --mkfs when we detect that the -# server is not continuing to run? -PVFS2_AUTO_MKFS=0 diff --git a/sys-cluster/pvfs2/files/pvfs2-server.rc b/sys-cluster/pvfs2/files/pvfs2-server.rc deleted file mode 100644 index 4706159e166a..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-server.rc +++ /dev/null @@ -1,107 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvfs2/files/pvfs2-server.rc,v 1.1 2007/10/05 14:03:13 mabi Exp $ - -checkconfig() { - local piddir=$(dirname "${PVFS2_PIDFILE}") - if [ ! -d "${piddir}" ]; then - mkdir -p "${piddir}" || return 1 - fi - - # verify presence of server binary - if ! [ -x "${PVFS2SERVER}" ]; then - eerror "Error: could not find executable ${PVFS2SERVER}" - return 1 - fi - - # look for fs conf - if [ -n "${PVFS2_FS_CONF}" ]; then - PVFS2_FS_CONF="${PVFS2_CONF_PATH}/${PVFS2_FS_CONF}" - else - PVFS2_FS_CONF="${PVFS2_CONF_PATH}"/pvfs2-fs.conf - fi - - if ! [ -r "${PVFS2_FS_CONF}" ]; then - eerror "Error: could not read ${PVFS2_FS_CONF}" - return 1 - fi - - # look for server conf - if [ -n "${PVFS2_SERVER_CONF_BASE}" ]; then - local myhost=`hostname -s` - if [ "${myhost}" == "localhost" ]; then - ewarn "Warning: detected hostname as localhost, may confuse PVFS2 startup" - fi - PVFS2_SERVER_CONF="${PVFS2_CONF_PATH}/${PVFS2_SERVER_CONF_BASE}-${myhost}" - elif [ -n "${PVFS2_SERVER_CONF}" ]; then - PVFS2_SERVER_CONF="${PVFS2_CONF_PATH}/${PVFS2_SERVER_CONF}" - else - PVFS2_SERVER_CONF="${PVFS2_CONF_PATH}/pvfs2-server.conf" - fi - - if ! [ -r "${PVFS2_SERVER_CONF}" ]; then - eerror "Error: could not read ${PVFS2_SERVER_CONF}" - return 1 - fi -} - -depend() { - after localmount netmount nfsmount dns - use net -} - -start() { - ebegin "Starting PVFS2 server" - local rc - checkconfig || return 1 - - start-stop-daemon -b --start --quiet \ - --pidfile "${PVFS2_PIDFILE}" \ - --exec "${PVFS2SERVER}" -- -p "${PVFS2_PIDFILE}" ${PVFS2_OPTIONS} \ - "${PVFS2_FS_CONF}" "${PVFS2_SERVER_CONF}" - rc=$? - - # Optionally force pvfs2-server to generate the pvfs2 filesystem. - if [[ $PVFS2_AUTO_MKFS -ne 0 ]]; then - local test_pid - sleep 1 - test_pid=$(pidof pvfs2-server) - if [ -z "$test_pid" ] || [ ! -f "${PVFS2_PIDFILE}" ] || [[ $test_pid -ne `cat ${PVFS2_PIDFILE}` ]]; then - rm -f "${PVFS2_PIDFILE}" &>/dev/null - ewarn "Initializing the file system storage with --mkfs" - "${PVFS2SERVER}" --mkfs "${PVFS2_FS_CONF}" "${PVFS2_SERVER_CONF}" - rc=$? - if [[ $rc -ne 0 ]]; then - eerror "Failed to initialize the filesystem storage with --mkfs" - eend ${rc} - return 1 - fi - start-stop-daemon -b --start --quiet \ - --pidfile ${PVFS2_PIDFILE} \ - --exec ${PVFS2SERVER} -- -p "${PVFS2_PIDFILE}" ${PVFS2_OPTIONS} \ - "${PVFS2_FS_CONF}" "${PVFS2_SERVER_CONF}" - rc=$? - fi - fi - - if [[ $rc -ne 0 ]]; then - eend $rc "Error starting PVFS2 server" - return 1 - else - eend 0 - return 0 - fi -} - -stop() { - ebegin "Stopping PVFS2 server" - start-stop-daemon --stop --quiet --pidfile "${PVFS2_PIDFILE}" - eend $? "Error stopping PVFS2 server" -} - -restart() { - svc_stop - sleep 2 - svc_start -} diff --git a/sys-cluster/pvfs2/files/pvfs2-split-kernapps.patch b/sys-cluster/pvfs2/files/pvfs2-split-kernapps.patch deleted file mode 100644 index eb1eb97ec24b..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-split-kernapps.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -urN pvfs-2.7.1/Makefile.in pvfs-2.7.1_patched/Makefile.in ---- pvfs-2.7.1/Makefile.in 2008-04-14 11:37:32.000000000 -0400 -+++ pvfs-2.7.1_patched/Makefile.in 2008-04-16 22:00:55.354355245 -0400 -@@ -984,10 +984,13 @@ - install -d $(KMOD_DIR) - install -m 755 src/kernel/linux-2.6/pvfs2.ko $(KMOD_DIR) - --.PHONY: kmod_install --kmod_install: kmod kernapps just_kmod_install -+.PHONY: kernapps_install -+kernapps_install: kernapps - install -d $(sbindir) - install -m 755 $(KERNAPPS) $(KERNAPPSTHR) $(sbindir) -+ -+.PHONY: kmod_install -+kmod_install: kmod kernapps_install just_kmod_install - endif - - ifneq (,$(LINUX24_KERNEL_SRC)) diff --git a/sys-cluster/pvfs2/files/pvfs2-super.c.patch b/sys-cluster/pvfs2/files/pvfs2-super.c.patch deleted file mode 100644 index 342813b769be..000000000000 --- a/sys-cluster/pvfs2/files/pvfs2-super.c.patch +++ /dev/null @@ -1,50 +0,0 @@ -Index: src/kernel/linux-2.6/super.c -=================================================================== -RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/super.c,v -retrieving revision 1.102 -diff -a -u -r1.102 super.c ---- src/kernel/linux-2.6/super.c 10 Jun 2008 14:35:23 -0000 1.102 -+++ src/kernel/linux-2.6/super.c 23 Jul 2008 18:14:20 -0000 -@@ -7,6 +7,7 @@ - #include "pvfs2-kernel.h" - #include "pvfs2-bufmap.h" - #include "pvfs2-internal.h" -+#include "linux/version.h" - - /* list for storing pvfs2 specific superblocks in use */ - LIST_HEAD(pvfs2_superblocks); -@@ -320,6 +321,7 @@ - - #endif /* PVFS2_LINUX_KERNEL_2_4 */ - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) - /* called when the VFS removes this inode from the inode cache */ - static void pvfs2_put_inode( - struct inode *inode) -@@ -349,6 +351,7 @@ - #endif - } - } -+#endif - - #ifdef HAVE_STATFS_LITE_SUPER_OPERATIONS - static int pvfs2_statfs_lite( -@@ -852,14 +855,18 @@ - clear_inode: pvfs2_clear_inode, - put_inode: pvfs2_put_inode, - #else -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) - .drop_inode = generic_delete_inode, -+#endif - .alloc_inode = pvfs2_alloc_inode, - .destroy_inode = pvfs2_destroy_inode, - #ifdef HAVE_READ_INODE - .read_inode = pvfs2_read_inode, - #endif - .dirty_inode = pvfs2_dirty_inode, -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) - .put_inode = pvfs2_put_inode, -+#endif - .statfs = pvfs2_statfs, - .remount_fs = pvfs2_remount, - #ifdef HAVE_FIND_INODE_HANDLE_SUPER_OPERATIONS
\ No newline at end of file |