[SCM] Samba Shared Repository - branch master updated

2022-04-06 Thread Jeremy Allison
The branch, master has been updated
   via  a27bbfc8a96 streams_depot: Simplify stream_dir()
   via  d79194b2586 streams_depot: Only create the subdirectories with 
O_CREAT
   via  7ad4047b602 streams_depot: Pass base_sbuf to stream_smb_fname()
   via  f1765f91b01 s3: smbget: Fix auth_fn, order of //server/share 
parameters is mixed in prompt.
  from  39f70481bbd WHATSNEW: Document some CTDB changes

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


- Log -
commit a27bbfc8a961968976649aa4db71b37a0db98b38
Author: Volker Lendecke 
Date:   Tue Apr 5 15:32:08 2022 +0200

streams_depot: Simplify stream_dir()

The only place where we could have entered the mark_valid() code path
is via openat(). In openat(":stream") with O_CREAT fsp->base_fsp() is
fully opened from within create_file_unixpath(). Change
streams_depot_openat() to call the FSETXATTR from mark_file_valid()
directly. This means we don't need the expensive synthetic_pathref()
call from stream_dir() anymore.

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

Autobuild-User(master): Jeremy Allison 
Autobuild-Date(master): Wed Apr  6 17:09:59 UTC 2022 on sn-devel-184

commit d79194b2586c3435f11d650d8b4694b928dbf525
Author: Volker Lendecke 
Date:   Tue Apr 5 16:58:41 2022 +0200

streams_depot: Only create the subdirectories with O_CREAT

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 7ad4047b602a977e3df126b36d92ab344d95d110
Author: Volker Lendecke 
Date:   Tue Apr 5 16:08:43 2022 +0200

streams_depot: Pass base_sbuf to stream_smb_fname()

In streams_depot_openat() we're sure to have a valid base_fsp with a
valid stat around. We don't need the additional SMB_VFS_NEXT_STAT() in
stream_dir() in this case.

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit f1765f91b015d64122e74c01c7c6d0984cc7af87
Author: Jeremy Allison 
Date:   Tue Apr 5 13:24:19 2022 -0700

s3: smbget: Fix auth_fn, order of //server/share parameters is mixed in 
prompt.

Found by 

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14831

Signed-off-by: Jeremy Allison 
Reviewed-by: Andreas Schneider 

---

Summary of changes:
 source3/modules/vfs_streams_depot.c | 103 +---
 source3/utils/smbget.c  |   2 +-
 2 files changed, 50 insertions(+), 55 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_streams_depot.c 
b/source3/modules/vfs_streams_depot.c
index cc2d25a36f6..107543f6bbc 100644
--- a/source3/modules/vfs_streams_depot.c
+++ b/source3/modules/vfs_streams_depot.c
@@ -110,25 +110,6 @@ static bool file_is_valid(vfs_handle_struct *handle,
return true;
 }
 
