...adding linux-cifs to the loop...
On 8/1/25 11:35 AM, hede via samba wrote:> On Sun, 27 Jul 2025 18:45:17 +0200 hede via samba
> <samba at lists.samba.org> wrote:
>
>> Hi,
>>
>> SMB 2.1 and up seems to have a delayed mtime update. If writing to
>> a file on the client, the modification time (mtime) for this file
>> gets updated some time after closing. Typically ~1 second after
>> closing the file.
>
> It's a feature, not a bug. Somehow.
>
> It's the deferred close feature implementation within cifs.ko which
> delays the mtime update. With "closetimeo=0" the problem is gone.
no idea what the client is doing here, but from a server perspective,
with current Samba, the write will *immediately* update the mtime on
disk and report this updated value whenever it is queried. When the
handle is closed, the server doesn't update the mtime.
A network trace will tell you the truth about what's going on.
Cheers!
-slow
--
SerNet Samba Team Lead https://sernet.de/
Samba Team Member https://samba.org/
Samba Support and Dev https://samba.plus/services/
SAMBA+ packages https://samba.plus/products/samba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL:
<http://lists.samba.org/pipermail/samba/attachments/20250801/24ce3313/OpenPGP_signature.sig>