5671 Commits

Author SHA1 Message Date
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