The Samba-Bugzilla – Attachment 14457 Details for
Bug 13596
Durable Handle reconnect fails in cluster on GlusterFS because stat_ex.st_ex_blocks is not consistent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Hack with parametric option
dh-blocks.patch (text/plain), 975 bytes, created by
Ralph Böhme
on 2018-08-31 08:22:29 UTC
(
hide
)
Description:
Hack with parametric option
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2018-08-31 08:22:29 UTC
Size:
975 bytes
patch
obsolete
>From 80c99e52b42acb0d9a318a65cfa6c249ab84cb7a Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Fri, 20 Jul 2018 12:17:56 +0200 >Subject: [PATCH] HACK ALERT: s3/smbd: disable blocks check for durable handle > reconnects > >This adds a global option "smbd:dhrc check blocks = yes|no" (default: >yes). >--- > source3/smbd/durable.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c >index d79d6e2c989..54bedf9e37d 100644 >--- a/source3/smbd/durable.c >+++ b/source3/smbd/durable.c >@@ -517,7 +517,8 @@ static bool vfs_default_durable_reconnect_check_stat( > return false; > } > >- if (cookie_st->st_ex_blocks != fsp_st->st_ex_blocks) { >+ check_time = lp_parm_bool(-1, "smbd", "dhrc check blocks", true); >+ if (check_time && cookie_st->st_ex_blocks != fsp_st->st_ex_blocks) { > DEBUG(1, ("vfs_default_durable_reconnect (%s): " > "stat_ex.%s differs: " > "cookie:%llu != stat:%llu, " >-- >2.13.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13596
: 14457 |
15593