From b1c6a8507d59d16f9691652703be48f4539ca093 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 9 Mar 2009 22:37:57 -0700 Subject: feature to span the export directory across different mountpoints This feature enables exported directory containing different mountpoints. With, 'option span-devices ' 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 --- xlators/storage/posix/src/posix.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xlators/storage/posix/src/posix.h') 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) -- cgit