Package Details: ksmbd-tools 3.4.6-2

Git Clone URL: https://aur.archlinux.org/ksmbd-tools.git (read-only, click to copy)
Package Base: ksmbd-tools
Description: Userspace tools for the ksmbd kernel SMB server
Upstream URL: https://github.com/cifsd-team/ksmbd-tools
Keywords: cifs cifsd ksmbd samba smb smbd
Licenses: GPL2
Provides: samba
Submitter: jpegxguy
Maintainer: jpegxguy
Last Packager: jpegxguy
Votes: 8
Popularity: 0.009847
First Submitted: 2021-04-21 15:56 (UTC)
Last Updated: 2022-10-13 07:39 (UTC)

Required by (60)

Sources (1)

Latest Comments

1 2 3 Next › Last »

enihcam commented on 2022-12-04 11:11 (UTC)

when will this package be adopted by official repository? it has been a year since KSMB is introduced in LTS kernel (5.15), and the next TLS (6.1) is coming.

jpegxguy commented on 2022-10-13 07:29 (UTC) (edited on 2022-10-13 07:40 (UTC) by jpegxguy)

Yeah don't worry I've seen the communication. The flags got added today, I just had work stuff.

database64128 commented on 2022-10-13 05:57 (UTC) (edited on 2022-10-13 06:21 (UTC) by database64128)

Please apply the following change to specify the correct config and bin paths.

diff --git a/PKGBUILD b/PKGBUILD
index 3e2901e..60cf82d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,13 +15,11 @@ sha256sums=("d7b27313c3e40c1272776d0bbc5672363dff0f1cad9286d6450f4907907685b9")
 build() {
        cd "${pkgname}-${pkgver}"
        ./autogen.sh
-       ./configure --prefix=/usr --with-rundir=/run
+       ./configure --prefix=/usr --with-rundir=/run --sbindir=/usr/bin --sysconfdir=/etc
        make
 }

 package() {
        cd "${pkgname}-${pkgver}"
        make DESTDIR="${pkgdir}" install
-
-       mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
 }

If you'd like me to commit the change, feel free to add me as a co-maintainer.

database64128 commented on 2022-10-12 06:45 (UTC)

ksmbd-tools /usr/etc/
ksmbd-tools /usr/etc/ksmbd/
ksmbd-tools /usr/etc/ksmbd/ksmbd.conf.example

database64128 commented on 2022-08-28 13:48 (UTC)

If anyone's seeing intermittent worker process crashes like:

ksmbd[910]: [ksmbd-worker/910]: ERROR: Recv() error Out of memory [-5]
ksmbd[909]: [ksmbd.mountd/909]: ERROR: WARNING: child process exited abnormally: 910
ksmbd[909]: [ksmbd.mountd/909]: ERROR: Fatal IPC error. Terminating. Check dmesg.
ksmbd[909]: [ksmbd.mountd/909]: ERROR: can't execute kill 910: No such process
ksmbd[909]: [ksmbd.mountd/909]: INFO: Exiting. Bye!

I have a simple fix to work around the issue by raising the netlink socket buffer size. The patch for 3.4.5 can be found at https://github.com/database64128/ksmbd-tools/tree/nl-skb-size-3.4.5.

The workaround is being discussed at https://github.com/cifsd-team/ksmbd-tools/pull/277. While it does seem to work, the ksmbd maintainer raised some concerns about memory usage on embedded devices, and is looking for a better solution.

jpegxguy commented on 2022-08-23 19:34 (UTC) (edited on 2022-08-23 19:34 (UTC) by jpegxguy)

@database64128

Both linux and linux-lts started providing KSMBD-MODULE a few weeks ago, after I pinged the maintainer in the Arch Matrix group.

You're the reason it got added? Nice

database64128 commented on 2022-08-23 17:42 (UTC)

@fow0ryl:

  1. Arch does not have a "recommended" kernel.
  2. Both linux and linux-lts started providing KSMBD-MODULE a few weeks ago, after I pinged the maintainer in the Arch Matrix group.
  3. You can use my meta package https://aur.archlinux.org/packages/ksmbd-module-meta to provide KSMBD-MODULE.

fow0ryl commented on 2022-08-23 17:35 (UTC)

Adding KSMBD-MODULE as dependency was a poor idea, for all users not using the latest kernel...

When using i.e. the recommended kernel 5.15.nn there is no "provides KSMBD-MODULE" . This requires changing to 5.19 kernel to fullfil the dependency :(

lucsansag commented on 2022-08-22 09:41 (UTC)

Great, it works now, thanks!

jpegxguy commented on 2022-08-22 00:44 (UTC)

Yes, it's because I didn't bump the pkgrel as I didn't think it would affect the final package, but in retrospect, it does