1280 Commits

Author SHA1 Message Date
Harshavardhana Ranganath
04da2ae78b Excluding static libraries.
Signed-off-by: Harshavardhana <harsha@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 413 (rpmbuild fails with unpackaged files)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=413
2009-11-28 09:58:30 -08:00
Harshavardhana Ranganath
4b363f1c96 Removed deprecated export_dir in print string.
Signed-off-by: Harshavardhana <harsha@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 412 (Remove deprecated export_dir in print string)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=412
2009-11-28 09:25:45 -08:00
Amar Tumballi
07d5b01960 moved unify from 'cluster/unify' to 'legacy/cluster/unify'
maintaining unify is not feasible, and its design of namespace is
not scalable too. hence moving it to 'legacy/' directory..

Thanks to unify, we learnt something about rename(). 'cluster/unify' has
served GlusterFS well for more than 2years, and its the time to say
goodbye :-(

Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-11-28 09:25:44 -08:00
Vijay Bellur
ff9944ff79 performance/stat-prefetch: Changed rbthash to make use of 1 bucket
rbthash makes use of 1 bucket and a common mem-pool is being used for all rbt entries.

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

BUG: 221 (stat prefetch implementation)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221
2009-11-26 11:29:58 -08:00
Harshavardhana Ranganath
03949adaf0 Volgen rewritten using option parser and added proper support for booster.
Signed-off-by: Harshavardhana <harsha@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 411 (Rewrite volgen using option parser and extend cifs/nfs support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=411
2009-11-26 11:29:54 -08:00
Anand Avati
9b2159c611 THIS: transport to use xlator_notify() for proper setting of @THIS
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-11-26 09:06:39 -08:00
Pavan Sondur
bf34a8714e protocol/server: Introduce option trace to log requests and replies in normal log.
Signed-off-by: Pavan Vilas Sondur <pavan@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-11-26 09:06:35 -08:00
Pavan Sondur
e91b3c49e3 protocol/server: Get all fops to use the new 'resolve_and_resume' path in server/protocol.
Signed-off-by: Pavan Vilas Sondur <pavan@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-11-26 09:06:31 -08:00
Vijay Bellur
63f963700f Changed rbthash_table_init() to take a mem-pool argument.
Changes in libglusterfs/rbthash:

rbthash_table_init() now takes a mem-pool argument.
The mem-pool argument would be mutually exclusive to expected_entries.
If expected_entries is provided, mem-pool would be ignored and vice-versa.

Changes in io-cache:
1) Moved rbthash creation to readv.
2) rbthash makes use of 1 rbt instead of 4096
3) A global mem-pool is being used in place of a mem-pool per rbt.

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

BUG: 335 (Io-cache optimization)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=335
2009-11-26 04:32:25 -08:00
Amar Tumballi
a928aa5e0d fixes in nufa
Now nufa uses dht_conf->private variable to store its
contents, and doesn't pollute distribute's structures.

It used to hang earlier as layout_lock was not INIT()'d.

whitespace-cleanup done on the code too.

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

BUG: 409 (implement a switch scheduler)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=409
2009-11-26 03:04:30 -08:00
Amar Tumballi
fc87b19f0b switch translator added
switch translator is a wrapper around distribute to work for a
pattern based scheduling.

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

