7738 Commits

Author SHA1 Message Date
Vikas Gorur
b4ff0d5c88 reverting nested locks in posix-locks for inodelk
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-27 02:32:26 +05:30
Basavanagowda Kanur
f097e77ffb moved dht_hashfn_tea() to libglusterfs/hashfn.c as gf_dm_hashfn() (dm - 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>
2009-02-27 01:37:08 +05:30
Basavanagowda Kanur
3d8bc3cbaf updated copyright header to extend copyright upto 2009
updated copyright header to include 2009.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-26 22:18:46 +05:30
Basavanagowda Kanur
6fb7cda0a9 removed unnecessary README.git file
removed README.git file

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-26 21:01:35 +05:30
Basavanagowda Kanur
d3a318973c fd->lock added to protect transactions for accessing and modifying fd->_ctx.
fd->_ctx access and modifications are now protected by fd->lock.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-26 20:51:50 +05:30
krishna
431617ef19 Layout is sorted on volume names before forming the layout ranges. But when 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>
2009-02-26 19:46:23 +05:30
Vikas Gorur
c445012fa9 protect fd_ctx get/set in afr_transaction and afr.c with locks
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-26 18:03:18 +05:30
Vikas Gorur
523d23b94c Unset fd_ctx in afr_flush if it is set
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>
2009-02-26 18:03:12 +05:30
Basavanagowda Kanur
b537778790 __inode_unlink() should not be sent a NULL inode.
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>
2009-02-26 16:56:54 +05:30
Krishna Srinivas
417dfa48df 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.
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>
2009-02-25 17:47:12 +05:30
Raghavendra G
029913bbd6 change MALLOC to malloc
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-25 16:48:57 +05:30
Krishna Srinivas
6609b1d37b DHT selfheal fix during lookup - create missing directories.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-25 16:48:45 +05:30
Krishna Srinivas
1d556afdf8 Ping timer does not timeout in case there is any activity (cbks) from the server side.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-25 16:48:35 +05:30
Krishna Srinivas
8479df9809 per frame time out - i.e individual frames are unwound instead of the transport point itself being disconnected. timeout is configured using "transport-timeout".
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-25 16:48:28 +05:30
Raghavendra G
ab7fe2987f backtick support enhancement
- text within backtick can span multiple lines
  - check exit status of command after execution

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-25 16:43:39 +05:30
Anand V. Avati
d47eb5d681 DHT TEA hashfn bugfix
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-23 21:02:27 +05:30
Vikas Gorur
f264f69ae9 Deleted xattr caching code from posix in anticipation of the xattr-cache translator.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-23 21:01:56 +05:30
Shehjar Tikoo
8b1762971f RE-SEND: Add braces around critical sections.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-23 19:34:02 +05:30
Vikas Gorur
a3ed4474de added lock_notify and lock_fnotify FOPs to everywhere necessary in libglusterfs/*
fixed indentation and resubmitting

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-23 19:31:52 +05:30
Anand V. Avati
80066c23da posix_releasedir flush fds from xattrcache.
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>
2009-02-22 13:39:08 +05:30
Basavanagowda Kanur
8b99865bb1 removed to 'option cache-size <size>' in example volfiles for io-threads.
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>
2009-02-22 03:38:29 +05:30
Amar Tumballi
bcd1e26a95 default volume file option enhanced in server-protocolg
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>
2009-02-22 03:37:55 +05:30
Amar Tumballi
869df6de64 change to make round robin dns work for getspec()
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>
2009-02-22 03:37:49 +05:30
Harshavardhana
a7b514ab8e command line and mount/fuse now use float attr/entry timeouts
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-21 21:14:47 +05:30
Harshavardhana
a2131aeafa attritbute and entry timeout values under volume now support float/double values
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-21 21:14:41 +05:30
Harshavardhana
b5e0ee918f new function gf_string2double for float/double values
fixed warning

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-21 21:14:23 +05:30
Harshavardhana
9679f8db65 new functions dict_{get,set}_double for float/double value
fixed warning

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-21 21:07:31 +05:30
Amar Tumballi
e9ac5f5877 fix to remove ''input' defined but not used' warning in building glusterfs
needed to complete the build scripts without warnings

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-02-20 09:40:09 -08:00
Shehjar Tikoo
99a1cac632 Reduce iothreads requests queue lock granularity.
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>
2009-02-19 07:08:38 -08:00
Shehjar Tikoo
57957c59cd Remove conf->cache_size checks
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>
2009-02-19 07:08:30 -08:00
Shehjar Tikoo
6a250d9087 Remove dead code.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-02-19 07:08:22 -08:00
Basavanagowda Kanur
91df2dbcb1 cluster/ha to handle EBADFD for fd based operations as transport disconnected.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-02-19 07:08:12 -08:00
Vikas Gorur
ed1d91986c warn on ERANGE error for lgetxattr in posix
(amended to fit in 80 columns)

ERANGE is usually caused by the user reducing the number of AFR's
children but continues to use the old backend.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-02-19 04:35:31 -08:00
Shehjar Tikoo
1c701badce Fix the order of CALLOC() args
Fix the order of  CALLOC arguments.

Signed-off-by: Shehjar Tikoo <shehjart@zresearch.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-02-19 02:58:14 -08:00
Anand V. Avati
0bb3a56f24 updated commit.sh
changed commit.sh for git usage

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-02-19 02:58:01 -08:00
Vikas Gorur
9a4bba3a7a added lock-ahead translator design document
Design document for the lock-ahead translator

Vikas

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-02-19 02:57:35 -08:00
Vikas Gorur
77adf4cd64 Added all files 2009-02-18 17:36:07 +05:30
Vikas Gorur
f3b2e6580e Initial import 2009-02-18 17:01:30 +05:30