diff options
author | Anand Avati <avati@redhat.com> | 2013-01-21 16:37:43 -0800 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-06 13:16:08 -0800 |
commit | 45c04e107c365d29ca9872b5e2d12c932bf43a24 (patch) | |
tree | bfffde34cfedcbea5e170e59da67b7543dfadce1 /xlators/performance/open-behind/src/open-behind-mem-types.h | |
parent | c2953ea34c92f640cecf0f6575aa1acbdc5205b4 (diff) |
open-behind: translator to perform open calls in background
This is functionality peeled out of quick-read into a separate
translator.
Fops which modify the file (where it is required to perform the
operation on the true fd) will trigger and wait for the backend
open to succeed and use that fd.
Fops like fstat() readv() etc. will use anonymous FD (configurable)
when original fd is unopened at the backend.
Change-Id: Id9847fdbfdc82c1c8e956339156b6572539c1876
BUG: 846240
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/4406
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/performance/open-behind/src/open-behind-mem-types.h')
-rw-r--r-- | xlators/performance/open-behind/src/open-behind-mem-types.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/xlators/performance/open-behind/src/open-behind-mem-types.h b/xlators/performance/open-behind/src/open-behind-mem-types.h new file mode 100644 index 000000000..1e94296f4 --- /dev/null +++ b/xlators/performance/open-behind/src/open-behind-mem-types.h @@ -0,0 +1,21 @@ +/* + Copyright (c) 2008-2012 Red Hat, Inc. <http://www.redhat.com> + This file is part of GlusterFS. + + This file is licensed to you under your choice of the GNU Lesser + General Public License, version 3 or any later version (LGPLv3 or + later), or the GNU General Public License, version 2 (GPLv2), in all + cases as published by the Free Software Foundation. +*/ + +#ifndef __OB_MEM_TYPES_H__ +#define __OB_MEM_TYPES_H__ + +#include "mem-types.h" + +enum gf_ob_mem_types_ { + gf_ob_mt_fd_t = gf_common_mt_end + 1, + gf_ob_mt_conf_t, + gf_ob_mt_end +}; +#endif |