<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/ksmbd-tools/files/ksmbd.init, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git-03.infra.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/'/>
<updated>2025-12-05T21:56:26Z</updated>
<entry>
<title>ksmbd-tools: bump to 3.5.6</title>
<updated>2025-12-05T21:56:26Z</updated>
<author>
<name>Andrea Pesaresi</name>
</author>
<published>2025-12-05T19:49:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=0875537051c8a66db856b70a630873d9a9cb8eaa'/>
<id>urn:sha1:0875537051c8a66db856b70a630873d9a9cb8eaa</id>
<content type='text'>
Major changes are:

- Increase max ip connections(8-&gt;32) and max connections(128-&gt;256).

- Unset "guest_ok = yes" for ipc share by default.

- add new UCI option "allow_guest_ipc" to section (default disabled)

Signed-off-by: Andrea Pesaresi &lt;andreapesaresi82@gmail.com&gt;
</content>
</entry>
<entry>
<title>ksmbd-tools: adjust smb2 max read/write/trans and cache</title>
<updated>2024-12-10T00:13:34Z</updated>
<author>
<name>Andrea Pesaresi</name>
</author>
<published>2024-12-08T13:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=0ca4794564eb7294832636cf46ade680372edebf'/>
<id>urn:sha1:0ca4794564eb7294832636cf46ade680372edebf</id>
<content type='text'>
Now for all devices with every size of RAM it is set to:
`smb2 max read = 64K`
`smb2 max write = 64K`
`smb2 max trans = 64K`

Instead of fixed value to 64K is better to check RAM size and adjust to:

32 ~ 64MB RAM, set the value to 64K
64 ~ 128MB, set it to 128KB
128 ~ 256MB, set it to 1MB
More than 256MB leave default size to 4MB

With 64MB and 128MB is better also to disable the read/write cache
`cache read buffers = no`
`cache write buffers = no`

Signed-off-by: Andrea Pesaresi &lt;andreapesaresi82@gmail.com&gt;
</content>
</entry>
<entry>
<title>ksmbd-tools: use ksmbd.conf</title>
<updated>2022-11-06T20:39:03Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2022-11-04T19:45:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=c9c5a3637feb623cfd0d623ea05f0b98e9784a07'/>
<id>urn:sha1:c9c5a3637feb623cfd0d623ea05f0b98e9784a07</id>
<content type='text'>
smb.conf is deprecated.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>ksmbd-tools: append config from /var/run/config/ for runtime shares</title>
<updated>2022-08-11T21:05:45Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2022-08-10T12:23:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=c9cba619898d7bf87fc8277e57b473923d912c32'/>
<id>urn:sha1:c9cba619898d7bf87fc8277e57b473923d912c32</id>
<content type='text'>
Dynamically created shares shouldn't be stored in the /etc/config/
because of:
1. Flash wearing
2. Risk of inconsistent state on reboots

With this change all automation/hotplug.d scripts can store runtime in
the /var/run/config/samba. It's useful e.g. for USB drives that user
wants to be automatically shared.

Also: automated scripts should never call "uci [foo] commit" as that
could flush incomplete config. This problem also gets solved.

