Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2019 12:38:54 -0800
From:      Conrad Meyer <cem@freebsd.org>
To:        Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Cc:        Miroslav Lachman <000.fbsd@quip.cz>, freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: SMBv1 Deprecation / SMBv2 support in FreeBSD
Message-ID:  <CAG6CVpWA6L3OVr9YrsME3ODRZ1twd8b0VVYAVAKorHaNUNwvGw@mail.gmail.com>
In-Reply-To: <alpine.GSO.2.20.1912191406270.26046@scrappy.simplesystems.org>
References:  <CALJ5sFkKMGvhgRYzegikDTiTTyV1xtA_WYJW_gLkHFN9Oh0OqA@mail.gmail.com> <YTXPR01MB01893E3AAB21A03677998D2FDDDB0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM> <CALJ5sFnMWGAGS8oyUvzXfq_Z4ZeRzgs==EDZf%2BqO-4O269qdiw@mail.gmail.com> <9b556cbe-f9f3-ab15-6fcd-71397d18c126@freebsd.org> <20170623104654.07e5a3e0@ernst.home> <45b0864b-680c-8fe0-f5a5-353b6373d069@freebsd.org> <YTXPR01MB0189251BCE0A17B8D0C51514DDD80@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM> <CALJ5sF=_9=-UK%2B6NyWg1Wp%2BcZZwu%2BSVDMLUjirjWD9DrHy%2BzEQ@mail.gmail.com> <20170624045543.GY39245@kduck.kaduk.org> <CALJ5sFm%2BeKPonELuo2gTYR88qQz4mocFbd6fOVrTWu5FoPeWcg@mail.gmail.com> <b09c975c-e627-feca-a9a6-c01cddd5d848@quip.cz> <201912191647.xBJGleRa028173@higson.cam.lispworks.com> <f6c86809-1223-a622-1ccb-943dc148d9b9@quip.cz> <alpine.GSO.2.20.1912191406270.26046@scrappy.simplesystems.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The apple code looks like a decent starting point if someone wants to
try this in-kernel.

For one, it's definitely derived from the existing FreeBSD smbfs code.
SMB2 and 3 support has been added, and I didn't examine how much the
vnode interface was changed.  But this is suggestive that reconciling
it into our tree would not be awful.

One concern is the license on some portions of the new apple code is
the APSL2.  AIUI, and obviously IANAL, the APSL2 is somewhat similar
to the file-basis copyleft property that the CDDL has.  I don't know
if we have any existing APSL2 code in tree, or if the foundation's
lawyers would approve it.  Perhaps the non-BSDL files would have to
live in a sys/apsl subdirectory.  That doesn't seem like a blocker for
adapting Apple's smbfs implementation, but again, not a lawyer, and I
haven't even skimmed the code.

Best,
Conrad

On Thu, Dec 19, 2019 at 12:10 PM Bob Friesenhahn
<bfriesen@simple.dallas.tx.us> wrote:
>
> On Thu, 19 Dec 2019, Miroslav Lachman wrote:
>
> >> but I think FreeBSD's FUSE has improved since that thread started.
> >
> > I didn't tried it because what I read about it on forums is nothing good.
> > Slow, unstable, not suitable for mounting 30+ shares on boot from fstab.
> > Somebody reported speed with fusefs-smbnetfs less than 1Mbps.
> > Also I found somebody trying to use gvfs to access samba shares on headless
> > servers but again it was something I don't want in production. It gvfs is
> > also userspace for browsing not for permanent mounting on defined mount
> > points.
>
> Illumos has more modern SMB support in kernel.  FreeBSD already uses
> Illumos CDDL-licensed code via zfs and perhaps experience with the zfs
> port would help with reusing Illumos code.  I don't know if starting
> with the Illumos SMB CDDL-licensed code fits with the objectives of
> the FreeBSD project.  Obviously, it would be a lot of work.
>
> Bob
> --
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
> Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpWA6L3OVr9YrsME3ODRZ1twd8b0VVYAVAKorHaNUNwvGw>