summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* disable building of user-guideAnand V. Avati2009-03-053-24/+1
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* code changes in the usage of inode_ctx_get and inode_ctx_put after their ↵Raghavendra G2009-03-054-80/+105
| | | | | | implementation is changed to hold inode->lock. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Change to fix the build problems with bison 1.28 (in RHEL 4.6)Amar Tumballi2009-03-042-2/+0
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* inode_ctx_t locks addedAnand V. Avati2009-03-031-30/+54
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* create fuse thread after setvolume cbk happens, not only in case of successAmar Tumballi2009-03-032-36/+23
| | | | | | | | This patch fixes the 'hang' effect when client protocol fails to authenticate to servers (it may be problem with volume file, or server process would have not started yet). Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* changes in patchset and repo versionAmar Tumballi2009-03-032-2/+2
| | | | | | | noticed that if anyone pulls from git repo, the version says 'tla' and patchset also shows tla's patch. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Added proper handling for the init scripts for (Debian, Ubuntu, SuSE, ↵Harshavardhana2009-03-036-8/+102
| | | | | | | | | | | | | | Redhat), SuSE init script also added. * Init scripts added for Debian, Redhat, SuSE distribution, each are installed by checking each distribution specific. Tested on 1. Debian, Ubuntu. 2. Redhat, CentOS. 3. OpenSUSE. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* now user-guide.info is built only when "makeinfo" foundHarshavardhana2009-03-033-1/+24
| | | | | | user-guide info is built only when "makeinfo" found Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Fixed small error regarding the poll_out variableBharat Shetty Barkur2009-03-031-1/+1
| | | | | | Changed the poll_in variable to poll_out variable, so that the logging is relevant to the case of invalid poll_out value. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Fix solaris server segfault in recent "rc3" release.Harshavardhana2009-02-281-4/+5
| | | | | | | typecasting from uint64_t directly over pl_inode structure segfaults are all the calls from posix-locks. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* CALLOC changed to calloc in rdd.c and several other cleanup and moved rdd.c ↵Harshavardhana2009-02-283-36/+67
| | | | | | into more appropriate "benchmarking" directory. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Removed unncessary EXTRA_DIST entries and updated benchmarking directoryHarshavardhana2009-02-283-9/+26
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Added /etc/init.d/glusterfsd for rpmbuildsHarshavardhana2009-02-283-76/+24
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* check for fd ctx set in changelog_needed_post_op for flush() in afrVikas Gorur2009-02-272-95/+49
| | | | | | | Earlier the check was in afr_flush(), which caused race conditions with writev() Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* send a lookup on root as soon as we get CHILD_UP to fuse.krishna2009-02-271-12/+83
| | | | | | | | send a lookup on root as soon as we get CHILD_UP to fuse. This fixes the case where some of the fuse versions do not send a lookup on the root directory when one of the "sub-dir" or "sub-file" is accessed just after mount. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* volumefile modification awareness to make sure there are no inconsistencies.Amar Tumballi2009-02-2711-96/+346
| | | | | | Complete (including feature to properly umount) in my sense. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Skip self-heal when subvolumes are downAnand V. Avati2009-02-271-17/+0
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* fixing warnings in previous patch (typecasting pointer to long)Anand V. Avati2009-02-271-1/+1
|
* Merge branch 'master' of ssh://avati@git.sv.gnu.org/srv/git/glusterAnand V. Avati2009-02-270-0/+0
|\ | | | | | | | | Conflicts: xlators/features/locks/src/common.c
| * reverting nested locks in posix-locks for inodelkVikas Gorur2009-02-276-206/+292
| | | | | | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* | reverting nested locks in posix-locks for inodelkVikas Gorur2009-02-277-265/+350
|/ | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* moved dht_hashfn_tea() to libglusterfs/hashfn.c as gf_dm_hashfn() (dm - ↵Basavanagowda Kanur2009-02-275-148/+110
| | | | | | | | davies-meyer). moved dht_hashfn_tea() to libglusterfs/src/hashfn.c as gf_dm_hashfn(). Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* updated copyright header to extend copyright upto 2009Basavanagowda Kanur2009-02-26192-195/+195
| | | | | | updated copyright header to include 2009. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* removed unnecessary README.git fileBasavanagowda Kanur2009-02-261-1/+0
| | | | | | removed README.git file Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* fd->lock added to protect transactions for accessing and modifying fd->_ctx.Basavanagowda Kanur2009-02-262-33/+64
| | | | | | fd->_ctx access and modifications are now protected by fd->lock. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Layout is sorted on volume names before forming the layout ranges. But when ↵krishna2009-02-263-3/+41
| | | | | | anomalies are to be detected layout is sorted based on "start" of the range (done in the selfheal during lookup). Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* protect fd_ctx get/set in afr_transaction and afr.c with locksVikas Gorur2009-02-262-16/+31
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Unset fd_ctx in afr_flush if it is setVikas Gorur2009-02-261-0/+2
| | | | | | | | | If fd_ctx is set, it means pending array needs to be decremented. However, flush might be called many times and it used to lead to multiple decrements. Fix is to unset fd_ctx on the first flush received Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* __inode_unlink() should not be sent a NULL inode.Basavanagowda Kanur2009-02-261-0/+2
| | | | | | | | unlink_inode might be NULL in inode_unlink() under the following circumstances: 1. 'inode' got forget() and was unhashed. 2. 'inode' was replaced by a new inode object and the new object got forget() or was pruned out of the inode table. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* DHT clean up. Lot of selfheal code is not applicable to newly created ↵Krishna Srinivas2009-02-254-12/+33
| | | | | | | | | directory. Newly created directory will use only relavant part of DHT selfheal code - only for xattr application. DHT clean up. Lot of selfheal code is not applicable to newly created directory. Newly created directory will use only relavant part of DHT selfheal code - only for xattr application. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* change MALLOC to mallocRaghavendra G2009-02-252-3/+3
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* DHT selfheal fix during lookup - create missing directories.Krishna Srinivas2009-02-251-0/+14
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Ping timer does not timeout in case there is any activity (cbks) from the ↵Krishna Srinivas2009-02-252-8/+42
| | | | | | server side. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* per frame time out - i.e individual frames are unwound instead of the ↵Krishna Srinivas2009-02-253-41/+115
| | | | | | transport point itself being disconnected. timeout is configured using "transport-timeout". Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* backtick support enhancementRaghavendra G2009-02-252-106/+101
| | | | | | | - text within backtick can span multiple lines - check exit status of command after execution Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* DHT TEA hashfn bugfixAnand V. Avati2009-02-231-5/+0
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Deleted xattr caching code from posix in anticipation of the xattr-cache ↵Vikas Gorur2009-02-235-701/+152
| | | | | | translator. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* RE-SEND: Add braces around critical sections.Shehjar Tikoo2009-02-231-16/+20
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* added lock_notify and lock_fnotify FOPs to everywhere necessary in ↵Vikas Gorur2009-02-239-2/+287
| | | | | | | | libglusterfs/* fixed indentation and resubmitting Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* posix_releasedir flush fds from xattrcache.Anand V. Avati2009-02-221-0/+4
| | | | | | | | It would have entered cache in setdents. Proposed fix for: http://zresearch.com/pipermail/gluster-users/2009-February/001621.html Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* removed to 'option cache-size <size>' in example volfiles for io-threads.Basavanagowda Kanur2009-02-222-3/+1
| | | | | | | io-threads translator does not take 'cache-size' option now. so removed all references to 'cache-size' option for performance/io-threads. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* default volume file option enhanced in server-protocolgAmar Tumballi2009-02-221-6/+11
| | | | | | Noticed that with current codebase, there is no proper method to have a default volume filename to choose in getspec() without printing a *lot* of warning messages. This patch tries to have a proper 'default' behavior. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* change to make round robin dns work for getspec()Amar Tumballi2009-02-221-1/+1
| | | | | | | | Noticed that if I have just 'socket' and not the address-family, the round robin dns for '-s' option doesn't work. Changing it to 'tcp' works. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* command line and mount/fuse now use float attr/entry timeoutsHarshavardhana2009-02-213-24/+23
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* attritbute and entry timeout values under volume now support float/double valuesHarshavardhana2009-02-213-4/+38
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* new function gf_string2double for float/double valuesHarshavardhana2009-02-212-0/+40
| | | | | | fixed warning Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* new functions dict_{get,set}_double for float/double valueHarshavardhana2009-02-212-0/+99
| | | | | | fixed warning Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* fix to remove ''input' defined but not used' warning in building glusterfsAmar Tumballi2009-02-201-0/+1
| | | | | | needed to complete the build scripts without warnings Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
* Reduce iothreads requests queue lock granularity.Shehjar Tikoo2009-02-192-34/+22
| | | | | | | | | | | iot_queue() and iot_dequeue() functions were using a io-threads translator-wide lock which would be contended for by every worker thread waiting for IO requests. This patch reduces the granularity by turning the lock into a per-worker lock. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
* Remove conf->cache_size checksShehjar Tikoo2009-02-192-16/+0
| | | | | | | | Since we're not dependent on this io-thread internal state(i.e. cache_size and current_size) to rate limit requests, we can remove these two data members and code that checks for these. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>