summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Check return value of afr_sh_select_source.2.0.0rc8Vikas Gorur2009-04-203-1/+18
| | | | | | If select_source returns -1, abort self-heal. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* change errno EINVAL to ENOENT in case of all fuse_* calls for fuse_reply_err ()Harshavardhana2009-04-201-26/+26
| | | | | | Seen "rm -rf" returns EINVAL in case fuse_loc_fill fails when there is a race condition which can happen when multiple "rm -rf" are done on a same directory listing from multiple terminals. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Minor fix in afr_sh_build_pending_matrix.Vikas Gorur2009-04-201-3/+0
| | | | | | Remove incorrect check for xattr[i] being NULL. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* inode.c - NULL check for the extra __inode_search performed, when presented ↵Anand V. Avati2009-04-201-0/+6
| | | | | | inode is not hashed. This bug fixes #967
* afr-transaction: handle double flushesAnand V. Avati2009-04-201-1/+3
| | | | __if_fd_pre_op_done - reset fd_ctx->pre_op_done to 0 so that double flushes do not result in two xattrop() calls
* client_protocol_reconnect - do not send notify of CHILD_DOWN event if errno ↵Anand V. Avati2009-04-201-1/+1
| | | | | | from transport_connect() was EINPROGRES This bug was racing between a CHILD_UP from poll thread resulting from the event_register() of the new socket called in fuse thread. CHILD_UP would sometimes overtake the CHILD_DOWN for EINPROGRESS. So replicate would receive CHILD_DOWN as the latest event. This resulted in self-heal not happening etc.
* keep ctx->page_size fixed at 128KB but only add the margin for iobufs which ↵Anand V. Avati2009-04-181-2/+2
| | | | are created
* enhancement to migrate-unify-to-distribute.shAnand V. Avati2009-04-181-2/+15
|
* added migration script from unify based setup to distribute based setupAmar Tumballi2009-04-182-1/+24
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* pruning buffer margin - do not destroy if no other non-filled arenas are in ↵Anand V. Avati2009-04-182-3/+26
| | | | the pool
* disconnect transport peer if system is out of memory while allocating iobufAnand V. Avati2009-04-182-4/+26
|
* iobuf - account with iobref_size() instead of iov_length (vector)Anand V. Avati2009-04-172-5/+9
|
* added 2 APIs iobuf_size and iobref_size to return the system memory usage by ↵Anand V. Avati2009-04-172-0/+46
| | | | an iobuf, and by all iobufs in an iobref respectively
* Destroy old ping timer before setting new one.Vikas Gorur2009-04-171-1/+5
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Fix two memory leaks in afr self heal code.Vikas Gorur2009-04-171-0/+4
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* add 4KB margin in iobuf to accommodate fuse headerAnand V. Avati2009-04-171-1/+1
|
* Fixed parameter to finodelk in STACK_WIND in dhtVikas Gorur2009-04-171-1/+1
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Fix typecast to fix build warningShehjar Tikoo2009-04-171-2/+2
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* protocol/client - set remote inode number in inode context for root inode ↵Basavanagowda Kanur2009-04-171-23/+21
| | | | | | also, during lookup_cbk(). Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Renamed abs_top_srcdir to top_srcdir for older versions of autotoolHarshavardhana2009-04-171-1/+1
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Remove unused variablesShehjar Tikoo2009-04-171-10/+0
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add realpath APIShehjar Tikoo2009-04-171-0/+184
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add lstat APIShehjar Tikoo2009-04-171-5/+81
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add readlink APIShehjar Tikoo2009-04-171-0/+79
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add symlink APIShehjar Tikoo2009-04-171-0/+116
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add unlink APIShehjar Tikoo2009-04-171-0/+74
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add mkfifo APIShehjar Tikoo2009-04-171-0/+49
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add mknod APIShehjar Tikoo2009-04-172-0/+96
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add utime APIShehjar Tikoo2009-04-171-0/+47
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add utimes APIShehjar Tikoo2009-04-171-0/+85
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add rename APIShehjar Tikoo2009-04-171-0/+109
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add statvfs APIShehjar Tikoo2009-04-171-0/+39
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add statfs APIShehjar Tikoo2009-04-171-0/+99
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add link APIShehjar Tikoo2009-04-171-0/+103
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add ftruncate APIShehjar Tikoo2009-04-171-0/+77
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* linglusterfsclient: Add fsync APIShehjar Tikoo2009-04-171-0/+50
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add fchown APIShehjar Tikoo2009-04-171-0/+57
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add fchmod APIShehjar Tikoo2009-04-171-0/+56
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add closedir APIShehjar Tikoo2009-04-171-0/+22
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add opendir APIShehjar Tikoo2009-04-171-0/+58
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add chown APIShehjar Tikoo2009-04-171-0/+69
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Add chmod APIShehjar Tikoo2009-04-171-0/+69
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Abstract away inode attr cache updatesShehjar Tikoo2009-04-171-138/+100
| | | | | | | | | | | This commit creates a separate function that allows users of the inode attribute cache to update the cache when required. Major users are lookup, stat and fstat functions. The function libgf_update_iattr_cache(..) allows updating the lookup and stat caches separately using flags. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Replace dict based inode ctx with array based oneShehjar Tikoo2009-04-171-82/+103
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Fix fd_ctx leak on release cbksShehjar Tikoo2009-04-171-5/+27
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Replace dict-based fd ctx with array-based oneShehjar Tikoo2009-04-171-114/+105
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Generalize [RW] checks on dirsShehjar Tikoo2009-04-171-16/+11
| | | | | | | | | This patch moves the read-write permission check on directory inode into libgf_client_opendir, so that when I am next adding support for the opendir syscall, I dont have to perform similar checks again, outside this function. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Check for directory on O_CREATShehjar Tikoo2009-04-171-2/+13
| | | | | | | | | If we have received an O_CREAT for a name where that basename is a directory, and if we have successfully looked up the inode for this directory, then we can check for S_ISDIR in libglusterfsclient and prevent sending a message to the server through libgf_client_creat. See also the comment inline. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Create and use LIBGF_REPLY_NOTIFY macroShehjar Tikoo2009-04-172-110/+27
| | | | | | | All reply notifications can now be abstracted away through this macro and all cbk functions should now call this. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Fix segfault on non-NULL loc->nameShehjar Tikoo2009-04-171-3/+3
| | | | | | | | | | | | The gf_log message actually assumes that loc->name will have a valid non-NULL name in it, whereas if the loc_t being passed to it was actually created on a function stack, i.e. a local function variable and was then passed down the code path to do_path_resolve without ever initing it or zeroing the structure, its possible that the name member has a non-NULL but corrupted address. This leads to a segfault. Whereas, we know loc->path will always have the full path. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>