Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Add cifsd, a new alternative SMB server.
@ 2020-10-16 16:18 CMB
  2020-10-16 17:39 ` Anachron
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: CMB @ 2020-10-16 16:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

There is a new pull request by CMB against master on the void-packages repository

https://github.com/CMB/void-packages cifsd
https://github.com/void-linux/void-packages/pull/25659

Add cifsd, a new alternative SMB server.
None

A patch file from https://github.com/void-linux/void-packages/pull/25659.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cifsd-25659.patch --]
[-- Type: text/x-diff, Size: 3620 bytes --]

From 802c36bceea89e4cab7e3b5d5ba0ef49927fe6bc Mon Sep 17 00:00:00 2001
From: Christopher Brannon <chris@the-brannons.com>
Date: Fri, 16 Oct 2020 01:16:34 -0700
Subject: [PATCH 1/2] New package: cifsd-dkms-3.2.5

---
 srcpkgs/cifsd-dkms/files/dkms.conf |  6 ++++++
 srcpkgs/cifsd-dkms/template        | 24 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 srcpkgs/cifsd-dkms/files/dkms.conf
 create mode 100644 srcpkgs/cifsd-dkms/template

diff --git a/srcpkgs/cifsd-dkms/files/dkms.conf b/srcpkgs/cifsd-dkms/files/dkms.conf
new file mode 100644
index 00000000000..d299b7a605f
--- /dev/null
+++ b/srcpkgs/cifsd-dkms/files/dkms.conf
@@ -0,0 +1,6 @@
+PACKAGE_VERSION=@VERSION@
+PACKAGE_NAME="cifsd"
+AUTOINSTALL="yes"
+MAKE[0]="'make' @MAKEJOBS@ KDIR=/lib/modules/${kernelver}/build"
+BUILT_MODULE_NAME[0]="ksmbd"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/fs/cifsd"
diff --git a/srcpkgs/cifsd-dkms/template b/srcpkgs/cifsd-dkms/template
new file mode 100644
index 00000000000..daef8c5f782
--- /dev/null
+++ b/srcpkgs/cifsd-dkms/template
@@ -0,0 +1,24 @@
+# Template file for 'cifsd-dkms'
+pkgname=cifsd-dkms
+_pkgname="${pkgname/-dkms}"
+version=3.2.5
+revision=1
+wrksrc="${_pkgname}-${version}"
+short_desc="Opensource In-kernel CIFS/SMB3 server"
+maintainer="Christopher Brannon <chris@the-brannons.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/cifsd-team/cifsd"
+distfiles="https://github.com/cifsd-team/${_pkgname}/archive/${version}.tar.gz"
+checksum=b93a068f6dc2b2040c8cebcb67f6d8c3a1c5c7c5032269a48579ccba996e6be7
+
+dkms_modules="cifsd ${version}"
+depends="dkms"
+
+do_install() {
+	vmkdir "usr/src/${_pkgname}-${version}"
+	cp -r * "$DESTDIR/usr/src/${_pkgname}-${version}"
+	vcopy "${FILESDIR}/dkms.conf" "usr/src/${_pkgname}-${version}"
+	vsed -e "s;@MAKEJOBS@;${makejobs};" \
+		-e "s;@VERSION@;${version}-${revision};" \
+		-i "${DESTDIR}/usr/src/${_pkgname}-${version}/dkms.conf"
+}

From 515e3fc2345084b9a65ca0440228162b7366c395 Mon Sep 17 00:00:00 2001
From: Christopher Brannon <chris@the-brannons.com>
Date: Fri, 16 Oct 2020 01:39:44 -0700
Subject: [PATCH 2/2] New package: ksmbd-tools-3.2.5

---
 srcpkgs/ksmbd-tools/files/ksmbd/run |  2 ++
 srcpkgs/ksmbd-tools/template        | 26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100755 srcpkgs/ksmbd-tools/files/ksmbd/run
 create mode 100644 srcpkgs/ksmbd-tools/template

diff --git a/srcpkgs/ksmbd-tools/files/ksmbd/run b/srcpkgs/ksmbd-tools/files/ksmbd/run
new file mode 100755
index 00000000000..949bbb25e4f
--- /dev/null
+++ b/srcpkgs/ksmbd-tools/files/ksmbd/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ksmbd.mountd --nodetach
diff --git a/srcpkgs/ksmbd-tools/template b/srcpkgs/ksmbd-tools/template
new file mode 100644
index 00000000000..d2f7319b239
--- /dev/null
+++ b/srcpkgs/ksmbd-tools/template
@@ -0,0 +1,26 @@
+# Template file for 'ksmbd-tools'
+pkgname=ksmbd-tools
+version=3.2.5
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="glib-devel libnl3-devel"
+depends="cifsd-dkms>=${version}_1"
+short_desc="User-space tools for cifsd"
+maintainer="Christopher Brannon <chris@the-brannons.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/cifsd-team/ksmbd-tools"
+distfiles="https://github.com/cifsd-team/${pkgname}/archive/${version}.tar.gz"
+checksum=b9948f12a317863b128008de2d12169825171d3b9fceca06caa4f1d15a795bb9
+
+pre_configure() {
+	./autogen.sh
+}
+
+do_install() {
+	for i in AUTHORS Documentation/configuration.txt PFIF.txt README ; do
+		vdoc "$i"
+	done
+	vsconf smb.conf.example
+	vsv ksmbd
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
@ 2020-10-16 17:39 ` Anachron
  2020-10-16 18:21 ` CMB
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2020-10-16 17:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-710291024

Comment:
This looks promising, is this tested with v3 shares from a windows host?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
  2020-10-16 17:39 ` Anachron
