1658 Commits

Author SHA1 Message Date
Shehjar Tikoo
91afbb094c mount3: Handle <volname> as well for unmount dirpath
Till now nfsx would crash if the export was mounted simply as
<volname> as compared to the traditional method of /<volname>.

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

BUG: 944 (vmware unmount crashes nfsx)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=944
2010-06-01 00:23:54 -07:00
Shehjar Tikoo
7cda666197 nfs3: Special-case the lookup for parent dir of root
When a lookup request comes in for (rootfh, ".."), we need to handle
it in a way that returns the attributes and handle of the root dir.
Not doing so crashes nfsx because the inode table is not able to
find a inode for the root's parent. This inode was being referenced in
nfs3_lookup_parentdir_resume when filling a loc for the lookup fop.

For the record, such a lookup request is sent by vmkernel.

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

BUG: 942 (NFS crashes as a vmware ESX data store)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=942
2010-06-01 00:23:51 -07:00
Shehjar Tikoo
da08199c57 nfs3: Funge . and .. ino/gen in readdir of root
In the readdir reply for the root of the export, replace the ino
and gen number for the . and .. entries with 1 and 0 respectively.
On clients which inspect this field, the client will error out due
to the change in inode number of the root directory when see for "."

.. also needs to be replaced because we do not have a concept of
the parent directory of root. The return of 1 and 0 is the same as
the behaviour of: stat /.. command.

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

