1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source3
Raghavendra Talur 857745655b support volfile fetch from multiple glusterd nodes
glusterfs:volfile_server option can be used in smb.conf to define where
to fetch the volfile from. Currently it supports only a single IP or a
hostname. The default is 'localhost'.

glfs_set_volfile_server() has been enhanced in gfapi to support
multiple invocations. A list is maintained in libgfapi which gets
appended on every invocation. When glfs_init is performed, libgfapi
would first try to fetch the volfile from glusterd on that node.
However, on failure to fetch the volfile, it would proceed to contact
glusterd on every node in the list until it gets the volfile or
exhausts the list. This enhacement was done in Gluster commit [2].
This commit is available in 3.6, 3.7, 3.8 versions of Gluster.

As we cannot have multiple lines having the same key of
glusterfs:volfile_server in a share definition in smb.conf, we propose
a scheme like this:

where value of glusterfs:volfile_server could be list of white space seperated
elements where each element could be unix+/path/to/socket/file or
[tcp+]IP|hostname|\[IPv6\][:port].

Note the restriction on naming a IPv6 host, it follows the same
restriction that is based on IPv6 naming in URL as per RFC 2732[1].

[1] http://www.ietf.org/rfc/rfc2732.txt
[2] 0c1d78f5c52c69268ec3a1d8d5fcb1a1bf15f243

Signed-off-by: Raghavendra Talur <rtalur@redhat.com>

Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Oct 14 17:09:24 CEST 2016 on sn-devel-144
2016-10-14 17:09:24 +02:00
..
auth Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
build
client s3: smbclient. Ensure we don't crash by freeing uninitialized *snapshots. 2016-08-22 19:10:22 +02:00
exports
groupdb Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
include Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
intl lang_tdb: don't leak lock_path or data_path onto talloc tos 2014-11-03 23:46:05 +01:00
lib Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
libads s3:libads: don't use MEMORY:ads_sasl_spnego_bind nor set "KRB5CCNAME" 2016-10-13 00:35:21 +02:00
libgpo werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source3/libgpo/ 2016-09-28 00:04:22 +02:00
libnet Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
librpc mit: make it possible to build with MIT kerberos and --picky-developer 2016-09-29 08:02:18 +02:00
libsmb cliquota: support setting file system quota via SMB2 2016-10-04 02:00:23 +02:00
locale s3: fix encryption help messages 2015-12-22 02:22:50 +01:00
locking smbd: ignore ctdb tombstone records in fetch_share_mode_unlocked_parser() 2016-08-08 14:26:24 +02:00
modules support volfile fetch from multiple glusterd nodes 2016-10-14 17:09:24 +02:00
nmbd Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
param s3-param: Add comment to call lp_load_global() after popt processing 2016-10-06 02:30:16 +02:00
passdb Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
printing Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry werror: replace WERR_OBJECT_PATH_INVALID with WERR_BAD_PATHNAME in source3/registry/reg_api_regf.c 2016-09-28 00:04:24 +02:00
rpc_client werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source3/rpc_client/ 2016-09-28 00:04:22 +02:00
rpc_server spoolss: Fix caching of printername->sharename 2016-10-13 13:48:52 +02:00
rpcclient s3-rpcclient: Fix initializing rpcclient 2016-10-06 02:30:17 +02:00
script s3-selftest: Add a substituions testcase 2016-10-07 15:52:36 +02:00
selftest s3-selftest: Add a substituions testcase 2016-10-07 15:52:36 +02:00
services Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
smbd smbd: Fix a comment 2016-10-14 05:31:07 +02:00
torture s3-lib: Remove unused function sprintf_append 2016-08-24 01:33:50 +02:00
utils s3-utils: Fix loading smb.conf in smbcquotas 2016-10-06 02:30:16 +02:00
web
winbindd winbindd: Remove now unused cache_methods 2016-10-11 23:59:17 +02:00
.clang_complete lib: Remove tdb_compat 2015-03-17 11:30:52 +01:00
.dmallocrc
.indent.pro
change-log
Doxyfile
mainpage.dox
smbadduser.in
wscript buildscripts: Fix the regression with --without-acl-support. 2016-08-08 21:27:46 +02:00
wscript_build lib: Remove poll_funcs 2016-10-05 00:06:22 +02:00
wscript_configure_system_ncurses Transition to waf 1.8: wrapped conf.check_cfg 2015-03-16 03:00:07 +01:00