[SCM] Samba Shared Repository - branch master updated

2017-07-11 Thread Günther Deschner
The branch, master has been updated
   via  259e170 vfs_fruit: add fruit:model =  parametric option
  from  539714e ctdb-scripts: Fix inline comments in 10.interface

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 259e1706e3206b215e136ea9d5beef4c9e3fcdee
Author: Günther Deschner 
Date:   Wed Jun 28 18:10:28 2017 +0200

vfs_fruit: add fruit:model =  parametric option

fruit:model = iMac
fruit:model = MacBook
fruit:model = MacPro
fruit:model = Xserve

will all display a different icon inside Finder.

Formerly, we used "Samba" which resulted in a "?" icon in Finder, with
the new default "MacSamba" we appear with a computer box icon at least.

Guenther

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12840

Signed-off-by: Guenther Deschner 
Signed-off-by: Ralph Boehme 
Reviewed-by: Ralph Boehme 

Autobuild-User(master): Günther Deschner 
Autobuild-Date(master): Wed Jul 12 03:17:57 CEST 2017 on sn-devel-144

---

Summary of changes:
 docs-xml/manpages/vfs_fruit.8.xml | 9 +
 source3/modules/vfs_fruit.c   | 6 +-
 source4/torture/vfs/fruit.c   | 8 +++-
 3 files changed, 21 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages/vfs_fruit.8.xml 
b/docs-xml/manpages/vfs_fruit.8.xml
index a86dec6..7097aac 100644
--- a/docs-xml/manpages/vfs_fruit.8.xml
+++ b/docs-xml/manpages/vfs_fruit.8.xml
@@ -160,6 +160,15 @@

  
 
+ 
+   fruit:model = MacSamba
+   
+ This option defines the model string inside the AAPL
+ extension and will determine the appearance of the icon 
representing the
+ Samba server in the Finder window.
+ The default is MacSamba.
+   
+ 

 
 
diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
index b49ee1c..3482d4e 100644
--- a/source3/modules/vfs_fruit.c
+++ b/source3/modules/vfs_fruit.c
@@ -138,6 +138,7 @@ struct fruit_config_data {
bool veto_appledouble;
bool posix_rename;
bool aapl_zero_file_id;
+   const char *model;
 
/*
 * Additional options, all enabled by default,
@@ -1628,6 +1629,9 @@ static int init_fruit_config(vfs_handle_struct *handle)
config->readdir_attr_max_access = lp_parm_bool(
SNUM(handle->conn), "readdir_attr", "aapl_max_access", true);
 
+   config->model = lp_parm_const_string(
+   -1, FRUIT_PARAM_TYPE_NAME, "model", "MacSamba");
+
SMB_VFS_HANDLE_SET_DATA(handle, config,
NULL, struct fruit_config_data,
return -1);
@@ -2272,7 +2276,7 @@ static NTSTATUS check_aapl(vfs_handle_struct *handle,
if (req_bitmap & SMB2_CRTCTX_AAPL_MODEL_INFO) {
ok = convert_string_talloc(req,
   CH_UNIX, CH_UTF16LE,
-  "Samba", strlen("Samba"),
+  config->model, strlen(config->model),
   , );
if (!ok) {
return NT_STATUS_UNSUCCESSFUL;
diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c
index 2ab153a..c78c906 100644
--- a/source4/torture/vfs/fruit.c
+++ b/source4/torture/vfs/fruit.c
@@ -1252,7 +1252,13 @@ static bool enable_aapl(struct torture_context *tctx,
torture_assert_goto(tctx, aapl != NULL, ret, done, "missing AAPL 
context");
 
if (!is_osx_server) {
-   torture_assert_goto(tctx, aapl->data.length == 50, ret, done, 
"bad AAPL size");
+   size_t exptected_aapl_ctx_size;
+
+   exptected_aapl_ctx_size = strlen("MacSamba") * 2 + 40;
+
+   torture_assert_goto(
+   tctx, aapl->data.length == exptected_aapl_ctx_size,
+   ret, done, "bad AAPL size");
}
 
aapl_server_caps = BVAL(aapl->data.data, 16);


-- 
Samba Shared Repository



[SCM] Samba Shared Repository - branch master updated

2017-07-11 Thread Amitay Isaacs
The branch, master has been updated
   via  539714e ctdb-scripts: Fix inline comments in 10.interface
  from  6746627 s3/vfs: rename SMB_VFS_STRICT_LOCK to 
SMB_VFS_STRICT_LOCK_CHECK

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 539714ef19b64187b8b540b35ab677a2f398b3cc
Author: Anoop C S 
Date:   Wed Jul 5 19:07:04 2017 +0530

ctdb-scripts: Fix inline comments in 10.interface

Signed-off-by: Anoop C S 
Reviewed-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

Autobuild-User(master): Amitay Isaacs 
Autobuild-Date(master): Tue Jul 11 11:45:04 CEST 2017 on sn-devel-144

---

Summary of changes:
 ctdb/config/events.d/10.interface | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/ctdb/config/events.d/10.interface 
b/ctdb/config/events.d/10.interface
index 97227e8..f2d44da 100755
--- a/ctdb/config/events.d/10.interface
+++ b/ctdb/config/events.d/10.interface
@@ -38,7 +38,7 @@ get_all_interfaces ()
 # That is, for all but the 1st line, get the 1st field.
 ctdb_ifaces=$($CTDB -X ifaces | sed -e '1d' -e 's@^|@@' -e 's@|.*@@')
 
-# Add $ctdb_interfaces and uniquify
+# Add $ctdb_ifaces and make $all_interfaces unique
 # Use word splitting to squash whitespace
 # shellcheck disable=SC2086
 all_interfaces=$(echo $all_interfaces $ctdb_ifaces | tr ' ' '\n' | sort -u)


-- 
Samba Shared Repository