@linkinjeon and @pesa1234
Just compiled and tested the patch and I'm glad to inform you that the issue is resolved. Although I didn't have enough time to test it more extensively. Qbittorrent now can create/remove directories on NAS without any issue.
Tested with f2fs, exfat and ntfs file systems on two routers.
@sppmaster this patch was merged into linux-6.13-rc7. and it is released. And then this patch is propagated to the 6.6 stable kernel. It will be applied to 6.6.71 kernel, which will take about a week.
Had a single ksmbd crash in 24.10.0-rc6 while streaming a movie across my network to kodi on tv. Service restarted and it was fine after but never had this happen before so maybe an anamoly or will resolve in a later kernel update:
Sat Jan 25 11:04:51 2025 daemon.notice ksmbd: Stopping Ksmbd userspace service.
Sat Jan 25 11:04:51 2025 daemon.err rmmod: unloading the module failed
Sat Jan 25 11:04:51 2025 daemon.info ksmbd: triggering kill_server
Sat Jan 25 11:04:51 2025 kern.info kernel: [138295.232829] ksmbd: kill command received
Sat Jan 25 11:04:53 2025 daemon.notice ksmbd: Starting Ksmbd userspace service.
Check Kodi network buffers and set them accordingly considering your TV (TV Box) RAM.
I use a buffer size big enough to allow at least 30 seconds playback if the network connection is interrupted for some reason.
Hi,
Can we tune something for low power routers to match Samba4 in performance?
I'm using Xiaomi mir3g v1 (OpenWrt 24.10.0) with usb disk,
Ubuntu 24.10 and Windows 11 as clients
Samba4: ~28/24MB/s R/W
Samba4: ~37/24MB/s R/W (ENABLE_EXTRA_TUNING and DISABLE_ASYNC_IO are enabled)
Ksmdb: ~27/24MB/s R/W
I don't know why it is the case. I've added that info a while ago to the ksmbd wiki exactly for that reason.
To access a shared storage over the LAN using a username and password you have to use ksmbd.adduser from SSH. A /etc/ksmbd/ksmbdpwd.db file is created.
root@OpenWrt:~# ksmbd.adduser --help
Usage: ksmbd.adduser [-v] [-P PWDDB] [-c CONF] [-a | -u | -d] [-p PWD] USER
If neither `-a', `-u', nor `-d' is given, either add or update USER.
USER must be UTF-8 and [1, 48) bytes.
USER cannot contain colon (`:').
-a, --add add USER to user database
-u, --update update USER in user database
-d, --delete delete USER from user database
-p, --password=PWD use PWD as user password instead of prompting;
PWD must be UTF-8 and [0, 129) bytes
-P, --pwddb=PWDDB use PWDDB as user database instead of
`/etc/ksmbd/ksmbdpwd.db'
-C, --config=CONF use CONF as configuration file instead of
`/etc/ksmbd/ksmbd.conf'
-v, --verbose be verbose
-V, --version output version information and exit
-h, --help display this help and exit
See ksmbd.adduser(8) for more details.
Then you still need to make the appropriate changes to the ksmbd settings - allowed users.
Luci example.