BUG: 942 (NFS crashes as a vmware ESX data store)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=942
2010-06-01 00:23:46 -07:00
Csaba Henk
5e03484d1d OS X: make location of launchd service configurable
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-31 05:39:22 -07:00
Csaba Henk
a841aba084 OS X: salvage signal handling from mount routine
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-31 05:39:17 -07:00
Pavan Sondur
065ac01684 protocol/client: Add missing argument to readlink unwind call.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 967 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=967
2010-05-31 05:39:14 -07:00
Amar Tumballi
37495f6c2e cluster/stripe: NULL pointer dereference checks added
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-05-28 03:25:11 -07:00
Amar Tumballi
e2c119796e cluster/stripe: added STACK_UNWIND_STRICT macro
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-05-28 03:25:07 -07:00
Csaba Henk
c729fde066 catch up with 4911659 on OS X
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 952 (EBADF returned by server-protocol confuses AFR)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=952
2010-05-28 03:25:01 -07:00
Pavan Sondur
4911659759 protocol/server: Use EBADFD instead of EBADF in the case of a failed fd resolution.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 952 (EBADF returned by server-protocol confuses AFR)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=952
2010-05-27 08:18:28 -07:00
Pavan Sondur
3bd7269c93 protocol/client: Unwind with error if getting remote inode number fails.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 951 (Unwind if inode_ctx fails in all FOPS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=951
2010-05-27 08:18:24 -07:00
Vikas Gorur
7817f40998 nfs/lib: Remove "-module" from LDFLAGS
libglrpcsvc is a library and not a module according to Mac OS X.
Hence "-module" needs to be removed for linking to work.

Signed-off-by: Vikas Gorur <vikas@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-27 02:00:48 -07:00
Raghavendra Bhat
f2ac33d36d stat information of postparent stored in preparentstr insteadof postparentstr in trace
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 945 (stat information of postparent stored in preparentstr instead of postparentstr in trace)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=945
2010-05-27 02:00:45 -07:00
Raghavendra Bhat
c90bea236d take the return value of trace_stat_to_str for preparent and postparent in corresponding variables
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 945 (stat information of postparent stored in preparentstr instead of postparentstr in trace)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=945
2010-05-27 02:00:41 -07:00
Raghavendra Bhat
665591074f Check whether NULL is returned after GF_CALLOC in the init function of io-stats
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 946 (Null check in init function of io-stats)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=946
2010-05-27 02:00:37 -07:00
Anand Avati
419ff2e739 resolver: set safer conditionals during path creation
when client would send just the path as part of a transaction, path
reconstruction would create parent directory's path instead of actual
path at the time of resolution.

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

BUG: 935 (Directories change mode from 0755 to 0644 automatically)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=935
2010-05-27 02:00:34 -07:00
Raghavendra G
e46c613364 performance/write-behind: explicitly enforce ordering of overlapping writes.
- If there are non-contiguous offsets (offsets which do not start where
    previous write ended), wait for completion of previous writes to server
    before sending new ones.
  - Send flush call to server only when all writes are completed.
  - If a file is opened with O_APPEND, at any point of time a maximum only one
    write call to server should be in transit. This is to avoid reordering of
    writes in the presence of afr which can result in data corruption.
    See bug #934 for more details.

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

BUG: 934 (md5sum mismatch when files are transferred using vsftpd)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=934
2010-05-26 04:40:09 -07:00
Pavan Sondur
4d195fb92f features/locks: Use fuse supplied lock owner even for internal locks.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 934 (md5sum mismatch when files are transferred using vsftpd)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=934
2010-05-26 00:40:53 -07:00
Csaba Henk
5e849ce81a socket: make tcp keepalive work on OS X
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 754 (enable tcp keepalive)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=754
2010-05-26 00:26:02 -07:00
Csaba Henk
dda7eb5ff4 fix format string warning on OS X
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 936 (Provide microsecond timestamp in logfile)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=936
2010-05-26 00:25:59 -07:00
Raghavendra G
b48459eb73 performance/quick-read: implement an upper size limit for the cache.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 723 (enhancements to quick read)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=723
2010-05-26 00:13:43 -07:00
Vijay Bellur
3047188b31 libglusterfs: Use usecond resolution for logging
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 936 (Provide microsecond timestamp in logfile)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=936
2010-05-21 00:32:15 -07:00
Raghavendra Bhat
719354ddbd free this->private in fini in io-stats
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 930 (conf not freed in io-stats fini)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=930
2010-05-21 00:32:12 -07:00
Shehjar Tikoo
174f26f113 socket: Support TCP-KEEPALIVE
Introduces two new socket options:

1. transport.socket.keepalive: bool
Sets keepalive on a transport. On by default.

2. transport.socket.keepalive-interval: integer
Number of seconds between each keepalive message on the socket.
Default in linux is 2 hours. To change that value for a given
transport, use this option. Integer value is interval in seconds.

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

BUG: 754 (enable tcp keepalive)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=754
2010-05-21 00:32:08 -07:00
Shehjar Tikoo
c705b679fb nfs: Introduce trusted-write and trusted-sync options
Introduces two new options:

1. nfs3.*.trusted-write: Forces UNSTABLE writes to return STABLE to NFS
clients to prevent the clients from sending a COMMIT. STABLE writes
are still handled in a sync manner and so are COMMITs if they're sent
at all.

2. nfs3.*.trusted-sync: Forces all WRITEs and COMMITs to return STABLE
return flags to NFS clients to avoid the overhead of STABLE writes, and
COMMITs that follow UNSTABLE writes. This includes the trusted-write
functionality. In addition to the trusted-write, it also writes
STABLE writes in an UNSTABLE manner.

Both violate the NFS protocol but allow better write perf in most
configurations. Use with caution.

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

BUG: 924 (Slow NFS synchronous writes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=924
2010-05-21 00:32:04 -07:00
Sachidananda
3b88b2dfbc Log proper error message when hostname or ip does not conform to standards.
Signed-off-by: Sachidananda Urs <sac@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 923 (Hostnames with underscores fail)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=923
2010-05-21 00:32:00 -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
bfb10f41a8 OS X: NFS adjustments needed for OS X
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:47 -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
Pavan Sondur
86ee9d3e14 cluster/afr: Don't dereference fd ptr - it might be NULL due to a failed call.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 914 ([3.0.4] Crash in afr_opendir_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=914
2010-05-21 00:31:37 -07:00
Lakshmipathi
8734ba0fc9 Bug 799: dht prints 100% full when subvolume is not connected to remote host
Signed-off-by: lakshmipathi <lakshmipathi@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 799 (dht prints 100% full when subvolume is not connected to remote host)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=799
2010-05-21 00:31:32 -07:00
Anand Avati
bb315cb180 fuse, dht: use readdir by default.
dht - switch over to readdirp based algo if one subvolume is down

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

BUG: 898 (small file performance enhancements)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=898
2010-05-13 12:12:19 -07:00
Anand Avati
97e060d04b dht: perform revalidate on one subvolume
generation numbers should detect recreations and no need to rely on
layout changes anymore

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

BUG: 898 (small file performance enhancements)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=898
2010-05-13 12:12:16 -07:00
Anand Avati
8ed739a72a write-behind: update default values for better small file performance
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 898 (small file performance enhancements)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=898
2010-05-13 12:12:12 -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
Shehjar Tikoo
9bdda4ce0a nfs3: Final unref only on successful remove
The final unref on the inode during a file removal
should take place only if the file removal was successful.

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

BUG: 857 (Crash in afr_sh_entry_expunge_entry_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=857
2010-05-13 12:12:02 -07:00
Csaba Henk
40c53115e3 nfs: fix warning on 32 bit
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 902 (iozone hangs during random read throughput test)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=902
2010-05-11 10:09:57 -07:00
Vikas Gorur
e3ea64186a glusterfs-profiler: Add text mode support.
glusterfs-profiler works in text mode by default now. This allows it to run on systems which don't have matplotlib installed.

Modes can be selected using:

  -m graph        - Graphical mode
  -m text         - Text mode (default)

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-05-11 10:09:52 -07:00
Shehjar Tikoo
7c9df49689 extras: Add NFS-specific log analyzer tool
Most of the time, a NFS request and the reply are separated by hundreds
of lines of other debugging output most of which is not always relevant
for NFS debugging. This script synthesizes the full glusterfs log into
the parts relevant for NFS while bringing together the NFS requests with
there replies on one line.

Min log-level required for this script to be useful is DEBUG. Only
works for NFS translator.

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

BUG: 913 (NFS-specific log analyzer tool)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=913
2010-05-10 02:18:08 -07:00
Shehjar Tikoo
2848a53f53 nfs3: Round-up read reply bytes of multi-vector reply
A previos commit brought in support for returning read replies
when subvolumes return reads in multiple iovecs. This did
not completely fix the problem since the bytes in iovecs
all together could be unaligned with the 4 byte
boundary as needed by XDR for the opaque data. This resulted
in read requests being either retransmitted or rejected with
an error message in syslog on the NFS client.

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

BUG: 902 (iozone hangs during random read throughput test)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=902
2010-05-10 02:18:04 -07:00
Shehjar Tikoo
80c3061c07 rpcsvc: Move xdr round up functions to rpc code
Signed-off-by: Shehjar Tikoo <shehjart@dev.gluster.com>
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 902 (iozone hangs during random read throughput test)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=902
2010-05-10 02:18:00 -07:00
Shehjar Tikoo
eba21f8fb6 nfs: Fine tune nfs_entry_loc_fill return values
A previous change to this function introduced a regression
for exclusive creates. This patch fixes the regression by
bringing the return values in line with what the callers
expect in different situations of loc filling.

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

BUG: 857 (Crash in afr_sh_entry_expunge_entry_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=857
2010-05-10 02:17:57 -07:00
Anush Shetty
fb2d84b850 Adding GF_LOG_OCCASIONALLY to prevent repeated log messages
Signed-off-by: Anush Shetty <anush@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 10 ([ glusterfs 2.0.0 ] - Repeated Log messages with invalid remote-host in protocol/client)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=10
2010-05-09 21:41:50 -07:00
Simone Gotti
8be447d390 Unset split-brain flags in afr_self_heal_completion_cbk if self heal completes successfully.
Signed-off-by: Simone Gotti <simone.gotti@gmail.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 884 (I/O errors after fixed split brain and successfully completed self heal)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=884
2010-05-09 21:41:46 -07:00
Shehjar Tikoo
45a2f82f65 nfs3: Submit multiple vectors received in read callback
There is a possibility of io-cache or read-ahead returning
a read buffer that straddles two separate pages in ioc or ra,
through two struct iovecs. Current nfs3 read reply does not
return as many vectors as received from a subvolume leading to
a short read for the NFS client.

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

BUG: 902 (iozone hangs during random read throughput test)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=902
2010-05-08 06:37:42 -07:00
Shehjar Tikoo
79f8c310df rpcsvc: Support multiple vectors during reply submission
RPC reply path allows attaching a single iovec to a reply. This limits
the replies for certain program ops which need to return multiple vectors
for eg, the NFSv3 read reply.

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

BUG: 902 (iozone hangs during random read throughput test)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=902
2010-05-08 06:37:38 -07:00
Shehjar Tikoo
c1f052da36 nfs3: Use standard macro to return ESTALE
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 857 (Crash in afr_sh_entry_expunge_entry_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=857
2010-05-08 06:37:33 -07:00
Shehjar Tikoo
c8a94aa7c5 nfs: Handle failed parent loc filling
Just because an inode_get for parent (ino, gen) returns a valid
inode_t does not meant that the inode_path(..in nfs_parent_inode_loc_fill..)
will return successfully. The failure of nfs_parent_inode_loc_fill was
not handled resulting in a NULL path being passed for the fop.

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

BUG: 857 (Crash in afr_sh_entry_expunge_entry_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=857
2010-05-08 06:37:29 -07:00
Anush Shetty
9dabc8b0a9 Fix for crash in stripe_entry_self_heal
Signed-off-by: Anush Shetty <anush@gluster.com>
Signed-off-by: Anush Shetty <anush@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 887 (Crash in stripe_entry_self_heal)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=887
2010-05-08 06:37:25 -07:00