324 Commits

Author SHA1 Message Date
shishir gowda
305025fbf8 Implement mem pool for frame and stack
Ran posix compliance test and sanity test
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 329 (Replacing memory allocation functions with mem-type functions)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
2010-08-06 03:37:28 -07:00
Raghavendra G
40d3ad1585 changes to rpc
- use mem-pool for requests and saved_frames.
  - preserve the rpc_req structure till rpc invokes program's reply.
    This will enable us to store transport specific data that has to
    last till reply has come (eg., memory regions of chunk lists in
    case of rdma).
  - change signature of rpc_clnt_submit to accept rsphdr_vector and
    rsppayload_vector. The buffers pointed by these vectors will be
    from iobufs and these iobufs are added to an iobref which should
    also be passed as an arguement to rpc_clnt_submit.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
2010-07-28 05:08:26 -07:00
Amar Tumballi
753146c0ff some check added to the variables after GF_CALLOC
handles some NULL dereference problems
(reported by clang when ran with code where '#define GF_CALLOC NULL').

Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 966 (NULL check for avoiding NULL dereferencing of pointers..)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=966
2010-07-28 03:34:48 -07:00
Anand Avati
b12d471100 glusterfsd: fix bug in GETSPEC which would result in loading of -f volfile
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-23 00:00:23 -07:00
Csaba Henk
c907de75c8 glusterfsd: ban specifying fuse in volfile
"fuse-in-volfile" was defunct anyway -- it resulted in a broken mount which
had all calls hang on it.

So the challenge was either to fix it or remove it. It got thumbs down.

Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-22 01:55:50 -07:00
Anand Avati
d4a56de8bb glusterfsd: move mgmt_init() to happen post deamonize()
else results in loss of timer thread

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-21 06:34:28 -07:00
Anand Avati
74195df7a5 mount/fuse: disable fuse support from volfile
glusterfsd: implement GETSPEC functionality to fetch volfiles from server

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-21 02:44:06 -07:00
Anand Avati
feefd93f84 glusterfsd: make SIGINT gdb friendly
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-21 00:46:43 -07:00
Amar Tumballi
9e3b58a2ab 'glusterd' command
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-20 20:44:14 -07:00
Amar Tumballi
915adb9c12 gluster-CLI-and-mgmt-glusterd-added-to-codebase
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-08 23:28:08 -07:00
Csaba Henk
7e489f3cc7 fix up OS X after dynamic volume changes
Note that contrib is not needed to be in toplevel Makefile as
its not a separate target, rather stuff is "pulled in" from there.

Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-08 05:25:02 -07:00
Csaba Henk
c35f6bf8f7 minor option handling refactorizations
- clean up ZR_* internal option defines
- make argument order of glusterfs_graph_activate() aligned with
  other graph ops

Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-08 05:24:57 -07:00
Csaba Henk
6779d91ea8 fix fuse volume creation from volfile
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-08 05:24:54 -07:00
Csaba Henk
f605883c4f fix up option handling
After 79241696, the following anomalies came up:

- --mac-compat and --read-only was rejected originally
  on server side, 79241696 cancelled this check
- direct I/O option handling was interfered by 79241696
- --mac-compat had no effect on Linux and does not compile on Mac

