head 1.10; access; symbols pkgsrc-2013Q2:1.10.0.4 pkgsrc-2013Q2-base:1.10 pkgsrc-2012Q4:1.10.0.2 pkgsrc-2012Q4-base:1.10 pkgsrc-2012Q3:1.9.0.10 pkgsrc-2012Q3-base:1.9 pkgsrc-2012Q2:1.9.0.8 pkgsrc-2012Q2-base:1.9 pkgsrc-2012Q1:1.9.0.6 pkgsrc-2012Q1-base:1.9 pkgsrc-2011Q4:1.9.0.4 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q3:1.9.0.2 pkgsrc-2011Q3-base:1.9 pkgsrc-2011Q2:1.4.0.2 pkgsrc-2011Q2-base:1.4 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.10 date 2012.10.19.04.15.21; author manu; state dead; branches; next 1.9; 1.9 date 2011.10.02.01.11.47; author manu; state Exp; branches; next 1.8; 1.8 date 2011.09.18.01.36.06; author manu; state Exp; branches; next 1.7; 1.7 date 2011.07.23.01.14.44; author manu; state Exp; branches; next 1.6; 1.6 date 2011.07.19.07.54.31; author manu; state Exp; branches; next 1.5; 1.5 date 2011.07.08.08.02.57; author manu; state Exp; branches; next 1.4; 1.4 date 2011.06.29.13.53.02; author manu; state Exp; branches; next 1.3; 1.3 date 2011.05.19.14.54.23; author manu; state dead; 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.10 log @Bump to glusterfs-3.3.1, which brings - unified file and object storage - storage for Hadoop (not tested here) - proactive self-healing - much better performance @ text @$NetBSD: patch-bb,v 1.9 2011/10/02 01:11:47 manu Exp $ O_DIRECTORY is defined as 0, therefore ((flags & O_DIRECTORY) == O_DIRECTORY) is always true even if the flag is not set. --- xlators/performance/quick-read/src/quick-read.c.orig 2011-08-23 14:31:41.000000000 +0200 +++ xlators/performance/quick-read/src/quick-read.c 2011-10-02 02:55:29.000000000 +0200 @@@@ -82,8 +82,9 @@@@ qr_loc_fill (loc_t *loc, inode_t *inode, char *path) { int32_t ret = -1; char *parent = NULL; + char *path_copy = NULL; GF_VALIDATE_OR_GOTO_WITH_ERROR ("quick-read", loc, out, errno, EINVAL); GF_VALIDATE_OR_GOTO_WITH_ERROR ("quick-read", inode, out, errno, EINVAL); @@@@ -94,15 +95,15 @@@@ loc->inode = inode_ref (inode); loc->path = gf_strdup (path); loc->ino = inode->ino; - parent = gf_strdup (path); - if (parent == NULL) { + path_copy = gf_strdup (path); + if (path_copy == NULL) { ret = -1; goto out; } - parent = dirname (parent); + parent = dirname (path_copy); loc->parent = inode_from_path (inode->table, parent); if (loc->parent == NULL) { ret = -1; @@@@ -118,10 +119,10 @@@@ if (ret == -1) { qr_loc_wipe (loc); } - if (parent) { - GF_FREE (parent); + if (path_copy) { + GF_FREE (path_copy); } return ret; } @@@@ -729,9 +730,9 @@@@ } } UNLOCK (&table->lock); - if (content_cached && ((flags & O_DIRECTORY) == O_DIRECTORY)) { + if (content_cached && (flags & O_DIRECTORY)) { op_ret = -1; op_errno = ENOTDIR; gf_log (this->name, GF_LOG_WARNING, "open with O_DIRECTORY flag received on non-directory"); @ 1.9 log @A patch was lost in 3.2.3 update, this made impossible to open a file (client complained about O_DIRECTORY being set for a non directory) @ text @d1 1 a1 1 $NetBSD: patch-bb,v 1.8 2011/09/18 01:36:06 manu Exp $ @ 1.8 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-bb,v 1.7 2011/07/23 01:14:44 manu Exp $ d6 2 a7 2 --- xlators/performance/quick-read/src/quick-read.c.orig 2011-09-17 15:45:29.000000000 +0200 +++ xlators/performance/quick-read/src/quick-read.c 2011-09-17 15:45:29.000000000 +0200 d50 11 @ 1.7 log @Update to glusterfs 3.2.2 (maintenance release for bug fixes) @ text @d1 1 a1 1 $NetBSD$ d6 40 a45 4 --- xlators/performance/quick-read/src/quick-read.c.orig 2011-07-14 14:21:10.000000000 +0200 +++ xlators/performance/quick-read/src/quick-read.c 2011-07-22 09:16:44.000000000 +0200 @@@@ -727,9 +727,9 @@@@ } a46 1 UNLOCK (&table->lock); d48 2 a49 6 - if (content_cached && ((flags & O_DIRECTORY) == O_DIRECTORY)) { + if (content_cached && (flags & O_DIRECTORY)) { op_ret = -1; op_errno = ENOTDIR; gf_log (this->name, GF_LOG_WARNING, "open with O_DIRECTORY flag received on non-directory"); @ 1.6 log @Enable georeplication @ text @d2 7 a8 3 --- xlators/performance/quick-read/src/quick-read.c.orig 2011-07-03 03:59:32.000000000 +0200 +++ xlators/performance/quick-read/src/quick-read.c 2011-07-03 03:59:42.000000000 +0200 @@@@ -726,9 +726,9 @@@@ @ 1.5 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.4 log @Restore a missing patch so that accessing some file cannot produce spurious ENOTDIR @ text @d1 3 a3 2 --- xlators/performance/quick-read/src/quick-read.c.orig 2011-04-22 19:37:28.000000000 +0200 +++ xlators/performance/quick-read/src/quick-read.c 2011-06-29 15:09:58.000000000 +0200 @ 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 @d1 3 a3 8 $NetBSD: patch-bb,v 1.2 2011/04/18 16:19:48 manu Exp $ On NetBSD and FreeBSD, O_DIRECTORY does not exists and is defined as 0 by glusterfs. ((flags & O_DIRECTORY) == O_DIRECTORY) always evaluate to true, and this is a bug. --- ./xlators/performance/quick-read/src/quick-read.c.orig 2011-04-13 10:02:38.000000000 +0200 +++ ./xlators/performance/quick-read/src/quick-read.c 2011-04-13 10:03:23.000000000 +0200 @@@@ -637,9 +637,9 @@@@ d12 2 a13 2 goto unwind; } @ 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 @d1 1 a1 1 $NetBSD: patch-bb,v 1.1.1.1 2010/08/26 14:26:19 manu Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d6 3 a8 4 --- ./xlators/performance/quick-read/src/quick-read.c.orig 2010-08-24 17:31:30.000000000 +0200 +++ ./xlators/performance/quick-read/src/quick-read.c 2010-08-24 17:32:13.000000000 +0200 @@@@ -642,9 +642,9 @@@@ @ 1.1.1.1 log @This is an experimental port of glusterfs on NetBSD. Don't do this at home! @ text @@