summaryrefslogtreecommitdiff
path: root/net/glusterfs/files/patch-libglusterfs_src_common-utils.c
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2020-07-29 20:33:59 +0000
committerFlorian Smeets <flo@FreeBSD.org>2020-07-29 20:33:59 +0000
commit32e7d4c3b3ae3973abb608bc732232904a0018c0 (patch)
treed4cca23454b8b5f7fcc5319fb816cd501b7f90d1 /net/glusterfs/files/patch-libglusterfs_src_common-utils.c
parentx11/wofi: update to 1.2.1 (diff)
Update to 8.0, this is a collaborative effort between Daniel Morante and
myself. - update to 8.0 - make it possible to mount gluster volumes on boot [1] - reset maintainer [1], I would have set it to ports@ but Daniel volunteered to maintain the port - add pkg-message to point out that procfs is required for some operations like "gluster volume status" which is also required for self healing. [2] This version works although I still see the same memory leak as with the 3.X series. PR: 236112 [1], 223671 [2] Submitted by: Daniel Morante <daniel@morante.net>, flo Obtained from: https://github.com/tuaris/freebsd-glusterfs7 Differential Revision: D25037
Diffstat (limited to 'net/glusterfs/files/patch-libglusterfs_src_common-utils.c')
-rw-r--r--net/glusterfs/files/patch-libglusterfs_src_common-utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/glusterfs/files/patch-libglusterfs_src_common-utils.c b/net/glusterfs/files/patch-libglusterfs_src_common-utils.c
new file mode 100644
index 000000000000..0e3d73e575aa
--- /dev/null
+++ b/net/glusterfs/files/patch-libglusterfs_src_common-utils.c
@@ -0,0 +1,11 @@
+--- libglusterfs/src/common-utils.c.orig 2020-05-18 20:57:54 UTC
++++ libglusterfs/src/common-utils.c
+@@ -3067,7 +3067,7 @@ get_mem_size()
+ memsize = page_size * num_pages;
+ #endif
+
+-#if defined GF_DARWIN_HOST_OS
++#if defined GF_DARWIN_HOST_OS || defined __FreeBSD__
+
+ size_t len = sizeof(memsize);
+ int name[] = {CTL_HW, HW_PHYSMEM};