Restore original behaviors.

Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-07-08 05:24:50 -07:00
Vijay Bellur
22a79cd791 glusterfsd: Handle setting entry-timeout to 0
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 1034 (rename() is not atomic)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1034
2010-07-06 05:58:41 -07:00
Amar Tumballi
a45ac57e4e allocate space for '\0' in string, while adding xlator-option
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 1044 ('--xlator-option' is not working)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1044
2010-07-06 05:58:37 -07:00
Anand Avati
a912b14515 mem-types: include *-mem-types.h in noinst_HEADERS variables in all Makefile.am
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 329 (Replacing memory allocation functions with mem-type functions)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
2010-06-08 05:25:07 -07:00
Anand Avati
79241696fb dynamic volume changes for graph replacement
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-06-07 11:58:50 -07:00
Csaba Henk
c4ebd25a17 fuse: add a built-in fuse traffic dumper mechanism
It makes fuse dumping possible on platforms where strace is not available (eg. OS X),
moreover it makes reporting of fuse related bugs more convenient.

Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 972 (Metabug for misc. fuse features)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=972
2010-06-07 10:34:56 -07:00
Csaba Henk
67ade7b062 OS X: enable mac-compat for OS X clients.
Injecting volumes at startup this way is pretty hacky but it will do for now.
Refactoring that part will come as separate commit.

Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 361 (GlusterFS 3.0 should work on Mac OS/X)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
2010-05-21 00:31:56 -07:00
Csaba Henk
11fb070964 OS X: adjustments, minor fixes to eliminate warnings
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 361 (GlusterFS 3.0 should work on Mac OS/X)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
2010-05-21 00:31:51 -07:00
Csaba Henk
18d982e6d0 OS X: basic additions for OS X client support
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 361 (GlusterFS 3.0 should work on Mac OS/X)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
2010-05-21 00:31:41 -07:00
Csaba Henk
2a0398dee8 added features/mac-compat
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 800 (Problem on OSX with NFS and CIFS exports)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=800
2010-05-13 12:12:08 -07:00
Amar Tumballi
7840d9de27 frame's 'op', 'type' restructured
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
2010-05-03 23:40:10 -07:00
Amar Tumballi
7504b0e623 structuring of protocol
* isolated 'protocol.h' and transport.h from libglusterfs/* and
  glusterfsd/*

Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
2010-05-03 23:40:01 -07:00
Vijay Bellur
582de0677d Memory accounting changes
Memory accounting Changes. Thanks to Vinayak Hegde and Csaba Henk for their
contributions.

Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 329 (Replacing memory allocation functions with mem-type functions)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
2010-04-23 06:32:52 -07:00
Anand Avati
9c2bc1bc61 fuse: change behavior of direct io mode.
If bigwrites are available, then disable direct io mode only by default
(previously direct io mode was disabled in any case).

Added new command line option to force enabling of direct io mode

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 801 (Direct io-mode support and related changes in caching translators.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=801
2010-04-08 03:08:00 -07:00
Vikas Gorur
d90c2f86ca core: Do internal latency measurement of FOPs.
This patch adds a facility by which each translator
keeps track of the average latency of a FOP from
its point of view. That is, the duration between
the translator handing over the call to a lower-level
translator and the reply coming back.

The latency measurement is off by default, and can
be toggled by sending SIGUSR2 to the GlusterFS process.

Latency data is printed as part of the process state dump.

Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 268 (Add timing instrumentation code)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=268
2010-04-04 22:27:04 -07:00
Amar Tumballi
3f8dc989b7 added '--read-only' command line option for glusterfs
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 712 (mount.glusterfs script doesn't handle 'ro' option)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=712
2010-03-24 05:42:20 -07:00
Amar Tumballi
ffc138f7f1 handle SIGINT in glusterfsd
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 703 (SIGINT not handled in glusterfsd)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=703
2010-03-09 00:24:54 -08:00
Harshavardhana Ranganath
ffc36da0fd Fix fetching volume file from the server, by sending parent up through the xlator graph.
Signed-off-by: Harshavardhana <harsha@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 573 (3.0.1 doesn't fetch volfume files from the server)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=573
2010-01-26 03:42:38 -08:00
Anand Avati
9c53d5daf4 core: fix initialization of disjoint xlator graph
if graph has disjoint subgraphs, send GF_EVENT_PARENT_UP to every top node

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 272 (Server backend storage hang should not cause the mount point to hang)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=272
2010-01-23 02:58:31 -08:00
Amar Tumballi
e6f074f931 default log file now doesn't start with '-'
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 490 (Default log file path should not begin with '-')
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=490
2010-01-14 23:23:53 -08:00
Vijay Bellur
96ae032a9c Support for Compilation on Solaris
This is based on patch at:

http://node3.rnode.ru/glusterfs-3.0.0-p1.patch

Thanks to Petrunin Egor <shellcode@mail.ru> for this patch.

Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>

BUG: 481 (Fix compilation failures in Solaris)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=481
2009-12-20 21:38:36 -08:00
Vijay Bellur
6922f156d6 glusterfsd: Handle argument attribute-timeout when set to 0
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 252 (client coherence problem with locks and truncate)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=252
2009-12-03 11:49:06 -08:00
Harshavardhana Ranganath
410909f317 Disabled centralized logging by default.
Signed-off-by: Harshavardhana <harsha@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 366 (Infinite loop with centralized logging.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=366
2009-11-13 09:33:14 -08:00
Anand Avati
5d9a4d81b3 iobuf: initialize size without 4KB padding
since new fuse bridge takes care of landing write buffers to aligned iobufs
and the 4KB header padding is no more necessary

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
2009-10-30 03:37:35 -07:00
Anand Avati
bee7b8877d glusterfsd: whitespace cleanup
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
2009-10-30 03:37:31 -07:00
vinayak hegde
1fe48896b9 glusterfsd.c: Unnecessary writing of strerror of errorno on pipe
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 4 (mount --bind fails if run immediately after mounting GlusterFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=4
2009-10-21 22:52:42 -07:00
Vijay Bellur
0b1197defa Changed occurrences of Z Research to Gluster.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-10-07 03:54:49 -07:00
vinayak hegde
7e6c9643e6 glusterfsd.c: Pipe is used during daemonization as ipc.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 117 (Wrong command line does not throw error)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=117
2009-10-05 05:16:47 -07:00
Vikas Gorur
2317913ae5 glusterfsd/main: Do a sem_post only if running in daemon mode.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 4 (mount --bind fails if run immediately after mounting GlusterFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=4
2009-09-24 05:19:30 -07:00
vinayak hegde
5535110f8e Changes for custom daemon function.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 4 (mount --bind fails if run immediately after mounting GlusterFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=4
2009-09-23 06:27:22 -07:00
Vijay Bellur
58e6643e03 glusterfsd: Removing conditional compilation for SIGUSR1 handler.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 213 (Support for process state dump)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=213
2009-09-16 07:11:15 -07:00
Vijay Bellur
b4d6c3d1bb TAKE2[PATCH BUG:213 1/1] Support for Process State Dump
Support for process state dump.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 213 (Support for process state dump)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=213
2009-08-19 17:57:53 -07:00
Anand V. Avati
a31b001634 Merge branch 'fusilli' of /data/git/users/csaba/glusterfs-fusilli
Conflicts:
	xlators/mount/fuse/src/fuse-bridge.c
2009-08-17 15:25:44 -07:00
Harshavardhana Ranganath
95ee2689a6 glusterfs log prints "TLA Revision" tag, remove it and reflect git instead
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-08-17 14:37:30 -07:00
Csaba Henk
3d894362ae fuse: switch off direct I/O mode if big writes are supported 2009-08-14 17:25:32 -07:00
Basavanagowda Kanur
a4c6e7c816 glusterfsd: handle logfile path specification appropriately.
when logfile path is not specified as absolute path, the symbolic
link created to the logfile (only in invocation of glusterfs with
--run-id) might end up as a broken symbolic link.

for example, command-line invocation like below will result in
broken symbolic link:
glusterfsd -f /home/glusterfs/volfiles/nufa/nufa.vol
-l ../home/glusterfs/logs/nufa.f1.log --run-id nufatest /mnt/nufa/

symbolic link will be created at $PWD/../home/glusterfs/logs/nufa.f1.log
will have a value of ../home/glusterfs/logs/nufa.f1.log.<date>.<time>.<pid>.
this symlink might be broken.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 156 (Broken symbolic link when relative path is given for a log file)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=156
2009-07-28 13:25:02 -07:00
Amar Tumballi
ca859dfe78 fix build warnings in glusterfsd
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 130 (build warnings)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=130
2009-07-20 14:28:57 -07:00