[Gluster-devel] [PATCH 2/2] vfs_glusterfs: Samba VFS module for glusterfs

Anand Avati avati at redhat.com
Wed Apr 24 09:52:25 UTC 2013


On Apr 24, 2013, at 2:46 AM, Amar Tumballi <amarts at redhat.com> wrote:

> On 04/24/2013 01:58 PM, Anand Avati wrote:
>> Implement a Samba VFS plugin for glusterfs based on gluster's gfapi.
>> This is a "bottom" vfs plugin (not something to be stacked on top of
>> another module), and translates (most) calls into closest actions
>> on gfapi.
>> 
>> Signed-off-by: Anand Avati <avati at redhat.com>
>> ---
>>  source3/Makefile.in             |    5 +
>>  source3/configure.in            |    9 +
>>  source3/modules/vfs_glusterfs.c | 1186 +++++++++++++++++++++++++++++++++++++++
>>  source3/modules/wscript_build   |    9 +
>>  source3/wscript                 |    6 +
>>  5 files changed, 1215 insertions(+), 0 deletions(-)
>>  create mode 100644 source3/modules/vfs_glusterfs.c
>> 
> 
> an idea of how to write smb.conf section, which would use glusterfs's vfs plugin would help me to test and verify the patch. Can you add a example section to examples/smb.conf.default file as comment?
> 
> Regards,
> Amar


Like this:

--snip--

[export_name]
vfs objects = glusterfs
glusterfs:volfile_server = MOUNT-SERVER # defaults to localhost
glusterfs:volume = VOLUME-NAME
path = / # specifying a path will export that subdirectory in the volume instead

--snip--

Note that you will need to install both glusterfs and glusterfs (with these 2 patches) from git.

Avati





More information about the Gluster-devel mailing list