From nobody Sun Jan 9 14:46:52 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1148419372E6; Sun, 9 Jan 2022 14:47:02 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660072.outbound.protection.outlook.com [40.107.66.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JX0Cm73krz3pFS; Sun, 9 Jan 2022 14:47:00 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LxW+2gkd+L52V2PD+G7WnHyXsf694GLZFo5++vK7Zdz0CPrg4Pvn7paN4q0fX/zWRTKrhCbrWul2ISroPuAudG1FdpM3Q8MJF6iN+xgc5gQiJztT3FxQ54GWBHVEdCsryrJsoMyrMpZxhF4AyUoxM2jOUmmM0apUVwGajcO5INwT3p9wROP0N0Ce3HKaAV48bg9p/wEfxMlVdU+TWqcjJa3LF283oolkv/iaZUoR4K8aWEOVhVwa/ePOsrxIGEB0eJFvjCsY6AwaLW5rcFoSR+IgiSkEi0iSnltfrDtewWtZthgYoKebzKQGvcWpRsVADadH2BVGBcexNo33iRksuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uYvhNjkLBbpVVyabLbY/PKaBbE243acD1UAKCGLDaWE=; b=haLPjseGyjB6XICNH7x5bo+pYFg6M+M2P50kE+6ewLPx/+B1j/gMYJAL8qYS2GtysRkewq+KxVY1QBljRvOkRKPdgkICpQIy2N8BLSwQ/RZoqkcV1DGvchVAAcxg73QWeIb/l2YkIfiIyMd+lwp9j5agYnf04MKEI2Rqbx5wSoJ8sBf3Br1d3MUQXqmIf3B7IrjibrWUWW+8NkfospkbstBh9JfH6ZHkPc3dr5DO1p4T87/QYeU2Z/HpLP8NwGLelVfN72j9ASQWFCDVckUGq/+dBxjLM5iQLppK8ZQ8LQTMOMWeXNp6LDlJZ0ZdiFa5e/gQPnRyfK6T++dHU5GY2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uoguelph.ca; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uYvhNjkLBbpVVyabLbY/PKaBbE243acD1UAKCGLDaWE=; b=UC4rpMoWch9V6aJqdVGp1prfOVf0JtVV3wnszGHTRVTwD7meT9mXv60zu7kV+vavHIjoFF/747HfSS4vkafVk/+3SG/ksqYndWajvOIelipTcDLsNtVRp3deIz0KFlZLDntz7+i+XdwBX76LvL2ErADp/InTV7WsmEU9xk4rb3b/0l03m/gTGJb1EhSKMhuSDJP0IVSp4BUGiwXWBKn3X0BEyogyB8PVJLzKOJmn2pc0de2GgeZ+fgnJ2xchQkbCM/FtkPKH2SdPomG4mDDcUmLNEunWoh9ChQRToggG7n7jng0gBi3MNBWlrwO09owZwEInoyFPsQ7ja5UE57i/Jw== Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:19::29) by YQBPR0101MB9327.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:62::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.7; Sun, 9 Jan 2022 14:46:53 +0000 Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::c9d2:bf41:eeca:90aa]) by YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::c9d2:bf41:eeca:90aa%4]) with mapi id 15.20.4867.011; Sun, 9 Jan 2022 14:46:53 +0000 From: Rick Macklem To: Miroslav Lachman <000.fbsd@quip.cz>, "freebsd-current@freebsd.org" , freebsd-stable CC: Yuri Subject: Re: Deprecating smbfs(5) and removing it before FreeBSD 14 Thread-Topic: Deprecating smbfs(5) and removing it before FreeBSD 14 Thread-Index: AQHXzvvFA1WWxQSLW0uUJGavCusr2KvuZUQAgABpl4WAAGcwgIBr+tlB Date: Sun, 9 Jan 2022 14:46:52 +0000 Message-ID: References: <6f99f9bc-8831-aefe-4f73-72f50f8f347b@aetern.org> <79402464-f9e6-5f56-645e-cfd49640032e@quip.cz> <7db04ed9-39eb-7163-ce92-9a52c5f7d302@quip.cz> In-Reply-To: <7db04ed9-39eb-7163-ce92-9a52c5f7d302@quip.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 0bff1c0c-4c91-73f7-655b-38d0c8fc7db0 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 833edab6-05d6-4750-5a23-08d9d37ee035 x-ms-traffictypediagnostic: YQBPR0101MB9327:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tp90gmxjhqZoLeQlvha8m3PSM0D6z5mJWR6kTi0FiN6hl0qMnn6DsIgw9KPK6Cd1wtyEE+HQBctfSnUH8xsPoXJ+37/1p10At6jIw+PRBSu6hlJb7EPH9mxTJaczWCPdHVBV2P8QFgFm9hULr6KlBMWgSCohvmLS6mX72viIktkW2zYQTv5Q1W4ybEXUJ8fkvI1YmFpDY7XPEvTjwP6M/THEMcIXPEs5tUPN/BLGX9wDHtPNAIJ5+DPVWAYUj6MrIN5kcGx5rEsC09/ERGeh6MjlPZ1Hzsq1kRUUxoxpUhkkmsANB5viaJELnGeJtqz5OMLhNKio4aSw1hzESG3sV+3CThMxkiOJwCpyVwuDppfrEdjwzmo2SM5JOg8FFBBvHbAYLC30bdXQmkv/8lpoL308iihS6ihwcjWqz6KVbkos21l+JbP8s94G35QqBjWsGm6GK9kwCd2rpaUtAqFEHbpcrspDKDGzMOYn385YNOy5QCLdv/ydlKpMueT7l8iZQgvTOXKtoekqg2BooHh1tWFRNBRxWebxPF5vXnRAtzLj1VTWdSVS0idHyvLrwuWLEdodzFhyDoPskMXE8Z6vA53lUE5teSgmnxs+LG6XHkW6+S99XhipK4GGhUEBewhk1rX53nbFW8h+f6ctR6w0SarKl0qA2PTYV+TRL707j+rTKW/+x3JFStCPhCsLyJC+XVUWfm5U5/nrJ/+yOb64RLHmXI8n86schHSQJv2xh4KYMJyvrRrk23T0l6lBAiOu/QcULe3jYG1SWOYHIaqzMtZRxis4NCt09IRSGTHxVOo= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(366004)(2906002)(508600001)(71200400001)(4326008)(786003)(316002)(55016003)(186003)(38100700002)(966005)(9686003)(53546011)(6506007)(7696005)(86362001)(83380400001)(66946007)(5660300002)(38070700005)(8936002)(8676002)(33656002)(110136005)(91956017)(64756008)(66446008)(52536014)(66556008)(66476007)(122000001)(76116006);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Pl5J6imZZfgBribnm6fTA20p24YBeKtTTG7fK2GsWdX7veicHXly0Z8lQ2Dk?= =?us-ascii?Q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/5SHDAwChGG6CaYP/AM?= =?us-ascii?Q?545MH7RwUuiogJXMnzqtQdQgKlhAEYfgGdrKwTm4VN/f9A26IQfNrAvT858N?= =?us-ascii?Q?oxiauWmWWec8/Cqc0wBrjzbsvd1uTPNC+Pwuu5NjdIqmAuk3KvmsmML57oiq?= =?us-ascii?Q?gEd2xqkLqaKN27vyX+0jlSvMUU58I+DB6i5CD8FYhx8/ZJb9WLz+ldH+F7jY?= =?us-ascii?Q?eHl9NqAHqklbsoJZ3gsJlBO8Q1RxMFFJ0x+JbiR6xhEXpRlUiIKSUIZnRsqf?= =?us-ascii?Q?dW1pvHcRIgjAY+UtfTK1XFNHATzdJ4rFNvPI5M/qaJMNryI6XzSTWLqr/xQg?= =?us-ascii?Q?8kytcQcOgme2naBAFivlbkxDloOrDwcvrSZ5xlg+McrGXyZzt/I4vjQ/HZd2?= =?us-ascii?Q?9L3rl2z9l1xAGiA4I4sHodhUAaUAFq+1AWQ/qoIRWl5+ieo3BSENvk8fH7Xf?= =?us-ascii?Q?uFee6Q1P9Zyy7uo0RSeVJ5Z4IKrr5gbF8KSmoc3eqtzqLsU8rG6Y0OeZNRav?= =?us-ascii?Q?ndBHkb6I0xJlJy+KGnLJH9YjPlObjXSHxIo6jIODNL1azHyXsjukCul9pgD0?= =?us-ascii?Q?CGHypF2CKA/GQVwAdMNx6VWE2JPjPqIrBPritPpZwHlgCux7GEebdF+5ZtrW?= =?us-ascii?Q?3ZYt3cr5IL5es6MB0Olb1DjybZ0jqUyif9bcgy+cyeNaAKfxdxOU8Wc52nne?= =?us-ascii?Q?nXmYXJK+hf5rH6CmA20ITPaS5Pnht9OyHuliTjgel0mjiXsPbmGEvLLsZUYN?= =?us-ascii?Q?gEXgCQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 833edab6-05d6-4750-5a23-08d9d37ee035 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2022 14:46:52.9631 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: L4jXdLDLOxHwzYAg0ZJHuhxoHpgQvaRAuMkasMiEel33IKkKqz33qQLXHX/4u9bBTRAsPmn3nhA9XIpsB3x7hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB9327 X-Rspamd-Queue-Id: 4JX0Cm73krz3pFS X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=uoguelph.ca header.s=selector2 header.b=UC4rpMoW; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=uoguelph.ca; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.66.72 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-6.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[uoguelph.ca:s=selector2]; FREEFALL_USER(0.00)[rmacklem]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[uoguelph.ca:dkim]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[uoguelph.ca:+]; DMARC_POLICY_ALLOW(-0.50)[uoguelph.ca,none]; RCVD_IN_DNSWL_NONE(0.00)[40.107.66.72:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.66.72:from] X-ThisMailContainsUnwantedMimeParts: N Well, I took a look at the Apple code and I'm afraid I think porting it into FreeBSD is too big a job for me. I was hoping the code would have a layer that could be used as a "block box" for the VOP calls, but that does not seem to be the case. There is also a *lot* of code in it. I am going to look at the OpenSolaris code, to see if I think it will be an easier port. rick ________________________________________ From: Miroslav Lachman <000.fbsd@quip.cz> Sent: Monday, November 1, 2021 5:47 PM To: Rick Macklem; freebsd-current@freebsd.org; freebsd-stable Cc: Yuri Subject: Re: Deprecating smbfs(5) and removing it before FreeBSD 14 CAUTION: This email originated from outside of the University of Guelph. Do= not click links or open attachments unless you recognize the sender and kn= ow the content is safe. If in doubt, forward suspicious emails to IThelp@uo= guelph.ca On 01/11/2021 16:55, Rick Macklem wrote: > Miroslav Lachman wrote: > [good stuff snipped] >> Apple sources can be found there >> https://opensource.apple.com/source/smb/ with all the history from SMBv1 >> to SMBv3. The files have original copyright header from 2001 Boris Popov >> (same as FreeBSD) but otherwise it is very different code due to >> different kernel interfaces and so on. >> With Apple and Illumos sources it is possible to have smbfs in FreeBSD >> upgraded to v2 or v3 but very skilled programmer is needed for this >> work. And for the past years there is none interested in this work. > > Although I agree that it would be a non-trivial exercise, a lot of the Ap= ple > differences are in the "smoke and mirrors" category. > Around OSX 10.4, they changed their VFS/VOP to typedefs and accessor > functions. For example: > "struct vnode *vp" became "vnode_t vp" > and "vp->v_type" became "vnode_type(vp)" > > Ten years ago, the actual semantics were very close to what FreeBSD used. > If you look at sys/fs/nfs/nfskpiport.h in older sources (around FreeBSD 1= 0), > you'll see a bunch of macros I used to allow the Apple port to also build= /run > on FreeBSD (a couple, such as vnode_t are still left because I've never g= otten > around to doing the edit to replace them). If I see it right even the 10 years old Apple version of smbfs has support for SMBv2 so if this old version is closer to FreeBSD kernel / smbfs it can be a good starting point to merge changes to our smbfs to have SMBv2 support on FreeBSD. > The hard part will be dealing with the actual VFS/VOP semantics changes t= hat > have occurred in the last 10 years. > > Did they stick APSLs on the files? (If so, I think it could still be ok, = since the APSL > is a lot like the CDDL. However, I'm not sure if the APSL has ever been b= lessed > by FreeBSD as of yet?) The old versions of smbfs has original copyright header and no other license. Newer version has some added files with different header with APSL license. For example https://opensource.apple.com/source/smb/smb-759.40.1/kernel/smbfs/smbfs_sub= r_2.h.auto.html If license is a problem then I think it can live with APSL in the ports tree as a loadable kernel module. Maybe this will be the easier for development too? > Don't assume anything will happen, but I *might* take a look in the winte= r, > since outstanding NFS changes should be done by the end of 2021. I really appreciate your endless work on NFS on FreeBSD. Without your work the NFS will be lacking behind industry standards similar to what we see with smbfs. And if you will have some spare time to take a look on smbfs and maybe solve the SMBv2 / SMBv3 problem you will be my hero. I am waiting for it for many years and I know I am not alone who needs working SMB / CIFS on FreeBSD. > It does sound like there is some interest in this and that fuse doesn't s= olve > the problem (at least for everyone). Yes, there is an interest. It was discussed few times in the past in the mailing lists and web forums.freebsd.org but without anybody willing to touch the code. FUSE alternatives have so many problems with performance, stability and configuration. https://forums.freebsd.org/threads/getting-smbnetfs-to-work.78413/ Kind regards Miroslav Lachman