summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-03-09 22:37:57 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-03-10 15:41:15 +0530
commitb1c6a8507d59d16f9691652703be48f4539ca093 (patch)
treec4b8d7e4171ab9a915cb08204252875b542cf557 /xlators/storage/posix/src/posix.h
parent3b45b4c922a5f5835afa4e9211d64da2c6868633 (diff)
feature to span the export directory across different mountpoints
This feature enables exported directory containing different mountpoints. With, 'option span-devices <n>' where n is number of different mountpoints export directories can have, one can enable this feature. By default the number will be 1, and the inode scaling won't come into picture. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r--xlators/storage/posix/src/posix.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h
index e41bff94755..88860a57116 100644
--- a/xlators/storage/posix/src/posix.h
+++ b/xlators/storage/posix/src/posix.h
@@ -64,7 +64,6 @@ struct posix_fd {
struct posix_private {
char *base_path;
int32_t base_path_length;
- dev_t base_stdev;
/* Statistics, provides activity of the server */
struct xlator_stats stats;
@@ -91,6 +90,11 @@ struct posix_private {
gf_boolean_t export_statfs;
gf_boolean_t o_direct; /* always open files in O_DIRECT mode */
+
+ gf_boolean_t span_devices;
+
+ int num_devices_to_span;
+ dev_t *st_device;
};
#define POSIX_BASE_PATH(this) (((struct posix_private *)this->private)->base_path)