head 1.8; access; symbols pkgsrc-2013Q2:1.8.0.6 pkgsrc-2013Q2-base:1.8 pkgsrc-2012Q4:1.8.0.4 pkgsrc-2012Q4-base:1.8 pkgsrc-2011Q4:1.8.0.2 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.7.0.2 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.1.1.1.0.6 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.4 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.2 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.8 date 2011.11.28.08.42.39; author manu; state dead; branches; next 1.7; 1.7 date 2011.09.18.01.36.06; author manu; state Exp; branches; next 1.6; 1.6 date 2011.07.23.01.14.44; author manu; state Exp; branches; next 1.5; 1.5 date 2011.07.19.07.54.31; author manu; state Exp; branches; next 1.4; 1.4 date 2011.07.08.08.02.57; author manu; state Exp; branches; next 1.3; 1.3 date 2011.05.19.14.54.23; author manu; state Exp; branches; next 1.2; 1.2 date 2011.04.18.16.19.48; author manu; state Exp; branches; next 1.1; 1.1 date 2010.08.26.14.26.19; author manu; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2010.08.26.14.26.19; author manu; state Exp; branches; next ; desc @@ 1.8 log @Update to glusterfs 3.2.5. This is a bug-fix release @ text @$NetBSD: patch-ba,v 1.7 2011/09/18 01:36:06 manu Exp $ glibc dirname() modify the string it is given and returns it. glusterfs takes this behavior for granted, and assume that if it gives a malloc'ed string to dirname(), then it can free()) the return value. Here is what SUSv2 says: http://opengroup.org/onlinepubs/007908799/xsh/dirname.html "The dirname() function may modify the string pointed to by path, and may return a pointer to static storage" At least NetBSD returns a static storage. glusterfs will return it to a calling function that has the responsability to free it, causing a SIGSEGV. --- xlators/performance/stat-prefetch/src/stat-prefetch.c.orig 2011-08-23 14:31:41.000000000 +0200 +++ xlators/performance/stat-prefetch/src/stat-prefetch.c 2011-09-17 15:45:29.000000000 +0200 @@@@ -949,18 +949,24 @@@@ path = dirname (cpy); switch (i) { case 0: - *parent = path; + *parent = gf_strdup (path); + if (*parent == NULL) + goto out; break; case 1: - *grand_parent = path; + *grand_parent = gf_strdup (path); + if (*grand_parent == NULL) + goto out; break; } } ret = 0; out: + if (cpy != NULL) + GF_FREE(cpy); return ret; } @ 1.7 log @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. @ text @d1 1 a1 1 $NetBSD: patch-ba,v 1.6 2011/07/23 01:14:44 manu Exp $ @ 1.6 log @Update to glusterfs 3.2.2 (maintenance release for bug fixes) @ text @d1 1 a1 1 $NetBSD$ d17 2 a18 2 --- xlators/performance/stat-prefetch/src/stat-prefetch.c.orig 2011-07-14 14:21:10.000000000 +0200 +++ xlators/performance/stat-prefetch/src/stat-prefetch.c 2011-07-22 09:00:07.000000000 +0200 @ 1.5 log @Enable georeplication @ text @d17 2 a18 2 --- xlators/performance/stat-prefetch/src/stat-prefetch.c.orig 2011-04-22 19:37:28.000000000 +0200 +++ xlators/performance/stat-prefetch/src/stat-prefetch.c 2011-05-19 12:41:28.000000000 +0200 @ 1.4 log @Upgrade to glusterfs-3.2.1 This release is mostly about bug fixes, and we also fix bugs in the NetBSD port. @ text @@ 1.3 log @Update glusterfs to 3.2. According to http://www.gluster.org, news are: * Geo-Replication * Easily Accessible Usage Quotas * Advanced Monitoring Tools @ text @@ 1.2 log @Update glusterfs to 3.1.4. Major new features according to http://www.gluster.org/ - Elastic Volume Management - New Gluster Console Manager - Dynamic Storage for the data center and cloud @ text @d17 3 a19 3 --- ./xlators/performance/stat-prefetch/src/stat-prefetch.c.orig 2011-04-13 09:59:38.000000000 +0200 +++ ./xlators/performance/stat-prefetch/src/stat-prefetch.c 2011-04-13 10:01:01.000000000 +0200 @@@@ -905,18 +905,24 @@@@ d42 1 a42 1 return ret; @ 1.1 log @Initial revision @ text @d5 1 a5 1 gives a malloc'ed string to dirname(), then it can free()) the d10 1 a10 1 "The dirname() function may modify the string pointed to by path, d13 1 a13 1 At least NetBSD returns a static storage. glusterfs will return it to d17 3 a19 3 --- ./xlators/performance/stat-prefetch/src/stat-prefetch.c.orig 2010-08-24 14:06:54.000000000 +0200 +++ ./xlators/performance/stat-prefetch/src/stat-prefetch.c 2010-08-24 14:20:10.000000000 +0200 @@@@ -815,18 +815,25 @@@@ d25 1 a25 1 + *parent = strdup(path); d31 1 a31 1 + *grand_parent = strdup(path); d41 1 a41 2 + free(cpy); + @ 1.1.1.1 log @This is an experimental port of glusterfs on NetBSD. Don't do this at home! @ text @@