@ 2020-10-16 18:21 ` CMB
  2020-10-16 20:06 ` Anachron
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CMB @ 2020-10-16 18:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

New comment by CMB on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-710369311

Comment:
> This looks promising, is this tested with v3 shares from a windows host?

It's only the server side (I.E., an smbd replacement).  I've connected
to it with Linux boxes and an iPhone.  The Linux clients used the
in-kernel CIFS client.  Everything worked out of the box.  I have no
Windows clients with which to test.

I went looking for this because I wanted to be able to mount shares with
my iPhone.  You can do that with Samba 3's smbd, though you have to edit
the config file and set "max protocol = SMB2".  Otherwise it just fails
cryptically, with no indication of why.  Also with Samba 3 I had to
force mounting with SMB1 (passing -o vers=1.0 to mount), on at least one
of my Linux clients.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
  2020-10-16 17:39 ` Anachron
  2020-10-16 18:21 ` CMB
@ 2020-10-16 20:06 ` Anachron
  2020-10-30 22:57 ` [PR PATCH] [Updated] " CMB
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2020-10-16 20:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-710535482

Comment:
Ok thanks for the info, I'll see if I can get it working and test it between win and void.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
                   ` (2 preceding siblings ...)
  2020-10-16 20:06 ` Anachron
@ 2020-10-30 22:57 ` CMB
  2020-11-22  3:23 ` the-maldridge
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CMB @ 2020-10-30 22:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

There is an updated pull request by CMB against master on the void-packages repository

https://github.com/CMB/void-packages cifsd
https://github.com/void-linux/void-packages/pull/25659

Add cifsd, a new alternative SMB server.
None

A patch file from https://github.com/void-linux/void-packages/pull/25659.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cifsd-25659.patch --]
[-- Type: text/x-diff, Size: 3585 bytes --]

From c1522e93faeee7ade424ad4f8b2e3fb5c1b7ce36 Mon Sep 17 00:00:00 2001
From: Christopher Brannon <chris@the-brannons.com>
Date: Fri, 16 Oct 2020 01:16:34 -0700
Subject: [PATCH 1/2] New package: cifsd-dkms-3.2.5

