428 Commits

Author SHA1 Message Date
Vikas Gorur
7867577b34 Destroy old ping timer before setting new one.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-17 20:43:14 +05:30
Basavanagowda Kanur
4a632ea96b protocol/client - set remote inode number in inode context for root inode also, during lookup_cbk().
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-17 14:47:53 +05:30
Basavanagowda Kanur
41011cdb4c protocol/client - NULL check for loc->inode added in statfs(), before trying to retrieve remote inode number from loc->inode's context.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-17 10:29:17 +05:30
Raghavendra G
6bc3f3c19b logging enhances to commit d77279ef04ca75ab9715864274567d1ce0ce66a6
- logging made more relevent.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-16 17:11:10 +05:30
Basavanagowda Kanur
e6c22c0587 eliminate this_ino_get(), this_ino_set(). handle inode_ctx_{get,set}() at the fop level itself.
they used to log ambiguously
and was of no use. logging is now more precise and will help in debugging,
in case of errors.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-16 14:42:11 +05:30
Raghavendra G
d77279ef04 server-helpers: Add check for NULL connection arguement being passed in helpers.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-14 15:31:35 +05:30
Anand V. Avati
3093ff0b12 client_readv_cbk - when op_ret is 0, iobuf comes NULL from transport, handles this case
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-13 15:45:42 +05:30
Amar Tumballi
4a62b5af1c feature to disable volumefile's checksum
in server volume define, "option verify-volfile-checksum no" to disable
the checksum feature.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-12 11:59:56 +05:30
Anand V. Avati
e062dd5c2f update protocol/server with new readv writev prototypes
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-12 11:33:47 +05:30
Anand V. Avati
ad86fba6e2 updated protocol/client with new readv writev prototypes
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-12 11:33:47 +05:30
Raghavendra G
6eb419f1ca server-protocol - reimplement connection cleanup to happen in 2 phases
- first phase, which happens when POLLERR is received on transport,
     releases all locks, flushes all open fds.
   - second phase, which happens when both the transports of connection destroyed,
     destroys the containers like lock table, fd table along with the connection.
   - the first phase, clears up any references to transport held by translators
     like posix-locks(in the form of blocked locks) paving way for the second phase.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-03 19:09:35 +05:30
Raghavendra G
db365c30d0 Enable glusterfs client to exit after a configured number of failed connects \ while fetching volume specification file from server
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-01 13:20:06 +05:30
Raghavendra G
96b687b9b8 Add new type of option type INTERNET_ADDRESS for validation
- used to validate options like remote-host, bind-address.
  - Also validate options of translators created during fetch of volume
    specification file from remote server.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-01 00:13:53 +05:30
Anand V. Avati
3276e650f8 memory leak (of header) when frame is attempted to be xfer'ed when transport is disconnected
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-28 00:53:11 +05:30
Anand V. Avati
3baa99ebef ping-pong timer: - share last_sent and last_received between channels so that any activity ensures the remote host being alive (useful under heavy loads) - timer expiry disconnects both transports
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-28 00:53:07 +05:30
Amar Tumballi
617fa25042 when the both channels in client protocol is disconnected, fd's are marked as bad
patch solves the problem of fds being valid even in the case of server
disconnection, which causes operations on wrong fd when server comes back up.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-21 04:05:55 +05:30
Vikas Gorur
7af8d8edbd Add extra 'volume' parameter to inodelk/entrylk calls
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-12 16:29:45 +05:30
Krishna Srinivas
3b45b4c922 ping timer will not timeout if we recently got POLLOUT on the socket i.e if ((cur - (sent|received)) < timeout)
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-10 15:38:20 +05:30
Anand V. Avati
2323b92d9b failover to any active transport when requested channel is not connected
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-10 00:33:58 +05:30
Vikas Gorur
0991858fca added fgetxattr and fsetxattr FOPs
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-07 02:08:41 +05:30
Krishna Srinivas
cb602a1d7d Changed the default transport-timeout to 600
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-03-05 02:20:31 +05:30
Amar Tumballi
5ed5ea9bff create fuse thread after setvolume cbk happens, not only in case of success
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>
2009-03-03 11:58:03 +05:30
Amar Tumballi
8462dd88ad volumefile modification awareness to make sure there are no inconsistencies.
Complete (including feature to properly umount) in my sense.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-27 16:13:55 +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
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
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
Vikas Gorur
77adf4cd64 Added all files 2009-02-18 17:36:07 +05:30