Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2021 03:17:22 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        CerebrosuS <CerebrosuS@gmx.net>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Project information - SMBv2+
Message-ID:  <YQXPR0101MB096894876474E63D98E74580DDD50@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <8edb2ee8-0643-f3f4-ef5a-bdd9bd8a1b9a@gmx.net>
References:  <16e5725b-ec2f-3222-d20d-fd15e597c12c@gmx.net> <dea01842-79e7-33ed-4302-28f2df51d710@quip.cz> <075f31cb-dd13-778d-ed50-3ec7d6f30731@gmx.net> <20201230203416.xr42tsdo2m7txex7@nerd-thinkpad.local> <8758d2d0-12e9-77bb-e417-4bac430b4e9a@gmx.net>, <8edb2ee8-0643-f3f4-ef5a-bdd9bd8a1b9a@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
CerebrosuS <CerebrosuS@gmx.net> wrote:=0A=
>So I am found the main protocol spec existing in freebsd-src/sys/netsmb=0A=
>and got the corresponding implementation from apple.=0A=
>=0A=
>As I've never developed on FreeBSD, I am searching for a good workflow=0A=
>to test builds. Right now I've build freebsd-src from git.=0A=
>=0A=
>As far as I understand netsmb in sys is not a module build into the=0A=
>kernel? Therefore I have to update kernel and install it in a test=0A=
>environment for debugging. I don't want to polute my main system and=0A=
>read about using bhyve as a vm system for testing.=0A=
I'm not a vm guy, but I use any old hardware I can find.=0A=
In 2011, I needed a box for FreeBSD devel. I dumpster dived a computer=0A=
recycling pile. Picked up an old Dell tower I still use for FreeBSD devel.=
=0A=
(cost $0.00)=0A=
=0A=
Recently I needed amd64 (the above is i386) and I like laptops, since=0A=
they are easy to move around.=0A=
--> Found a used Dell Latitude 6420 for $200, which works great.=0A=
=0A=
I wouldn't recommend i386 any more, but anything that is amd64=0A=
with a few Gbytes of RAM, 100 Gbytes of disk and a net port should do.=0A=
(I don't bother with X windows or anything like that on them.)=0A=
=0A=
As for testing/debugging, the kernel debugger can do a lot, but I=0A=
don't use it often enough to be useful with it.=0A=
Normally, I just use lots of printf's.=0A=
And for file system work "options DEBUG_VFS_LOCKS" in the=0A=
kernel config file.=0A=
=0A=
Yea, I'm weird, but it works for me, rick=0A=
ps: For a pure build and test kernel system, you don't need=0A=
      any ports and can re-install it in 15min if you mess it up.=0A=
=0A=
 Is this the only way=0A=
or is there a smarter way getting debugging done to test my=0A=
implementation. I've never developed things on kernel-level so I got a=0A=
prog-debug cycle with high frequency for now.=0A=
=0A=
(As you can see, I am starting from the beginning related to FreeBSD=0A=
development. Sry for that.)=0A=
=0A=
Am 30.12.20 um 21:44 schrieb CerebrosuS:=0A=
> Yes, the video is part of the wiki.freebsd.org entry I've written down.=
=0A=
>=0A=
> The information in the video is a little bit unmotivated and I am aware=
=0A=
> that it is not that simple. That video leads me to the question here, if=
=0A=
> anyone is working on it. Cause Mr. Gibbs talks about it like he already=
=0A=
> started something in this direction and is already into it (or he just=0A=
> knows). :-)=0A=
>=0A=
> Yet, I will start by looking into the FreeBSD mount_smbfs code and the=0A=
> one from apple.=0A=
>=0A=
> Am 30.12.20 um 21:34 schrieb Daniel Ebdrup Jensen:=0A=
>> On Wed, Dec 30, 2020 at 08:24:31PM +0100, CerebrosuS wrote:=0A=
>>>=0A=
>>>=0A=
>>> Am 30.12.20 um 20:05 schrieb Miroslav Lachman:=0A=
>>>> On 30/12/2020 18:57, CerebrosuS wrote:=0A=
>>>>> Hello at all,=0A=
>>>>>=0A=
>>>>> the community and developer at FreeBSD seem to know, that SMBv1 for=
=0A=
>>>>> clients is nearly over and that the included mount_smbfs doesn't=0A=
>>>>> support=0A=
>>>>> newer versions. So good, so far...=0A=
>>>>>=0A=
>>>>> So I can find multiple information about the situation, but no clear=
=0A=
>>>>> path on how FreeBSD community and developer will go on to solve this=
=0A=
>>>>> missing function. (Just got the information on:=0A=
>>>>> https://wiki.freebsd.org/MateuszPiotrowski/AccessingSmbSharesWithSamb=
aClient)=0A=
>>>>>=0A=
>>>>>=0A=
>>>>>=0A=
>>>>>=0A=
>>>>> This is what I am asking:=0A=
>>>>> - Is there a project existing for solving this problem (with whatever=
=0A=
>>>>> target)?=0A=
>>>>> - What is the way to go in future? Extend mount_smbfs or support the=
=0A=
>>>>> fuse-smbnetfs part to be stable and fast like mount_smbfs (buggy and=
=0A=
>>>>> laggy here)?=0A=
>>>>> - Who is mainly working on it, if a project already exist?=0A=
>>>>>=0A=
>>>>> I'am just interested, cause of not finding such information=0A=
>>>>> clearly. Is=0A=
>>>>> there maybe a general project management list / team to see what=0A=
>>>>> projects are going on in whatever state?=0A=
>>>>>=0A=
>>>>> I am a hobby developer mainly coming from chemical engineering side,=
=0A=
>>>>> having some time to help. I've already written some cross platform=0A=
>>>>> software but never related to network or on os-level. So I am=0A=
>>>>> motivated=0A=
>>>>> to invest some time in getting stuff into FreeBSD, but for me,=0A=
>>>>> there is=0A=
>>>>> a lack on information (see above).=0A=
>>>>>=0A=
>>>>> Thank you in advance for information and help.=0A=
>>>>=0A=
>>>> I was involved in the thread linked by Gleb. AFAIK nothing changed fro=
m=0A=
>>>> that time. I tried something from ports but it has more problems=0A=
>>>> (shares=0A=
>>>> cannot be mounted on boot like mount_smbfs does).=0A=
>>>> If somebody has time and skills to try to bring SMBv2 or v3 to FreeBSD=
=0A=
>>>> then Apple or Solaris sources is good start. The both were using the=
=0A=
>>>> same mount_smbfs (v1) as FreeBSD so one can check their sources and se=
e=0A=
>>>> how they evolve to v2 / v3.=0A=
>>>=0A=
>>> They are both using exactly the same source code as a starting point an=
d=0A=
>>> extend it (or rewrite it) to SMBv2?=0A=
>>>=0A=
>>>> But it is out of my skill. I am not=0A=
>>>> developer. I am just an extensive user of SMB mounted shares from=0A=
>>>> Windows servers.=0A=
>>> That might also be my problem, cause I've never written an application=
=0A=
>>> for network nor anything related to FreeBSD on os-level. But if no one=
=0A=
>>> starts, nothing might change at all.=0A=
>>>=0A=
>>>>=0A=
>>>> Kind regards=0A=
>>>> Miroslav Lachman=0A=
>>>>=0A=
>>> _______________________________________________=0A=
>>> freebsd-hackers@freebsd.org mailing list=0A=
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers=0A=
>>> To unsubscribe, send any mail to=0A=
>>> "freebsd-hackers-unsubscribe@freebsd.org"=0A=
>>=0A=
>> Hi folks,=0A=
>>=0A=
>> Justin T Gibbs, during one of the Office Hours meetings that have been=
=0A=
>> happening throughout the year, spoke at some length on the subject of=0A=
>> SMBv3 as it relates to integraetion in the base system [1] - and suffice=
=0A=
>> it to say, it's not nearly as simple as some people seem to asume that=
=0A=
>> it is.=0A=
>>=0A=
>> I hope that's somewhat helpful, and it's at least a little newer than=0A=
>> what's referenced elsewhere.=0A=
>>=0A=
>> [1]: https://www.youtube.com/watch?v=3DJi4ux4FWpRU&t=3D970=0A=
> _______________________________________________=0A=
> freebsd-hackers@freebsd.org mailing list=0A=
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers=0A=
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"=0A=
_______________________________________________=0A=
freebsd-hackers@freebsd.org mailing list=0A=
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers=0A=
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"=
=0A=
=0A=



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