Skip to content

Commit daf7ecc

Browse files
committed
Change smbd.conf config for aio_fork to fsync-only asynchronous I/O
1 parent a6e7394 commit daf7ecc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/timecapsulesmb/assets/boot/samba4/common.d/50-runtime-staging.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,9 @@ $smbd_log_level_line
399399
# aio_fork uses one 128 KiB shared mapping per helper and rejects larger requests.
400400
smb2 max read = 131072
401401
smb2 max write = 131072
402-
aio read size = 1
403-
aio write size = 1
402+
# Keep reads and writes synchronous; aio_fork remains available for SMB2 flush/fsync.
403+
aio read size = 0
404+
aio write size = 0
404405
deadtime = 15
405406
max open files = 512
406407
max smbd processes = 8

tests/test_storage_runtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5327,8 +5327,8 @@ def test_common_generate_smb_conf_uses_single_payload_private_db_for_all_shares(
53275327
self.assertIn("smb2 max read = 131072", proc.stdout)
53285328
self.assertIn("smb2 max write = 131072", proc.stdout)
53295329
self.assertNotIn("smb2 max credits", proc.stdout)
5330-
self.assertIn("aio read size = 1", proc.stdout)
5331-
self.assertIn("aio write size = 1", proc.stdout)
5330+
self.assertIn("aio read size = 0", proc.stdout)
5331+
self.assertIn("aio write size = 0", proc.stdout)
53325332
self.assertEqual(
53335333
proc.stdout.count("vfs objects = catia fruit streams_xattr acl_xattr xattr_tdb aio_fork"),
53345334
2,

0 commit comments

Comments
 (0)