---
 srcpkgs/cifsd-dkms/files/dkms.conf |  6 ++++++
 srcpkgs/cifsd-dkms/template        | 24 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 srcpkgs/cifsd-dkms/files/dkms.conf
 create mode 100644 srcpkgs/cifsd-dkms/template

diff --git a/srcpkgs/cifsd-dkms/files/dkms.conf b/srcpkgs/cifsd-dkms/files/dkms.conf
new file mode 100644
index 00000000000..d299b7a605f
--- /dev/null
+++ b/srcpkgs/cifsd-dkms/files/dkms.conf
@@ -0,0 +1,6 @@
+PACKAGE_VERSION=@VERSION@
+PACKAGE_NAME="cifsd"
+AUTOINSTALL="yes"
+MAKE[0]="'make' @MAKEJOBS@ KDIR=/lib/modules/${kernelver}/build"
+BUILT_MODULE_NAME[0]="ksmbd"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/fs/cifsd"
diff --git a/srcpkgs/cifsd-dkms/template b/srcpkgs/cifsd-dkms/template
new file mode 100644
index 00000000000..daef8c5f782
--- /dev/null
+++ b/srcpkgs/cifsd-dkms/template
@@ -0,0 +1,24 @@
+# Template file for 'cifsd-dkms'
+pkgname=cifsd-dkms
+_pkgname="${pkgname/-dkms}"
+version=3.2.5
+revision=1
+wrksrc="${_pkgname}-${version}"
+short_desc="Opensource In-kernel CIFS/SMB3 server"
+maintainer="Christopher Brannon <chris@the-brannons.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/cifsd-team/cifsd"
+distfiles="https://github.com/cifsd-team/${_pkgname}/archive/${version}.tar.gz"
+checksum=b93a068f6dc2b2040c8cebcb67f6d8c3a1c5c7c5032269a48579ccba996e6be7
+
+dkms_modules="cifsd ${version}"
+depends="dkms"
+
+do_install() {
+	vmkdir "usr/src/${_pkgname}-${version}"
+	cp -r * "$DESTDIR/usr/src/${_pkgname}-${version}"
+	vcopy "${FILESDIR}/dkms.conf" "usr/src/${_pkgname}-${version}"
+	vsed -e "s;@MAKEJOBS@;${makejobs};" \
+		-e "s;@VERSION@;${version}-${revision};" \
+		-i "${DESTDIR}/usr/src/${_pkgname}-${version}/dkms.conf"
+}

From a4db792aac6ed1d099a202be003f970bbcf58ca6 Mon Sep 17 00:00:00 2001
From: Christopher Brannon <chris@the-brannons.com>
Date: Fri, 16 Oct 2020 01:39:44 -0700
Subject: [PATCH 2/2] New package: ksmbd-tools-3.2.6

---
 srcpkgs/ksmbd-tools/files/ksmbd/run |  2 ++
 srcpkgs/ksmbd-tools/template        | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100755 srcpkgs/ksmbd-tools/files/ksmbd/run
 create mode 100644 srcpkgs/ksmbd-tools/template

