pkgsrc/filesystems/glusterfs/patches/patch-ab
manu f07c2079ba Update glusterfs to 3.2.3
This maintenance release with no new features. Majot bug fixes are:
 Bug 2464 Fixed all the issues caused by GFID mismatch during
	  distribute rename.
 Bug 2988 Fixed the issue of high CPU usage when Directory Quota
	  is enabled.
 Bug 3122 Enhanced the volume set interface to support io-threads
	  on the client.
 Bug 3210 Fixed the issue of modified mtime/atime of the files after
	  rebalance operation.
 Bug 3191 Fixed the issue with symlinks during rebalance operation.
2011-09-18 01:36:06 +00:00

51 lines
1.8 KiB
Text

$NetBSD: patch-ab,v 1.7 2011/09/18 01:36:06 manu Exp $
NetBSD does not have AI_ADDRCONFIG. This patch has a side effect: glusterfsd
listens on IPv6 adresses only by default. Option transport.socket.bind-address
in volume server-tcp must be used to listen on an IPv4 address.
--- rpc/rpc-lib/src/rpc-transport.h.orig 2011-08-23 14:31:38.000000000 +0200
+++ rpc/rpc-lib/src/rpc-transport.h 2011-09-17 15:45:29.000000000 +0200
@@ -39,8 +39,12 @@
#ifndef MAX_IOVEC
#define MAX_IOVEC 16
#endif
+#ifndef AI_ADDRCONFIG
+#define AI_ADDRCONFIG 0
+#endif /* AI_ADDRCONFIG */
+
/* Given the 4-byte fragment header, returns non-zero if this fragment
* is the last fragment for the RPC record being assemebled.
* RPC Record marking standard defines a 32 bit value as the fragment
* header with the MSB signifying whether the fragment is the last
--- xlators/nfs/lib/src/rpc-socket.c.orig 2011-08-23 14:31:40.000000000 +0200
+++ xlators/nfs/lib/src/rpc-socket.c 2011-09-17 15:45:29.000000000 +0200
@@ -36,8 +36,12 @@
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
+#ifndef AI_ADDRCONFIG
+#define AI_ADDRCONFIG 0
+#endif /* AI_ADDRCONFIG */
+
static int
nfs_rpcsvc_socket_server_get_local_socket (int addrfam, char *listenhost,
uint16_t listenport,
struct sockaddr *addr,
--- libglusterfs/src/common-utils.c.orig 2011-08-23 14:31:37.000000000 +0200
+++ libglusterfs/src/common-utils.c 2011-09-17 15:45:29.000000000 +0200
@@ -48,8 +48,12 @@
#include "stack.h"
#include "globals.h"
#include "md5.h"
+#ifndef AI_ADDRCONFIG
+#define AI_ADDRCONFIG 0
+#endif /* AI_ADDRCONFIG */
+
typedef int32_t (*rw_op_t)(int32_t fd, char *buf, int32_t size);
typedef int32_t (*rwv_op_t)(int32_t fd, const struct iovec *buf, int32_t size);
struct dnscache6 {