-static bool mark_file_valid(vfs_handle_struct *handle,
-   const struct smb_filename *smb_fname)
-{
-   char buf = '1';
-   int ret;
-
-   DEBUG(10, ("marking file %s as valid\n", smb_fname->base_name));
-
-   ret = SMB_VFS_FSETXATTR(smb_fname->fsp, SAMBA_XATTR_MARKER,
-   , sizeof(buf), 0);
-
-   if (ret == -1) {
-   DEBUG(10, ("SETXATTR failed: %s\n", strerror(errno)));
-   return false;
-   }
-
-   return true;
-}
-
 /*
  * Return the root of the stream directory. Can be
  * external to the share definition but by default
@@ -183,8 +164,6 @@ static char *stream_dir(vfs_handle_struct *handle,
char *rootdir = NULL;
struct smb_filename *rootdir_fname = NULL;
struct smb_filename *tmp_fname = NULL;
-   struct smb_filename *tmpref = NULL;
-   const struct smb_filename *pathref = NULL;
int ret;
 
check_valid = lp_parm_bool(SNUM(handle->conn),
@@ -424,27 +403,7 @@ static char *stream_dir(vfs_handle_struct *handle,
if ((ret != 0) && (errno != EEXIST)) {
goto fail;
}
-   pathref = smb_fname;
-   if (smb_fname->fsp == NULL) {
-   NTSTATUS status;
-   status = synthetic_pathref(talloc_tos(),
-   handle->conn->cwd_fsp,
-   smb_fname->base_name,
-   NULL,
-   NULL,
-   smb_fname->twrp,
-   smb_fname->flags,
-   );
-   if (!NT_STATUS_IS_OK(status)) {
-   goto fail;
-   }
-   pathref = tmpref;
-   }
-   if (check_valid && !mark_file_valid(handle, pathref)) {
-   goto fail;
-   }
 
-   TALLOC_FREE(tmpref);
TALLOC_FREE(rootdir_fname);
TALLOC_FREE(rootdir);

[SCM] Samba Website Repository - branch master updated

2022-04-06 Thread Björn Jacke
The branch, master has been updated
   via  0f75f0b add sdc logo and link in box_beyond_samba.html
  from  57f83fe box_beyond_samba: improve spacing

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


- Log -
commit 0f75f0b32ef89bc72cdc84bb62030319b6185c83
Author: Björn Jacke 
Date:   Wed Apr 6 12:24:54 2022 +0200

add sdc logo and link in box_beyond_samba.html

---

Summary of changes:
 box_beyond_samba.html |   4 ++--
 images/sdc-logo.png   | Bin 0 -> 8641 bytes
 2 files changed, 2 insertions(+), 2 deletions(-)
 create mode 100644 images/sdc-logo.png


Changeset truncated at 500 lines:

diff --git a/box_beyond_samba.html b/box_beyond_samba.html
index 716a1af..cb9d31f 100644
--- a/box_beyond_samba.html
+++ b/box_beyond_samba.html
@@ -10,13 +10,13 @@
 
 
 
-https://www.sambaxp.org; target="_blank">
+https://www.sambaxp.org/; target="_blank">
 by
 https://www.sernet.de/en/; target="_blank">SerNet
 
 
 
-https://www.snia.org/events/storage-developer; target="_blank">SDC
+https://storagedeveloper.org/; target="_blank">
 by
 https://www.snia.org; target="_blank">SNIA
 
diff --git a/images/sdc-logo.png b/images/sdc-logo.png
new file mode 100644
index 000..c96eb92
Binary files /dev/null and b/images/sdc-logo.png differ


-- 
Samba Website Repository



[SCM] Samba Shared Repository - branch master updated

2022-04-06 Thread Amitay Isaacs
The branch, master has been updated
   via  39f70481bbd WHATSNEW: Document some CTDB changes
   via  8deec3bc67c ctdb-scripts: Drop unused ctdbd_wrapper
   via  a1e78cc3726 ctdb-scripts: Drop uses of ctdbd_wrapper
   via  aca59722338 ctdb-scripts: Remove failsafe that drops all IPs on 
failed shutdown
   via  6fb08a65804 ctdb-daemon: Don't release all public IPs during 
shutdown sequence
   via  cb438ecfd48 ctdb-scripts: Drop all public IPs in the "shutdown" 
event
   via  3caddaafa0f ctdb-config: Drop CTDB_STARTUP_TIMEOUT
   via  208034ecfe7 ctdb-doc: Update documentation for tunables 
configuration
   via  0902553d154 ctdb-scripts: No longer load tunables via 
00.ctdb.script setup event
   via  f49446cb1e8 ctdb-daemon: Load tunables from ctdb.tunables
   via  a509ee059ef ctdb-daemon: New function ctdb_tunables_load()
   via  b14f2a205d2 ctdb-tests: Add unit tests for tunables code
   via  381134939bd ctdb-tests: Add function test_case(), tweak unit test 
header format
   via  c413838f796 ctdb-tests: Strip trailing newlines from expected 
result output
   via  5fa0c86b614 ctdb-tests: Reformat script
   via  bcd66e17eec ctdb-common: Add function ctdb_tunable_load_file()
   via  93824b8c331 packaging: move CTDB service file to top-level
   via  2f6b31788bb ctdb-packaging: Move RPM spec file to examples directory
  from  63bbdbae19d gpo: Improve Certificate Auto Enroll Debug messages

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


- Log -
commit 39f70481bbd87e764775f66948ecfdace3722d7a
Author: Martin Schwenke 
Date:   Wed Mar 30 11:08:45 2022 +1100

WHATSNEW: Document some CTDB changes

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

Autobuild-User(master): Amitay Isaacs 
Autobuild-Date(master): Wed Apr  6 07:32:04 UTC 2022 on sn-devel-184

commit 8deec3bc67c2831ce63ab4812b6f29baab711b50
Author: Martin Schwenke 
Date:   Tue Feb 1 08:35:37 2022 +1100

ctdb-scripts: Drop unused ctdbd_wrapper

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit a1e78cc372618159e5c95665b827936280572b61
Author: Martin Schwenke 
Date:   Tue Feb 1 08:28:47 2022 +1100

ctdb-scripts: Drop uses of ctdbd_wrapper

The only value this now provides is use of a notification script to
log when start/stop are called.  This was used for debugging strange
start/stop failures, which have not been recently seen.  Also, systemd
does a good job of logging start/stop.

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit aca59722338aacffc37bdb5d8c0603f1bb0c3cb4
Author: Martin Schwenke 
Date:   Mon Jan 31 21:55:17 2022 +1100

ctdb-scripts: Remove failsafe that drops all IPs on failed shutdown

IPs are dropped in the shutdown event.

If a watchdog is necessary to ensure public IPs aren't on interfaces
when CTDB isn't running, then see ctdb-crash-cleanup.sh.

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit 6fb08a6580488f961c1d6bcd4b1b9bc3faaf621b
Author: Martin Schwenke 
Date:   Mon Sep 11 10:59:42 2017 +1000

ctdb-daemon: Don't release all public IPs during shutdown sequence

This further untangles public IP handling from the main daemon.

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit cb438ecfd487c235e852fbdf85526fdc106868f3
Author: Martin Schwenke 
Date:   Mon Sep 11 10:57:27 2017 +1000

ctdb-scripts: Drop all public IPs in the "shutdown" event

This is functionally the same as ctdb_release_all_ips().

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit 3caddaafa0f8e3cc162df1b8a58281326f720249
Author: Martin Schwenke 
Date:   Mon Jan 31 19:43:11 2022 +1100

ctdb-config: Drop CTDB_STARTUP_TIMEOUT

This was added to be able to notice startup failures when unknown
tunables were present in the configuration.  Tunables are now set by
the daemon, so this is no longer necessary.

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit 208034ecfe758e81df72b80b623cf3fa6814b64e
Author: Martin Schwenke 
Date:   Wed Mar 30 10:49:15 2022 +1100

ctdb-doc: Update documentation for tunables configuration

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit 0902553d1546b418e27cb14ae5146a8396accd09
Author: Martin Schwenke 
Date:   Mon Jan 31 19:30:30 2022 +1100

ctdb-scripts: No longer load tunables via 00.ctdb.script setup event

Drop related tests.

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit f49446cb1e8dba9cf9c1eff073c394049a0a0cf3
Author: Martin Schwenke 
Date:   Mon Jan 31 14:47:11 2022 +1100

ctdb-daemon: Load tunables from ctdb.tunables

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit