summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* libglusterfsclient: Use macros for argument checksShehjar Tikoo2009-04-172-37/+32
| | | | | | | | | | Having those if {} blocks to check for argument validity hurts the eye so this patch replaces those checks with macros. One macro already exists in libglusterfs. The second macro is introduced by this commit for libglusterfsclient-specific check for paths. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* libglusterfsclient: Rename XLATOR_NAME defineShehjar Tikoo2009-04-171-25/+25
| | | | Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* protocol/client - NULL check for loc->inode added in statfs(), before trying ↵Basavanagowda Kanur2009-04-171-8/+10
| | | | | | to retrieve remote inode number from loc->inode's context. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* RPM spec file updates for RHEL,CentOS,Fedora,SLES and OpenSUSE for upcoming ↵Harshavardhana2009-04-171-171/+157
| | | | | | | | | | | | 2.0.0 stable release * Updates to ahere to RPM standards hugely driven by Fedora dist-f11. * RPM spec file portable across RHEL, Fedora, CentOS, SLES, OpenSUSE. * RPM spec build options made compact and removed unnecessary. * %changelog old entries removed as they were giving many warnings during rpmlint. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* add NULL check in iobuf_arena_destroyAnand V. Avati2009-04-161-0/+3
|
* logging enhances to commit d77279ef04ca75ab9715864274567d1ce0ce66a6Raghavendra G2009-04-162-11/+22
| | | | | | - logging made more relevent. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* Use original pid when calling the FOP in afr transaction.Vikas Gorur2009-04-162-3/+42
| | | | | | | | Save the original pid while locking and restore it after the FOP is done. This ensures posix-locks can release locks (fcntl) properly. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
* write-behind aggregate-size related changesRaghavendra G2009-04-161-15/+76
| | | | | | | | | | | This patch brings in following changes: 1. make aggregate-size as non-configurable and make it to be equal to maximum iobuf size. 2. best effort to write data in chunks of length as close to aggregate-size as possible but not greater than aggregate-size, since aggregate-size is made equal to Maximum size of iobuf. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>