From nobody Wed Jan 19 20:28:56 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 9D903195197D; Wed, 19 Jan 2022 20:29:04 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660043.outbound.protection.outlook.com [40.107.66.43]) (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 4JfHKq40qDz3lyb; Wed, 19 Jan 2022 20:29:03 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lrTtoMyD///9HtUPy8HxvPjXm2TSHMJONMo8RdSjjWW7KJr7d2Nhx6pI6qeHsJju6sz4SiQoZkIzHCfSuykumJFvZn0UfI611BnfCC3fFwecHSDF9F6H57S1vz+85/i7kkk87JEf4pyaNS/tIy+BSLajEDboviH/KjqhGW9ZUPMYDfy7wjKvPxrTIA8wXAHWcGVol4zcGmL+Lm4SDsILnmWRfMku2SyWJCyh9YddknXw1CWR9YdRHeRwphLMoR5OlaKB7bbmhwvTh0y0pgQ0TbbHBvBI4ZxnUrF7xJEzZm3IwFgcscccDCsbi6f2zYqswGL0a19/bj3CyLcbqs57+g== 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=yw3qhd8KUBkXrwINUyGUKW+XTFLplw4qQ1JSPpNF2Z4=; b=hXDpviwTAli5FIPEFbIxyfHmqCra0Q6iyO5tV9IDP/yXjElfiQAx522oEdzILoyoK/ryVJDKzjGYM9N7fsnHPToNJHYJYBuESQTCkJma70PN4MZEL01zQTCpDTO9mX0YyodizzKniQ6CFuYpG4396uhfv3LVMLIqAL307R/o71oo8MTFu4gFjGBYuePJc7mRJkN5da2y+lROn2Puz0RvECZVxgDTzLnuN955hfQHKJaUSedUAK82xZxkSRWIQC9R6PIKzIAxw1d2e5TObMP1hZbF1bcM3ap+c3HWH1LBCOrANM6BnVj0HDUnpQnLp3diG1tdNm4QiAfODuJJEANV3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=yw3qhd8KUBkXrwINUyGUKW+XTFLplw4qQ1JSPpNF2Z4=; b=K628dLH6zrzxywm/Lt9IN3ZgsqRZMA8DMmw72mvlkqkuTVI6kTmOpVJqRJDuhKY7N8IgDu6Holhouol2IT2UZCauarl/U5BCWEviOkJiXn2+Jdl60IjGJ6Ekdox41Nvr4NEW5anDrJqGJaBKaGIaFF2H5x8DsbGk40/VFCZPpTpBlZdqFgK5x5J+8PxAMQZvSHoITxTZ3SON8ylVZs/IZ9Z8rax+tIbKQZohxXf3WWgj0ENDC2EqRLpo6R51JA2YLgVVslq8saiXyDndqFdeC1Mr5VNajLPlcAsFccL0AQEMjk1aG4+ietMeG/U8Pj6uUtIZ0TBUYSpMS8pas6Dz3Q== Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:19::29) by YQBPR0101MB4388.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:9::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Wed, 19 Jan 2022 20:28:56 +0000 Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::c9d2:bf41:eeca:90aa]) by YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::c9d2:bf41:eeca:90aa%5]) with mapi id 15.20.4888.014; Wed, 19 Jan 2022 20:28:56 +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+tlBgAGeWQCADnip0A== Date: Wed, 19 Jan 2022 20:28:56 +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> <54704b99-7b89-76a4-0368-79bee391926d@quip.cz> In-Reply-To: <54704b99-7b89-76a4-0368-79bee391926d@quip.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: a8590312-cc43-dfa6-97f0-73ab8d71f4f8 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3a5395e5-6024-4057-e006-08d9db8a5144 x-ms-traffictypediagnostic: YQBPR0101MB4388:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: owEVrWjqhyI7t4sKdfQrd574fUimEQ2dMgtHk/OfAVhmo9ibnsuNd/dIXKpYAEfBFODDvglpcMJ8sdcmDeftFRwouOWG0S+67YFzy7uEANXHd7Q5LaRKcvqnh/oGc5ZymdanDwW776lI4DGjsyd0ebMoTw/hrpHOnOiz0YOcUBOP4LzL6lcQcPb81EKTLuXmgIuQPZCLf33t2dRXodyeTvs/XCzuAxja1Yq1tyeY87puYhFpXR4SJCg8llzyNE2elOSWb+3uUioyTFteWQOvLHG+oo5RspVcUp1sj4JSENxK9lz6y8RZX2wh3iKax1AuCecy3Xbrx73GeMUK/SgFOCYi1eqTD6O3JZGcFnKLRvEwXzoVt0qxDkaWtlTHu+jvRkeUBWLkr4rI7/UoOPyYWmIfWthQRl7Lb4fHx3QDz5WVysSODJ9g6SOqCGPfTifXPHhy+axPmDIcGV7T03bI2CRT4v/0ONgY+Wz0rii/zKzUhzIwIR4NNxAPWZkZzxjfUYxvWNo3D3yzgBXmOtCrVjVSw6QLlGcmiRVAUeD+zaC3rX0NYKoHyQmYLbwW9K7/Va0qKqkm5KrUqtCQVRGKViH4rH2GfKy+k2k6pBusCgiWX7OkZpLumjzPH89fEWFk5bLdpM2m1aU6UkHhN4gUsp02NQxa+28CeehwP+TpZRt8fGtnfWMidsqGyA3ttQN8+tXy1gdDwDsUsk83lNBy4Y20y6vVSOtVeZamnuSCk2QE+htNxy/g/ONEeSdmo9+mmO7PbSLuPRX/GG3pfcFUXJlRPo1wnDem8ZvkhrmfuHk= 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)(91956017)(76116006)(66476007)(5660300002)(52536014)(66446008)(64756008)(66946007)(8676002)(66556008)(186003)(38100700002)(122000001)(966005)(38070700005)(33656002)(83380400001)(55016003)(110136005)(53546011)(6506007)(9686003)(508600001)(2906002)(7696005)(8936002)(71200400001)(786003)(4326008)(316002)(86362001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?duRgS7yTs68p3MYRpDLzdhRL3+4kyAA2y6tl0TA2tIP47YN1Nh4Q/ZD9zDE5?= =?us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HTWwcrIpPCtLOCEowh3W0zpPfjiHnT/lVaUwBrD+?= =?us-ascii?Q?wRYk21WQ7okjM6tLabAaZX++NDBGylXQHLZEHAjmYa27706drM3yDA1++kYA?= =?us-ascii?Q?nQKH+wCMC2HsLGUsPIhpJQMIwX92YuD4aJNT4a2uC8JyK9S6mqfLti5RmYGc?= =?us-ascii?Q?lRMIOHS6xcDuL0ppquazlaIgcl5v6ozzgkqgcvhsEFq9tpvuWQxc5E6jAcqs?= =?us-ascii?Q?QoJ4BIXBArXP7wDeCvNqQPBxvRm/AItg3O005j3Xc8TkSVEwbAuP5WVjMKI7?= =?us-ascii?Q?S/HvvK9l8ClgZOmEjXa9hYbkpn2UcfFXbsSFVNlsQH2FqZIi1WUOTMTDLPR4?= =?us-ascii?Q?JxZGzSKBHaHsGBdzjUGXViiJVMubMIQmo7YXy7EH81ikEm7hfrbjKKuF1hLH?= =?us-ascii?Q?4lRowF2NmVanewjiW9MrPlUXKceSU+jhOLfEsLI6NktF5IgYuZc7j0+Wv2Dk?= =?us-ascii?Q?4oXO+1JUR7N3EjPcx/TuO9DAcrh6a+RchoWKL2fpWDplwql3+8xjQ1KtMWHL?= =?us-ascii?Q?CcUFHxkOeqQ+H2Ow0LqDkAOJx6o9b3m7Y14aoJPRPNCKRA2BaYnAQ0XMXbdO?= =?us-ascii?Q?PRL9IrzyiXHeNDsskuKm/0C86nb7R17+jzU6oN3AQ3f8hRdLd3NWjrKoEo/j?= =?us-ascii?Q?b639InnyFW0ffM8arVOMoaX4Yqw5l6sGUMUCXTZ0zRP/4kv8TlH0U65UFqLh?= =?us-ascii?Q?NkwEEyAXByVXrSd7z0ijfa/ZnSKxguwf1zh9Yp3zuJbjOLTThW1NdjgYh/pR?= =?us-ascii?Q?tbsW0g=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: 3a5395e5-6024-4057-e006-08d9db8a5144 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2022 20:28:56.4292 (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: lWZ4cERHtJCTJosuPj8YZsujabCzzWQxK7FNthHkj5t/37aPuHcnJQLlJ9MZSUf93ZsgdFsw8HO80gINKHzZXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB4388 X-Rspamd-Queue-Id: 4JfHKq40qDz3lyb X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=uoguelph.ca header.s=selector2 header.b=K628dLH6; 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.43 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; 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]; NEURAL_SPAM_MEDIUM(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.43:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-current,freebsd-stable]; 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.43:from] X-ThisMailContainsUnwantedMimeParts: N I have downloaded the final version of the opensolaris smbfs and it looks much more reasonable to port to FreeBSD. I will be starting to work on this (and maybe Mark Saad will be able to help). I have no idea when I'll have code that can be tested by others. rick ________________________________________ From: Miroslav Lachman <000.fbsd@quip.cz> Sent: Monday, January 10, 2022 10:27 AM 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 Hello Rick, thank you for the update and your time on smbfs. I hope OpenSolaris version will be portable. (or mayby some older version from Apple?) FreeBSD without possibility to mount smbfs is not an option for some projects. Kind regards Miroslav Lachman On 09/01/2022 15:46, Rick Macklem wrote: > 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 = know the content is safe. If in doubt, forward suspicious emails to IThelp@= uoguelph.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 SMBv= 1 >>> to SMBv3. The files have original copyright header from 2001 Boris Popo= v >>> (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 A= pple >> 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 = 10), >> you'll see a bunch of macros I used to allow the Apple port to also buil= d/run >> on FreeBSD (a couple, such as vnode_t are still left because I've never = gotten >> 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 = that >> 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 = blessed >> 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_s= ubr_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 wint= er, >> 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 = solve >> 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 >