diff --git a/srcpkgs/ksmbd-tools/files/ksmbd/run b/srcpkgs/ksmbd-tools/files/ksmbd/run
new file mode 100755
index 00000000000..949bbb25e4f
--- /dev/null
+++ b/srcpkgs/ksmbd-tools/files/ksmbd/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ksmbd.mountd --nodetach
diff --git a/srcpkgs/ksmbd-tools/template b/srcpkgs/ksmbd-tools/template
new file mode 100644
index 00000000000..0e75b7f50a7
--- /dev/null
+++ b/srcpkgs/ksmbd-tools/template
@@ -0,0 +1,25 @@
+# Template file for 'ksmbd-tools'
+pkgname=ksmbd-tools
+version=3.2.6
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf automake libtool pkg-config"
+makedepends="glib-devel libnl3-devel"
+short_desc="User-space tools for cifsd"
+maintainer="Christopher Brannon <chris@the-brannons.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/cifsd-team/ksmbd-tools"
+distfiles="https://github.com/cifsd-team/${pkgname}/archive/${version}.tar.gz"
+checksum=595029adb899fd8b4c49bea75bce4e3c3466811ef7089b2a55960174e720d919
+
+pre_configure() {
+	./autogen.sh
+}
+
+post_install() {
+	for i in AUTHORS Documentation/configuration.txt PFIF.txt README ; do
+		vdoc "$i"
+	done
+	vsconf smb.conf.example
+	vsv ksmbd
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
                   ` (3 preceding siblings ...)
  2020-10-30 22:57 ` [PR PATCH] [Updated] " CMB
@ 2020-11-22  3:23 ` the-maldridge
  2021-01-28 14:01 ` CMB
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: the-maldridge @ 2020-11-22  3:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by the-maldridge on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-731691183

Comment:
@CMB this looks good, but I'd like to get a current CI result before merging.  Can you rebase against master so you'll get a github actions build?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
                   ` (4 preceding siblings ...)
  2020-11-22  3:23 ` the-maldridge
@ 2021-01-28 14:01 ` CMB
  2021-01-28 14:01 ` [PR PATCH] [Closed]: " CMB
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CMB @ 2021-01-28 14:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

New comment by CMB on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-769073169

Comment:
Closing this for now, as I'm not all that sure it's ready for prime-time.
I've found at least one fairly easy to reproduce crash that I need to
report.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Closed]: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
                   ` (5 preceding siblings ...)
  2021-01-28 14:01 ` CMB
@ 2021-01-28 14:01 ` CMB
  2021-01-28 14:50 ` Anachron
  2021-01-28 16:01 ` CMB
  8 siblings, 0 replies; 10+ messages in thread
From: CMB @ 2021-01-28 14:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

There's a closed pull request on the void-packages repository

Add cifsd, a new alternative SMB server.
https://github.com/void-linux/void-packages/pull/25659

Description:
None

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
                   ` (6 preceding siblings ...)
  2021-01-28 14:01 ` [PR PATCH] [Closed]: " CMB
@ 2021-01-28 14:50 ` Anachron
  2021-01-28 16:01 ` CMB
  8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2021-01-28 14:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-769132197

Comment:
So, did you report this upstream? 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Add cifsd, a new alternative SMB server.
  2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
                   ` (7 preceding siblings ...)
  2021-01-28 14:50 ` Anachron
@ 2021-01-28 16:01 ` CMB
  8 siblings, 0 replies; 10+ messages in thread
From: CMB @ 2021-01-28 16:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 573 bytes --]

New comment by CMB on void-packages repository

https://github.com/void-linux/void-packages/pull/25659#issuecomment-769186795

Comment:
I need to report it, and in order to do that I need something more substantial
than "this crashes when I update a local mpd database from a collection
on a remote CIFS server".  Unfortunately when it has happened, it has
crashed my headless home server, so I haven't gotten a backtrace.

I think I may try netconsole and deliberately provoke it, or I'll try
and find a similar pattern of filesystem activity that reproduces it in a VM.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-28 16:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 16:18 [PR PATCH] Add cifsd, a new alternative SMB server CMB
2020-10-16 17:39 ` Anachron
2020-10-16 18:21 ` CMB
2020-10-16 20:06 ` Anachron
2020-10-30 22:57 ` [PR PATCH] [Updated] " CMB
2020-11-22  3:23 ` the-maldridge
2021-01-28 14:01 ` CMB
2021-01-28 14:01 ` [PR PATCH] [Closed]: " CMB
2021-01-28 14:50 ` Anachron
2021-01-28 16:01 ` CMB

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).