Identical feature was added to samba36 in the OpenWrt commit
5a59e2c059866 ("samba36: append config from /var/run/config/ for runtime
shares") but wasn't ported to ksmbd until now.

Cc: Jo-Philipp Wich &lt;jo@mein.io&gt;
Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>ksmbd-tools: Fix ksmbd service is semi-killed at system startup</title>
<updated>2021-11-29T09:24:09Z</updated>
<author>
<name>Georgi Valkov</name>
</author>
<published>2021-11-28T17:22:56Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=4af04cdc05af1e78dab310550fae5bae21d51c8c'/>
<id>urn:sha1:4af04cdc05af1e78dab310550fae5bae21d51c8c</id>
<content type='text'>
The configuration for the ksmbd service is auto-generated when
the OpenWRT configuration changes, and also during startup,
hence ksmbd.init has to reload the kernel module. It does that by
calling kill_server, which does not perform cleanup. This results
in ksmbd being killed but not restarted properly during boot.
This patch resolves the issue by using stop_service, which performs
proper cleanup.

https://forum.openwrt.org/t/ksmbd-samba3-4-alternative-ex-cifsd-smbd-package-support-thread/51695/68

Signed-off-by: Georgi Valkov &lt;gvalkov@abv.bg&gt;
</content>
</entry>
<entry>
<title>ksmbd: use hostname only as name</title>
<updated>2021-08-15T15:07:07Z</updated>
<author>
<name>Fritz D. Ansel</name>
</author>
<published>2021-08-15T15:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=47e87e1b75dfd5286a7e87cbfee25db3d9c78f8a'/>
<id>urn:sha1:47e87e1b75dfd5286a7e87cbfee25db3d9c78f8a</id>
<content type='text'>
even if a fqdn (with domain) is set by user

Signed-off-by: Fritz D. Ansel &lt;fdansel@yandex.ru&gt;
</content>
</entry>
<entry>
<title>ksmbd: set stoplevel</title>
<updated>2021-08-15T11:56:33Z</updated>
<author>
<name>Fritz D. Ansel</name>
</author>
<published>2021-08-12T05:01:30Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=28ed2b82c5f6f73f2e41357b39a89714959d2a82'/>
<id>urn:sha1:28ed2b82c5f6f73f2e41357b39a89714959d2a82</id>
<content type='text'>
to allow graceful stop of the daemon

Signed-off-by: Fritz D. Ansel &lt;fdansel@yandex.ru&gt;
</content>
</entry>
<entry>
<title>ksmbd-tools: Add a mDNS TXT record for the ksmbd service</title>
<updated>2021-04-07T07:46:54Z</updated>
<author>
<name>Kirill Nikolaev</name>
</author>
<published>2021-04-05T23:03:18Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=272b0a5c1873a34f6609e7af38395cea3f02bda5'/>
<id>urn:sha1:272b0a5c1873a34f6609e7af38395cea3f02bda5</id>
<content type='text'>
MacOS ignores Bonjour services for which TXT records are not returned. This changes forces umdns service to return a TXT record (`daemon=ksmbd`) for the ksmbd service. The exact content is unimportant and to the best of my knowledge nothing reads the `daemon` tag.

Symptoms of the problem (which are also debugging steps):
* Finder refuses to open the OpenWRT "computer" in the Network list.
* Discovery.app (Bonjour Browser) lists the _ssh._tcp service, but the submenu for it doesn't unfold and no address is shown.
* `dns-sd -L OpenWrt _smb._tcp` doesn't return any address.

Signed-off-by: Kirill Nikolaev &lt;cyril7@gmail.com&gt;
</content>
</entry>
<entry>
<title>ksmbd-tools: fix #13758</title>
<updated>2021-01-26T11:40:08Z</updated>
<author>
<name>Andy Walsh</name>
</author>
<published>2021-01-26T11:40:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=4c373ec7206913c3f5acdade81189fa0182d4bc8'/>
<id>urn:sha1:4c373ec7206913c3f5acdade81189fa0182d4bc8</id>
<content type='text'>
* fix for possible exploit #13758
* sanetize all external template/config inputs
* fix some shellcheck warnings

Signed-off-by: Andy Walsh &lt;andy.walsh44+github@gmail.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: update to 3.1.3, ksmbd-tools: update to 3.2.1, add smb1 support</title>
<updated>2020-02-09T22:25:56Z</updated>
<author>
<name>Andy Walsh</name>
</author>
<published>2020-02-09T22:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=e60ef2c820b11c4c3cdb84cb72b02c962d9ed3fe'/>
<id>urn:sha1:e60ef2c820b11c4c3cdb84cb72b02c962d9ed3fe</id>
<content type='text'>
* ksmbd: update to 3.1.3
* ksmbd-tools: update to 3.2.1
* add new package build option "KSMBD_SMB_INSECURE_SERVER"
* enable smb1 support to kmod by default
* add new UCI option "allow_legacy_protocols" to section [globals]

* ksmbd: release 3.1.3 version
* ksmbd: lock SMB2_QUERY_INFO_HE request with read lock
* ksmbd: fix potential racy between query_dir and ksmbd_vfs_empty_dir
* ksmbd: fix racy issue between deleting file and checking empty directory
* ksmbd: don't register interface which are member of bridge
* ksmbd: SO_REUSEADDR is no property of tcp_setsockopt
* ksmbd: release 3.1.2 version
* ksmbd: fix read caching buffer size as max_read_size
* ksmbd: fix the infinite loop of handling FSCTL_QUERY_ALLOCATED_RANGES
* ksmbd: use compounding for smb2 flush
* ksmbd: downgrade error message to debug in get_file_all_info
* ksmbd: rename usmbd to ksmbd.mountd in trvis-ci
* ksmbd: release 3.1.1 version
* ksmbd: does not work if ipv6 module is not loaded or compiled in
* ksmbd: capsule ifdef CONFIG_SMB_INSECURE_SERVER with smb1 codes
* ksmbd: capsule ifdef CONFIG_SMB_INSECURE_SERVER with smb1 codes
* ksmbd: update README file

* ksmbd-tools: release 3.2.1 version
* ksmbd-tools: revert "remove glib2.0 dependancy" patch
* ksmbd-tools: release 3.2.0 version
* ksmbd-tools: update how to restart ksmbd in README file
* Revert "ksmbd-tools: disable tbuf and rbuf caching by default"
* ksmbd-tools: disable tbuf and rbuf caching by default
* ksmbd-tools: replace usmbd prefix with ksmbd prefix
* ksmbd-tools: update README file
* ksmbd-tools: fix warning ignoring return value of 'fread'
* ksmbd-tools: downgrade unsupported command print to debug
* ksmbd-tools: remove GLIB_LIBS in Makefiles
* ksmbd-tools: rename usmbd, smbuseradd, smbshareadd to ksmbd.mountd, ksmbd.adduser and ksmbd.addshare
* ksmbd-tools: fix null pointer dereference in _list_remove
* ksmbd-tools: fix the sanity check fails depending on the password length
* ksmbd-tools: fix build error(not found glib.h)
* ksmbd-tools: remove glib-2.0 dependancy
* ksmbd-tools: update README to add libglib2.0-dev for Ubuntu preprequisite packages

Signed-off-by: Andy Walsh &lt;andy.walsh44+github@gmail.com&gt;
</content>
</entry>
</feed>