BUG: 409 (implement a switch scheduler)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=409
2009-11-26 03:04:26 -08:00
Harshavardhana Ranganath
057c071403 Volgen supporting multidisks and booster configuration for nfs and cifs
Signed-off-by: Harshavardhana <harsha@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 396 (Volgen multiple export directory support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=396
2009-11-26 03:04:22 -08:00
Amar Tumballi
3429e87557 add an extra check for loc->parent when loc->ino is not 1
This extra check is needed only in case where setup is
"server -> chain -> client", where for the root inode, inode->ino
is not updated in the first lookup call, hence used to crash.

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

BUG: 377 (segfault in protocol/client with chaining)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=377
2009-11-26 02:49:07 -08:00
Harshavardhana Ranganath
28e2901806 Fixed typo in gf_proc_dump for attribute_timeout.
Signed-off-by: Harshavardhana <harsha@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 410 (Typo in gf_proc_dump for attribute_timeout)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=410
2009-11-26 02:49:03 -08:00
Amar Tumballi
b80fac5417 don't allow stripe with just one subvolume
stripe code assumes in many places that it will have more than one subvolume,
but the strict check was not there in init, hence, if somebody configures stripe
with just one subvolume, it will cause many fops with frame loss.

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

BUG: 340 (Kernel Compilation fail in stripe)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=340
2009-11-26 02:48:59 -08:00
Vijay Bellur
d1f3cdc4dc protocol/server: Changed logging level of message on deep resolution
Signed-off-by: Vijay Bellur <vijay@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-11-26 02:48:55 -08:00
Amar Tumballi
61a73726a5 changed the log level of failure case in client_setvolume_cbk
It *should* be an error when a handshake fails. Its hard to debug
it otherwise

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

BUG: 26 (Version mismatch not handled correctly)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=26
2009-11-26 02:48:50 -08:00
Harshavardhana Ranganath
25c220cf50 Added boundaries for each fops, mops and cbks.
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-26 02:48:47 -08:00
Vikas Gorur
2517ec18ae cluster/afr: Include "common-utils.h" instead of alloca.h
alloca.h should be included on a platform-specific basis.
Lets common-utils.h handle that.

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

BUG: 349 (FreeBSD compilation error (alloca.h).)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=349
2009-11-26 02:48:42 -08:00
Vikas Gorur
1c6a55b04c protocol/client: Make log message print both generation number and inode number.
Signed-off-by: Vikas Gorur <vikas@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-11-25 06:03:43 -08:00
Vikas Gorur
1bcb009cf6 cluster/afr: Do self-heal on unopened fds.
This patch completes the previous patch for self-heal of
open fds in replicate.

If an fd was never opened on a subvolume, we remember that
and do the open after we've done self-heal on that fd.

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

BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
2009-11-25 06:03:39 -08:00
Raghavendra G
9806bd1f58 performance/stat-prefetch: Add refcounting to cache objects
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 405 (Segmentation fault in stat-prefetch.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=405
2009-11-24 23:06:16 -08:00
Raghavendra G
ca4c8115a8 performance/stat-prefetch: remove lock member in sp_fd_ctx_t.
- since the lifetime of fd context can be no longer than the fd, we can use
    lock in fd.

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

BUG: 405 (Segmentation fault in stat-prefetch.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=405
2009-11-24 23:06:12 -08:00
Raghavendra G
81af21adec performance/stat-prefetch: don't free the cache in readdir if the offset is not the expected one.
- cache creation is expensive operation. Also, cache will be freed in
    releasedir. Hence, just remove all entries from cache without freeing
    the cache. However this is not entirely true, since sp_cache_remove_entry
    frees the old table and reinitializes a new table if all entries are being
    removed. When rbtree based hash table provides an interface to remove all
    the entries, sp_cache_remove_entry should be modified not to destroy the
    table.

  - this patch also fixes a race condition wherein the cache being used in
    lookup getting freed in readdir if the offset is not equal to expected
    offset.

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

BUG: 405 (Segmentation fault in stat-prefetch.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=405
2009-11-24 23:06:09 -08:00
Vikas Gorur
250edc9e49 cluster/afr: Refactored the self-heal interface.
Cleaned up the self-heal interface to callers.

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

BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
2009-11-24 06:40:12 -08:00
Vikas Gorur
74612a456a cluster/afr: Do self-heal on reopened fds.
This patch brings in partial support for self-heal of open
fds. The precondition is that the fd should have been opened
successfully during the initial open() (or create()), and we
assume that protocol/client has successfully reopened the fd
when the subvolume comes back up.

It works by doing an "up/down flush" (a dummy flush transaction
to do post-op wherever necessary) and then triggering
data self-heal on the file in the post-post-op hook of the
dummy flush transaction. This ensures that any writes
that come in during self-heal will wait until self-heal completes.

The up/down flush is also done when a subvolume goes down,
so that post-op is done on all subvolumes where pre-op was done.

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

BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
2009-11-24 06:40:08 -08:00
Vikas Gorur
218959e059 cluster/afr: Provide a post-post_op hook in the transaction.
Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
2009-11-24 06:40:04 -08:00
Vikas Gorur
9e3fddb137 cluster/afr: Refactored the data self-heal algorithm.
Refactored the operation of the data self-heal algorithm
as:

* open all fd's (if fd not supplied by caller)
* lock 0-0 (if lock not supplied by caller)
* fxattrop, fstat (instead of lookup)
   ... self heal ...
* unlock (if lock not supplied by caller)
* close (if fd not supplied by caller).

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

BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
2009-11-24 06:40:00 -08:00
Vikas Gorur
21cffbc219 cluster/afr: Hold blocking locks for data self-heal.
Data self-heal now holds blocking locks, and instead of locking
on all subvolumes, it only locks on {data-lock-server-count} subvolumes.

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

BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
2009-11-24 06:39:57 -08:00
Vikas Gorur
a63e189822 cluster/afr: Set read-child = source regardless of foreground/background self-heal
Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
2009-11-24 06:39:53 -08:00
Vikas Gorur
3fe840d937 cluster/afr: Fix inode context bitmasks.
Set opendir_done and split_brain flags correctly
in the inode context.

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

BUG: 249 (Self heal of a file that does not exist on the first subvolume)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=249
2009-11-24 05:23:04 -08:00
Vikas Gorur
4a43031ce0 cluster/afr: Fix double-free in opendir self-heal callback.
local->cont.opendir.checksum was being free'd both in the
self-heal completion function and self-heal unwind.

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

BUG: 249 (Self heal of a file that does not exist on the first subvolume)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=249
2009-11-24 05:23:00 -08:00
Raghavendra G
6adfd86558 performance/quick-read: use STACK_UNWIND_STRICT for unwinding.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 269 (Add a specialized STACK_UNWIND macro for each FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=269
2009-11-24 04:37:10 -08:00
Raghavendra G
fe34bb798c performance/write-behind: use STACK_UNWIND_STRICT for unwinding.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 269 (Add a specialized STACK_UNWIND macro for each FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=269
2009-11-24 04:37:06 -08:00
Raghavendra G
9aed8cd659 performance/read-ahead: use STACK_UNWIND_STRICT for unwinding.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 269 (Add a specialized STACK_UNWIND macro for each FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=269
2009-11-24 04:37:02 -08:00
Raghavendra G
afdc2c9569 performance/io-threads: use STACK_UNWIND_STRICT for unwinding.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 269 (Add a specialized STACK_UNWIND macro for each FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=269
2009-11-24 04:36:58 -08:00
Raghavendra G
8b8205c2be performance/io-cache: use STACK_UNWIND_STRICT for unwinding.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 269 (Add a specialized STACK_UNWIND macro for each FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=269
2009-11-24 04:36:54 -08:00
Raghavendra G
54188f9d88 performance/stat-prefetch: use STACK_UNWIND_STRICT for unwinding.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 269 (Add a specialized STACK_UNWIND macro for each FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=269
2009-11-24 04:36:49 -08:00
Vikas Gorur
7c6bc261e7 cluster/afr: Unlock only those paths which have been locked during rename.
For ENTRY_RENAME_TRANSACTIONs, keep track separately whether the
lower_path and the higher_path have been locked, and unlock only
those which have been.

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

BUG: 112 (parallel deletion of files mounted by different clients on the same back-end hangs and/or does not completely delete)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=112
2009-11-24 04:36:45 -08:00
Vikas Gorur
1cd2e38902 cluster/afr: Fix handling of revalidate lookups.
This patch does two things related to revalidate:

1) If a revalidate fails on any subvolume, the entire lookup
   call is failed.

2) Self-heal is not triggered on a revalidate if revalidate
   has failed on any subvolume.

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

BUG: 389 (auto-heal fails randomly and causes "Stale NFS file handle" errors)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=389
2009-11-24 04:36:41 -08:00
Anand V. Avati
5b483cb62f Revert "libglusterfs/src/gf-dirent.c: In gf_dirent_nb structure d_name should be char array of size 1."
This reverts commit e151ab3ed4718606767146f18b416f8900552fbc.
2009-11-24 03:40:53 -08:00
Vikas Gorur
40dfc3e78b storage/posix: Fix condition typo.
Do comparision instead of assignment in if-condition
in posix_link.

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

BUG: 254 (storage/posix has to do inode number transformation wherever it unwinds with a stat structure)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=254
2009-11-20 23:34:13 -08:00
Raghavendra G
96ac455941 performance/io-cache: don't use stat got in read_cbk if it is zero-filled.
- translators like io-cache, read-ahead return a zero-filled stbuf in
    readv_cbk and usage of zero filled stat for cache validation is not
    correct.

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

BUG: 376 (server-side io-cache is preventing client-side io-cache from working)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=376
2009-11-20 05:02:43 -08:00
Paul Rawson
83598e6015 Fix Redhat init file so that it knows the correct binary location
Signed-off-by: Paul Rawson <plrca2@gmail.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 388 (Redhat initfile fix)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=388
2009-11-19 03:23:19 -08:00
Erick Tryzelaar
9503af5428 Fix rpm building for Fedora 11.
I was running into a problem compiling glusterfs on Fedora 11, rpmbuild was
complaining that it couldn't find any .a files. Since it doesn't look like
gluster's creating archive libraries anymore, I removed this line from the
spec file, and gluster started to compile again.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-11-19 03:23:19 -08:00
Raghavendra G
717faf468f transport/ib-verbs: assign to qpreg before accessing it in __ib_verbs_lookup_peer.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 381 (glusterfs crash in ib-verbs)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=381
2009-11-19 02:57:45 -08:00
Raghavendra G
68a9546e5c performance/stat-prefetch: don't cache dentries corresponding to directory.
- distribute picks up the inode number from hashed subvolume. But readdir
    is done from different subvolumes based on the offset. Hence there is a
    possibility of inode number and device number for directories being
    inconsistent between two stat calls.

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

BUG: 371 (rm -rf fails on stat-prefetch.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=371
2009-11-19 01:15:43 -08:00
Raghavendra G
d14d014782 performance/stat-prefetch: don't use pre-allocated dirent structure in sp_get_cache_entry.
- since we don't know the size of dentry before calling sp_get_cache_entry,
    we must dynamically allocate the dentry in sp_cache_get_entry and copy the
    contents from cache.

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

BUG: 371 (rm -rf fails on stat-prefetch.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=371
2009-11-19 01:15:39 -08:00
Raghavendra G
892710a37a cluster/distribute: copy the stat structure while copying dentries in readdirp_cbk.
- only the transformed inode number was being copied, leaving other fields of
    stat 0.

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

BUG: 371 (rm -rf fails on stat-prefetch.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=371
2009-11-19 01:15:36 -08:00
vinayak hegde
dd216deb8a debug/error-gen: Correct log messages in init function.
Signed-off-by: Vinayak Hegde <vinayak@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 291 (feature enhancement of error-gen translator)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=291
2009-11-19 01:15:32 -08:00